phpmyadmin - Why am I getting "Host '192.168.1.220' is not allowed to connect to this MySQL server"? -


this question has answer here:

i need run mysql (phpmyadmin) on lan. connection string:

function connection() mysqlconnection     'connect database     myconnection.connectionstring = "server=192.168.1.101;" _  & "user id=root;" _  & "password=;" _  & "database=db1230018;"     '     myconnection.open()     return myconnection end function 

i error:

host '192.168.1.220' not allowed connect mysql server

i have 2 pcs. 1 of them (windows 7 - 192.168.1.101) runs wamp server (phpmyadmin) , vb.net application using above connection string. want run application on second pc (windows) using same database in 192.168.1.101. define fixed ip on both pcs , disable firewalls. what's going on?

probably have no access rule defined root@192.168.1.220. server refuses connection.

besides, have remove restriction bind address in config file.

here told how works:

grant privileges on *.* 'root'@'%' identified 'password' grant option; flush privileges; 

in mysql , remove line

bind-address = 127.0.0.1 

from /etc/mysql/my.cnf.

as said message server, might latter step isn't necessary longer. otherwise, message client unable connect server.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -