1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > mysql 终端 远程访问 通过终端连接到远程mysql

mysql 终端 远程访问 通过终端连接到远程mysql

时间:2023-09-11 18:33:56

相关推荐

mysql 终端 远程访问 通过终端连接到远程mysql

For a test I set up user mysql user with % access. When I try to connect from a remote machine I get:

Enter password:

Then immediately get this:

ERROR (HY000): Can’t connect to MySQL server on ‘xxxxxxx’ (1)

Any ideas

解决方案

Try to comment the bind-address = 127.0.0.1 in your /etc/mysql/f

# security:

# using "localhost" in connects uses sockets by default

# skip-networking

# bind-address = 127.0.0.1 --- commented

and watch the results. If not work try to use the IP address and if still not work. roll back the original file.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。