【CentOS】修改MySQL密碼5.7以及以上

1、修改my.cnf 配置文件       sudo vim /etc/my.cnf              在[mysqld]下添加 skip-grant-tables       2、啓動mysql,使用命令 systemclt start mysqld 3、登陸 mysql -uroot 回車 4、按照以下順序執行語句      (1)update mysql.user set authe
相關文章
相關標籤/搜索