cant access remote mysql server need help

孤街浪徒 提交于 2019-12-06 12:36:25

Probably because remote root login is not allowed. You can try this article on how to enable remote root:

http://benrobb.com/2007/01/15/howto-remote-root-access-to-mysql/

1) check the logs you can see where the logs are by checking the my.cnf file. mysqld.log might be the file name, but where

2) a. see if it's a network issue.

telnet 192.168.1.25 3306

b. see if the service is at that port. ssh to the box # from the local host mysql -u root telnet 127.0.0.1 3306

ps auxw|grep mysql

you should hopefully have enough diagnostic info at this point to figure it out.

i have this problem and fix it by

first you must grant all to user

GRANT ALL PRIVILEGES ON databasename. TO 'user'@'%' IDENTIFIED BY 'password';

then

FLUSH PRIVILEGES;

and change the mysql config using

sudo nano /etc/mysql/my.cnf

find "bind-address" row and comment it.
save config and restart mysql using

sudo /etc/init.d/mysql restart

hope solve problem :)

The Message (10061) is do to offline severs or firewall blockage If you get -the name of your pc - can not connect, then mysql is rejecting the connection and you will have to create a 'user' in the mysql database mysql, table user using the IP of the remote connection', and restart the database service

but for error 10061 check The Firewall in both machines. Masters PC per say, is the one with the phpmyadmin installation

Allow Destination ip-[the remote] and port 3306 on the Master Machine and Allow source ip-[the masters]/with any port, and check your destination port(3306) too. destination ip can also be set on some firewalls.

And if you can, search in your firewall for logs, settings, recent activity, etc... to see what and how you are being blocked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!