财商书苑
全民财商训练提升,认真负责我们的每句话

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘u host’ (111)

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘u host’ (111)

默认情况下Mysql只允许本地登录,所以需要修改配置文件将地址绑定给注释掉:

vim /etc/mysql/my.cnf

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1 <—注释掉这一行就可以远程登录了

赞(0)
未经允许不得转载:财商书苑-全民财商训练提升 » ERROR 2003 (HY000): Can’t connect to MySQL server on ‘u host’ (111)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址