cd /usr/local/mysql/bin/mysql
sudo susql
./mysqld_safe --skip-grant-tables & //自動重啓而且跳過驗證ip
./mysql -uroot -p //無密碼登陸Mysqltable
./mysqladmin -u root -p password 123 //修改密碼登錄