首页 > 代码库 > ubuntu安装mysq 10061错误

ubuntu安装mysq 10061错误

Ubuntu Server安装mysql数据库,出错问题,软件登录报10061错误,

解决方法

1修改mysql配置文件(默认路径是/etc/mysql/my.cnf)

注释此条bind-address           = 127.0.0.1

2 进mysql数据库授权所有用户 grant all on *.* to ‘用户名‘@‘%‘ identified by ‘密码‘



Mysql 密码修改

mysql>use mysql;

      mysql>update user set password=password(‘new_password‘) where user=‘用户名‘;

      mysql>flush privileges;



密码修改 

mysql -u root

  mysql> use mysql;

  mysql> UPDATE user SET Password = PASSWORD(‘newpass‘) WHERE user = ‘root‘;

  mysql> FLUSH PRIVILEGES;


本文出自 “网络工程专题” 博客,请务必保留此出处http://houzhibo.blog.51cto.com/3103241/1597824

ubuntu安装mysq 10061错误