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? Quote 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". Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.