mysql -uroot -h127.0.0.1 -P3306 -p123456
授权远程登录数据库
grant all on *.* to 'root'@'192.168.31.101' identified by '123456' with grant option (授权为超级用户)
mysql -uroot - -P3306 -p123456
mysql -uroot -S /tmp/mysql.sokt
上一篇:MySQL的密码重置
下一篇:mysql的备份与恢复