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;