rajan Posted January 11, 2011 Share Posted January 11, 2011 Hi, I am a newbie to php. i have just installed WAMP server in my windows 7 OS. I have tried to access mysql with host server name as "localhost' or '127.0.01' . it works fine. But when try to access the mysql using my ip address , i was not able to login. Since i need my system as a common server in the network. i have just tried this scenario. Following error i got in php coding: "Warning: mysql_connect() [function.mysql-connect]: Host 'System-03' is not allowed to connect to this MySQL server in C:\wamp\www\Login.php on line 82 Could not connect to mysql Host 'System-03' is not allowed to connect to this MySQL server" Could anyone guide me to solve the problem? Quote Link to comment https://forums.phpfreaks.com/topic/224051-how-can-i-use-local-my-sql-server-as-common-server-in-a-local-network/ Share on other sites More sharing options...
trq Posted January 11, 2011 Share Posted January 11, 2011 You need to make sure the user you are using to connect with has sufficient permissions to connect from the host you are using. It's all covered: http://dev.mysql.com/doc/refman/5.5/en/adding-users.html Quote Link to comment https://forums.phpfreaks.com/topic/224051-how-can-i-use-local-my-sql-server-as-common-server-in-a-local-network/#findComment-1157780 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.