美文网首页
navicate 远程连接mysql

navicate 远程连接mysql

作者: 塔塔七 | 来源:发表于2018-12-29 10:08 被阅读0次

1/1045错误

access denied for user:用户访问被拒绝,新建其他用户代替

端口未开放 、 防火墙未关闭

使用rpm安装错误

使用      rpm -vih xxxxxxxxx --force --nodeps

多次出现以上错误建议使用yum安装

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm

sudo yum install mysql-server

sudo chown -R mysql:mysql /var/lib/mysql

mysql -u root

安装mysql-server如果报错

sudo vi mysql-community.repo

找到mysql-56-community     将enable置为0enable=0

禁止root用户远程连接

use mysql

delete from user where user="root" and host="%";

相关文章

网友评论

      本文标题:navicate 远程连接mysql

      本文链接:https://www.haomeiwen.com/subject/ykkulqtx.html