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

1、sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf      添加 skip-grant-tables 2、啓動mysql,使用命令sudo /etc/init.d/mysql start 3、登陸 mysql -uroot 4、執行語句      (1) update mysql.user set authentication_string=passwor
相關文章
相關標籤/搜索