?修改用戶密碼
1.mysql> alter user 'root'@'localhost' identified by 'youpassword';?
或者? ? ?
mysql> set password=password("youpassword");
2、mysql> flush privileges; 刷新權(quán)限
遠(yuǎn)程登錄mysql命令
mysql -h ip地址 -P 端口號 -u 賬號 -p密碼
例:mysql -h 192.168.0.201 -P 3306 -u root -p123