1,開啟mysql權限:https://www.cnblogs.com/NaughtyCat/p/how-to-connect-to-mysql-on-linux-by-navicat.html
- mysql開啟root權限(mysql命令下執行)
賦予權限: grant all privileges on *.* to 'root'@'% 'identified by 'your password' with grant option
刷新權限列表: flush privileges
2,重啟mysql服務 :https://blog.csdn.net/qq_31083947/article/details/90248565
使用 chkconfig --list 查詢服務列表,然后根據名字重啟相應服務就好