这个问题是因为在数据库服务器中的mysql数据库中的user的表中没有权限(也可以说没有用户),下面将记录我遇到问题的过程及解决的方法。
在搭建完LNMP环境后用Navicate连接出错
遇到这个问题首先到mysql所在的服务器上用连接进行处理
1、连接服务器: mysql -u root -p
2、看当前所有数据库:show databases;
3、进入mysql数据库:use mysql;
4、查看mysql数据库中所有的表:show tables;
5、查看user表中的数据:select Host, User,Password from user;
6、修改user表中的Host:update user set Host='%' where User='root';
7、最后刷新一下:flush privileges;
#一定要记得在写sql的时候要在语句完成后加上" ; "下面是图示说明
遇到这个问题首先到mysql所在的服务器上用连接进行处理
连接服务器: mysql -u root -p
查看当前所有数据库:show databases;
进入mysql数据库:use mysql;
查看mysql数据库中所有的表:show tables;
查看user表中的数据:select Host, User,Password from user;
修改user表中的Host:update user set Host='%' where User='root';
最后刷新一下:flush privileges;
重新在Navicate中测试一下:
参考自:http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html;
相关推荐
报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用l
1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到mysql ...
message from server: “Host ‘****’ is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION //赋予任何主机访问数据的...
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
java.sql.SQLException: null, message from server: “Host ‘223.72.41.7’ is not allowed to connect to this MySQL server” 客户端访问时报错: 解决方法: 1,登陆服务器 mysql> use mysql; //用mysql ...
ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server www.jb51.net 出现原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新 登陆出现“Host ‘localhost’ is...
如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在...
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
在使用MySQL数据库时,可能会遇到"Host 'localhost' is not allowed to connect to this MySQL server"的错误信息,这是由于MySQL的安全机制所致。MySQL的安全机制是基于主机名和用户名的组合来控制访问权限的。因此...
前言 ...看起来像是没办法访问到数据库连接的...ERROR 1130: Host *.*.*.* is not allowed to connect to MySQL 看到这个错误后,上网一查,基本上有挺多解决方案,但是为什么还要专门写一下呢? 答案是:网上很多都是my
授权法,介绍远程用户连接mysql数据库,给任意远程主机授权访问mysql server的权限。
本地计算机ip:192.168.1.100 ... ERROR 1130 (HY000): Host '192.168.1.100' is not allowed to connect to this MySQL server 出现这种情况是因为mysql服务器出于安全考虑,默认只允许本地
最近在学习Django框架,于是在windows系统上搭建了Django环境,并使用虚拟机ubuntu系统上安装的mysql作为项目的远程数据库,前几天一直用得好好的,今天在虚拟机上连接数据库时,出现了如下错误: 本地数据库没法...
直接使用Navicat通过IP连接会报各种错误,例如:Error 1130: Host ‘192.168.1.80’ is not allowed to connect to this MySQL server。 经过个人验证,得到解决方法,如下: 授权法: 1.首先使用localhost登录到想...
解决办法:mysql 出现Host 'localhost' is not allowed to connect to this MySQL server 错误。
Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; http://php.net/output-buffering output_buffering = 4096 ; You can ...
安装完MySQL以后会自动创建一个root用户和一个匿名用户,对于root大家都非常注意,而这个匿名用户很多人都会忽略,大概是因为匿名用户默认设定为只能在本地使用的缘故吧。 但如果MySQL要作为数据库提供给Web服务器...
如果mysql不支持远程连接,会出现提示:错误代码是1130,ERROR 1130: Host 192.168.0.10 is not allowed to connect to this MySQL server ,解决此问题有以下2个方法: 1、改表法:在本机登入mysql后,更改...
With exercises in each chapter to help you apply what you’ve learned, all you need is programming experience to get started. Explore the machine learning landscape, particularly neural nets Use ...