1. 问题:mysql启动报错(linux)

[root@localhost ~]# service mysqld restart

Another MySQL daemon already running with the same unix socket.
Starting mysqld: [FAILED]

解决方法:

[root@localhost
~] mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak

[root@localhost
~]# service mysqld restart

2. 问题:navicat连接mysql:报1130错误(windons)

1130: Host
xxx.xxx.xxx.xxx  is not allowedto connect to this MySQL server

解决方法:

mysql>use mysql
mysql>update user set host = '%'  where user ='root';
mysql>flush privileges;
mysql>select 'host','user' from user where user='root';
mysql>quit

3. 问题: navicat连接mysql:报1045错误

1045  Access denied for
user 'root'@'localhost' (using password:YES)

解决方法:

/etc/init.d/mysqld stop
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('123456') where USER='root';

(UPDATE
user SET Password=PASSWORD('123456') where USER='root' and host='root' or
host='localhost';)

mysql> FLUSH PRIVILEGES;
mysql> quit

/etc/init.d/mysqld restart

4. 问题: navicat连接mysql:报10060错误

Can't connect to MySQL server (10060)

解决方法:

http://database.51cto.com/art/201107/274565.htm重点检查3306端口是否已经开放

5. 问题:如何创建其他账号远程连接mysql服务器

mysql>use
mysql
mysql>GRANT ALL PRIVILEGES ON *.* TO 'sems_mysql'@'%' IDENTIFIED BY 'gziscassems' WITH GRANT OPTION;

6. 问题:
navicat连接mysql:报10061错误

2003-
can.t connect to MySQL server on xxx.xxx.xxx.xxx (10061)

解决方法:

启动mysql服务

[root@centos64 ~]# service mysqld start

问题:navicat连接mysql:报ERROR 1044
(42000): Access denied for user ''@'localhost' to database 'mysql'

/etc/init.d/mysqld
stop
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
mysql -u root mysql

mysql> delete from user where USER='';
mysql> FLUSH PRIVILEGES;//记得要这句话,否则如果关闭先前的终端,又会出现原来的错误
mysql> quit

最新文章

  1. vuex复习方案
  2. 通过实现System.IComparable接口的CompareTo方法对两个类进行比较
  3. 如何创建 Code Snippet
  4. Linux下查看某进程相关进程
  5. Amoeba for MySQL---分布式数据库Proxy解决方案
  6. jmeter中线程之间传递参数
  7. 给 Gradle 配置国内的 Maven 仓库,提高 jar 包下载速度。
  8. cdev_系列函数
  9. 1988-B. 有序集合
  10. sublime3安装python插件 -- SublimeCodeIntel
  11. mongodb spring
  12. 笨方法学python--字符串和文本
  13. 将 Intent 序列化,像 Uri 一样传递 Intent!!!
  14. 《Shazam It! Music Recognition Algorithms, Fingerprinting, and Processing》译文
  15. OkHttp 设置 User-Agent 教程
  16. pyqt5-顶层窗口特定操作-图标和标题和不透明度
  17. Eclipse安装教程 ——史上最详细安装Java &Python教程说明
  18. POJ 1236 Network Of Schools 【Targan】+【缩点】
  19. WebViewJavascriptBridge 进行js 与native通信。
  20. linux 配置vue环境

热门文章

  1. ConfigUtil读取配置文件
  2. POJ 2441 Arrange the Bulls 状态压缩递推简单题 (状态压缩DP)
  3. 浏览器中的data类型的Url格式,data:image/png,data:image/jpeg!(源自:http://blog.csdn.net/roadmore/article/details/38498719)
  4. Struts2重新学习1
  5. php过滤html标签截取部分内容
  6. [脚本] 一个用于BMP到EPS转换的BAT脚本实现(需要安装bmeps)
  7. tyvj1391走廊泼水节
  8. POJ2279杨氏矩阵+钩子定理
  9. Dynamics CRM 2011 通过数据库修改实体字段的长度需要注意的地方
  10. 启动ECLIPSE时,提示failed to create the java virtual machine