`

如解决Host 'HostName' is not allowed to connect to this MySQL server

阅读更多
今天来连接远程的MYSQL数据库
报以下错误:Host 'HostName' is not allowed to connect to this MySQL server

需要创建用户并且指定机器名 就OK了

create user xiaohe;
赋予权限
grant select,update,insert ,delete on *.* to xiaohe@IP identified by "密码"
*.* 表示对那个数据库.表 有操作权限
*.*代表所有
重新登录
搞定
分享到:
评论

相关推荐

    解决linux找不到hostname的处理

    解决linux找不到hostname的处理文档UnknownHostException

    mysql 断电不能启动

    2017-11-15 19:23:48 1404 [Note] Server hostname (bind-address): '*'; port: 3306 2017-11-15 19:23:48 1404 [Note] IPv6 is available. 2017-11-15 19:23:48 1404 [Note] - '::' resolves to '::'; 2017-11-15 ...

    php.ini-development

    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 ...

    FFMPEG: Download failed: 6;"Couldn't resolve host name"

    opencv4.1.0使用cmake编译时,提示FFMPEG: Download failed: 6;"Couldn't resolve host name

    springboot_host

    springboot 解决host漏洞的实例

    NFS服务器客户机配置

    2.#vi /etc/sysconfig/network 修改计算机名为nfs-server。 3.#reboot 4.#service iptables stop 关闭防火墙。 5.#rpm –q portmap nfs-utils 查看软件包。 6.#mkdir /home/share 创建共享目录。 7.#touch /home/...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code. These rules exist to keep the code base manageable while still allowing coders to ...

    Linux中hostname修改方法详解

    Linux操作系统的hostname是一个kernel变量,可以使用如下两种方式查看 # hostname 和 # cat /proc/sys/kernel/hostname 临时修改hostname 通过hostname命令可以设置系统的hostname # hostname newname new...

    思科报错解释

    《思科设备报错解释》包涵绝大部分的思科命令行错误提示解释,可以帮助大家在配置及排错方面更加迅速有效,欢迎大家下载学习。

    VB编程资源大全(英文源码 网络)

    <END><br>31 , MultiServer.zip This is real simple source code for a Multi-Client server, it allows upto 65535 users to connnect to your server,via winsock control- it can be customised to become ...

    PHP操作mysql函数详解,mysql和php交互函数

    connect([string hostname [:port][:/path/to/socket][,string username] [,string password]]) 所有参数都是可选的 举例: @mysql_connect(“localhost”, “user”, “password”) or die(“Could not connect to ...

    secureCRT客户端

    secureCRT,亲测可以使用

    配置ESXi host的IP和hostname

    配置ESXi host的IP和hostname 安装好操作系统,通常我们需要做两件事:配置IP和 设置服务器的名字 在 管理界面进行操作的方法 该文档详细的说明了该方法;

    php连接数据库代码应用分析

    php $db_host=’hostname is database server ‘; $db_database=’database name’; $db_username=’username’; $db_password=’password’; $connection=mysql_connect($db_host,$db_username,$db_password);//...

    VNC2.7.10源代码

    VNC (Virtual Network Computing)是虚拟网络计算机的缩写。... 在 Linux 中,VNC 包括以下四个命令:vncserver,vncviewer,vncpasswd,和 vncconnect。大多数情况下我只需要其中的两个命令:vncserver 和 vncviewer。

    MySQL数据库管理常用命令

    导读:MySQL数据库管理常用命令。 安装利用RPM包安装Mysql,设置TCP 3306端口的iptables。 root密码管理设置root用户的密码mysqladmin -uroot password 'password'。 修改root用户的密码mysqladmin -uroot -p ...

    CentOS7下部署Ceph

    CentOS7下部署分布式存储Ceph,有需要的同学参考一下。

    TraceRoute

    DNS not an ICMP protocol, but it is included to prevent the windows application from blocking.Blocking is when your windows program stops responding to messages, waiting for a call to return....

    通过Host名获取IP地址

    Delphi 通过Host名得到IP地址 由于Host解析IP会消耗一定时间,请勿在大量循环中使用,否则将导致程序未响应。 已将代码封装成函数

    drupal 6.12

    It is not necessary to modify this path, but you may wish to change it if: * your site runs multiple Drupal installations from a single codebase (modify the file system path of each installation ...

Global site tag (gtag.js) - Google Analytics