host XXX is not allowed to connect to this MariaDB
来源:互联网 发布:硬盘初始化 数据错误 编辑:程序博客网 时间:2024/06/05 06:08
如何开启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;
- host XXX is not allowed to connect to this MariaDB
- Host '*' is not allowed to connect to this MariaDB server
- Host '*' is not allowed to connect to this MariaDB server
- 解决报错:错误1130- Host xxx is not allowed to connect to this MariaDb server
- Mariadb-Host '192.168.*.*' is not allowed to connect to this MariaDB server"的解决方法
- Host ''xxx.xx.xxx.xxx'' is not allowed to connect to this MySQL server
- host'xx.xxx.xxx.xxx' is not allowed to connect to this mysql server
- Host 'xx.xx.xxx.xxx' is not allowed to connect to this MySQL server
- 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,
- Error: Host ' is not allowed to connect to this MariaDB server at Error (native
- 服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server如何解决
- message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- "Host 'xxx' is not allowed to connect to this MySQL server"解决方案
- MySQL:message from server: "Host xxx is not allowed to connect to this MySQL server"
- 服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server
- 服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server
- 上周热点回顾(1.30-2.5)
- Murder in Restaurant
- vbs修改系统时间,增加或减少任意秒数
- iOS 10推送
- 【技巧】CSS 居中的三种方法
- host XXX is not allowed to connect to this MariaDB
- ES6利用Number.isNaN()更合理的判断NAN
- I/O流的梳理和小结
- 《跟我一起写makefile》(笔记3--命令书写)
- Android 入门教程:安装 Android Studio
- 个人笔记
- 数组(一):Java数组基础
- sql语句中BEGIN TRAN...COMMIT TRAN
- 算法导论第十五章15.2-4