如何用navicat连接linux服务器上的mysql以及重启服务

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  查询服务列表,然后根据名字重启相应服务就好

原文地址:https://www.cnblogs.com/wskb/p/12103240.html