mysql 终端 远程访问,通过终端连接到远程mysql
生活随笔
收集整理的這篇文章主要介紹了
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 2003 (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/my.cnf
# 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.
總結
以上是生活随笔為你收集整理的mysql 终端 远程访问,通过终端连接到远程mysql的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数据线给电脑联网是什么原理_物联网孵化的
- 下一篇: shell脚本给mysql创建表_she