Host '*' is not allowed to connect to this MariaDB server
来源:互联网 发布:帝国时代3兵种数据 编辑:程序博客网 时间:2024/05/19 19:40
转载自http://blog.csdn.net/u011275152/article/details/50523032
MySQL权限问题
原因:安装mysql时没有勾选“Enable root access from remote machines”
如何开启MySQL的远程帐号-1)首先以 root 帐户登陆 MySQL
在 Windows 主机中点击开始菜单,运行,输入“cmd”,进入控制台,然后cd 进入MySQL 的 bin 目录下,然后输入下面的命令。
> MySQL -uroot -p123456 (123456 为 root 用户的密码。)
如何开启MySQL的远程帐号-2)创建远程登陆用户并授权
> grant all PRIVILEGES on test_db.* to root@'192.168.1.101' identified by '123456';
上面的语句表示将 test_db 数据库的所有权限授权给 root 这个用户,允许 root 用户在 192.168.1.101 这个 IP 进行远程登陆,并设置 root 用户的密码为 123456 。
下面逐一分析所有的参数:
all PRIVILEGES 表示赋予所有的权限给指定用户,这里也可以替换为赋予某一具体的权限,例如select,insert,update,delete,create,drop 等,具体权限间用“,”半角逗号分隔。
test_db.* 表示上面的权限是针对于哪个表的,test_db指的是数据库,后面的 * 表示对于所有的表,由此可以推理出:对于全部数据库的全部表授权为“*.*”,对于某一数据库的全部表授权为“数据库名.*”,对于某一数据库的某一表授权为“数据库名.表名”。
root 表示你要给哪个用户授权,这个用户可以是存在的用户,也可以是不存在的用户。
192.168.1.101 表示允许远程连接的 IP 地址,如果想不限制链接的 IP 则设置为“%”即可。
123456 为用户的密码。
开启MySQL的远程帐号-3)执行了上面的语句后,再执行下面的语句,方可立即生效。
> flush privileges;
原文地址:
http://www.cnblogs.com/zhangzhu/archive/2013/08/22/3274831.html
http://blog.csdn.NET/liuxiyangyang/article/details/8951262
- Host '*' is not allowed to connect to this MariaDB server
- Host '*' is not allowed to connect to this MariaDB server
- Mariadb-Host '192.168.*.*' is not allowed to connect to this MariaDB server"的解决方法
- host XXX is not allowed to connect to this MariaDB
- Navicat 连接mysql失败: Host '*' is not allowed to connect to this MariaDB server
- Navicat 连接mysql失败: Host '*' is not allowed to connect to this MariaDB server
- Navicat连接MariaDB出错:1130-host . is not allowed to connect to this mysql server,
- 解决报错:错误1130- Host xxx is not allowed to connect to this MariaDb server
- Error: Host ' is not allowed to connect to this MariaDB server at Error (native
- host is not allowed to connect to this MySQL server
- Host is not allowed to connect to this MySQL server
- host ... is not allowed to connect to this MySql server
- Host * is not allowed to connect to this MySQL server
- host is not allowed to connect to this MySql server
- Host is not allowed to connect to this MySQL server
- host ... is not allowed to connect to this MySql server
- Host '***' is not allowed to connect to this MySQL server"
- host ... is not allowed to connect to this MySql server
- 【转载】判断采购订单行项目的免费字段
- mysql存储过程批量插入数据
- TCP拥塞控制——慢开始和拥塞避免
- POJ 3660 Cow Contest【思维】
- 【线下沙龙免费报名】像阿里巴巴一样工作_听干货分享欣赏阿里西溪园区风景
- Host '*' is not allowed to connect to this MariaDB server
- Apache+tomcat的整合
- C#发送邮件类
- BIEE迁移后服务报错:Server not initialized. Please make sure the repository is ready
- xListView+下载安装apk+跳转设置WIFI界面
- Android高效加载大图、多图解决方案,有效避免程序OOM
- 嵌入系统概论-常见问题
- Neural Response Generation via GAN with an Approximate Embedding Layer 的一些理解
- C++动态创建二维数组,memset()初始化二维数组