一、修改配置文件免密登錄
vi /etc/my.conf
skip-grant-tables
二、登錄數(shù)據(jù)庫
mysql -u root -p
#輸入密碼時(shí)直接回車
use mysql;
update user set authentication_string = password("123456") where user = "root";
一、修改配置文件免密登錄
vi /etc/my.conf
skip-grant-tables
二、登錄數(shù)據(jù)庫
mysql -u root -p
#輸入密碼時(shí)直接回車
use mysql;
update user set authentication_string = password("123456") where user = "root";