cd /usr/local//mysql/bin
mysqld --initialize --console
報(bào)錯(cuò)不慌
/usr/local/var/mysql 刪除里面的文件
在此初始設(shè)置
mysqld --initialize --console
會(huì)得到一個(gè)臨時(shí)密碼
mysql -uroot -p 登錄之后更改密碼
alter user 'root'@'localhost' identified by '123456';
cd /usr/local//mysql/bin
mysqld --initialize --console
報(bào)錯(cuò)不慌
/usr/local/var/mysql 刪除里面的文件
在此初始設(shè)置
mysqld --initialize --console
會(huì)得到一個(gè)臨時(shí)密碼
mysql -uroot -p 登錄之后更改密碼
alter user 'root'@'localhost' identified by '123456';