MySQL PDO Connection Security -


up until point have never had setup users can access mysql (actually mariadb) instance other localhost. however, need setup slave access database on master on private network. issue network in question not that private given fact 2 servers vms , private network shared machines @ location (potentially imagine 100s or 1000s). unclear me if need secure access database private network.

is pdo connection string bearing form

new pdo("mysql:host=masterprivateip;dbname=dbname;charset=utf8", "slaveuser",'slaveuser@slaveprivateip',... 

sufficiently secure if use strong passwords or need take other measures ensure integrity of database? should mention in case slaveuser have select grants on database in question.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -