博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to resolve mysql problem when you get code 2003(10061) and 1130
阅读量:7238 次
发布时间:2019-06-29

本文共 633 字,大约阅读时间需要 2 分钟。

When I use Navicate to connect to mysql on Ubuntu, I got message 2003(10061) firstly.

To resovle this error, I midified one line of file my.cnf. Use command below:

sudo vi /etc/mysql/my.cnf

Then commented out line says "bind-address = 127.0.0.1".

After that I restart mysql. But got another message 1130.

It's the problem of host. Then I logon mysql. Issued command below.

mysql -u root -p

mysql>use mysql;

mysql>select 'host' from user where user='root';

mysql>update user set host = '%' where user ='root';

mysql>flush privileges;

mysql>select 'host'   from user where user='root';

转载于:https://www.cnblogs.com/panderen/p/4462974.html

你可能感兴趣的文章
Eclipse的WorkingSet使用(转载)
查看>>
缓存系列之五:通过codis3.2实现redis3.2.8集群的管理
查看>>
数据库(二)
查看>>
数组各元素随机赋值、求和、求平均值、求最大值的各类测试(一维数组)
查看>>
Linux学习之分区自动挂载与fstab文件修复(九)
查看>>
用Javascript获取页面元素的位置(转)
查看>>
matlab实现MCMC的马尔可夫切换ARMA - GARCH模型估计
查看>>
面向对象程序设计 总结作业
查看>>
django总结-从socket到实战的概略
查看>>
【转载】复制文件到已存在的Jar
查看>>
Sublime Text3常用插件以及安装方法(实用)
查看>>
javaWeb服务详解(含源代码,测试通过,注释) ——applicationContext-Service.xml
查看>>
基本数据类型(int,bool,str)
查看>>
从内而外
查看>>
Unity 一个简单的鼠标跟随
查看>>
vim下go开发配置
查看>>
JVM中的堆与栈的异同点.
查看>>
树莓派raspberry pi配置
查看>>
dnn安全控制类库过滤html、js、sql等防范xss攻击及sql攻击
查看>>
2-angular.bootstrap
查看>>