cliftonbazaar Posted March 13, 2010 Share Posted March 13, 2010 Sorry if this is an obvious question but I am new to PHP and Mysql. At the moment I have a server set up at home that runs php and mysql. Is there a way of only allowing access to mysql from my own php code? What I mean is that can I stop someone from directly accessing the database from the Internet? Link to comment https://forums.phpfreaks.com/topic/195086-only-allowing-access-to-mysql-via-php-code/ Share on other sites More sharing options...
fenway Posted March 16, 2010 Share Posted March 16, 2010 Add "skip-networking" to your my.cnf file... and make sure all your GRANTs are for "@localhost". Link to comment https://forums.phpfreaks.com/topic/195086-only-allowing-access-to-mysql-via-php-code/#findComment-1026902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.