Posts mysql8.0安装的几个小问题
Post
Cancel

mysql8.0安装的几个小问题

今天在自己的阿里云服务器上安装了mysql,装的最新版本,有些操作有细微的变化

(1)关于如何删除全部依赖项并清除设置.一个很典型的,如果不加–purge参数,所有设置都会保留,比如

1
apt-get --purge autoremove mysql-server

(2)mysql5.7之后,mysql数据库下user表里没有password字段了,改成了authentication_string,修改密码命令如下

1
ALTER USER 'a'@'localhost' IDENTIFIED WITH MYSQL_NATIVE_PASSWORD BY 'xxx';

(3)想远程连接得把/etc/mysql/mysql.conf.d/下的mysql.cnf的bind-address = 127.0.0.1注掉

参考

ubuntu18安装mysql

This post is licensed under CC BY 4.0 by the author.

问题解决集锦

go实操学习