[文章作者:狂奔的鹿 本文版本:v1.0 转载请注明原文链接:http://dynamiclu.iteye.com/]
近期, 用mysqld_multi开了几个mysql实例,mysql版本5.5.8;
然后授权:
GRANT ALL PRIVILEGES ON *.* TO 'lsl'@192.168.0.1 IDENTIFIED BY 'lusonglin' WITH GRANT OPTION;
客户端连接报错
could not be resolved: getnameinfo() returned error (code: -3).
如下图:
google里baidu了很久,没找到相关的中文解释原因。
在老外的坛子里发现如下方式:
Try the followng in that order to resolve:
1> At the console of the box on which mysql server is running type mysql -uroot -p
2> It will prompt you for root pasword is it was set. Once insidew mysql command shell type
user mysql;
3> now type the following command:
grant all privileges on *.* to '<username>'@'<IP>' identified by '<password>';
In above command replace <username> with the username you want for connection.<IP> with the IP of the host from where you want the permission to connect to this mysql server(in you case this shall be 192.168.1.2) You can also use 192.168.% to allow connection from all IP that begin eith 192.168. Similarly replacing <IP> with just % will allow connection from all hosts for this username. Replace <password> with the password you want.
4> type this command:
flush privileges;
大概意思是也要授权192.168.% 操作:
GRANT ALL PRIVILEGES ON *.* TO 'lsl'@'192.168.%' IDENTIFIED BY 'lusonglin' WITH GRANT OPTION;
客户端再连一下,果真OK了。
注:配置文件上需加skip-name-resolve参数,不然也会出现同样错误
[文章作者:狂奔的鹿 本文版本:v1.0 转载请注明原文链接:http://dynamiclu.iteye.com/]
- 大小: 35.7 KB
分享到:
相关推荐
在使用MySQL数据库的过程中,可能会遇到“mysql could not be resolved: Name or service not known”的警告,这通常是由于MySQL在尝试反向解析客户端IP地址时失败导致的。这个问题与MySQL配置中的`skip-name-...
在Android开发过程中,遇到"Android NDK *** could not be resolved"这样的错误,通常是由于NDK配置问题或项目构建过程中的依赖解析失败所导致的。NDK(Native Development Kit)是Google提供的一套工具,用于在...
赠送jar包:error_prone_annotations-2.0.18.jar; 赠送原API文档:error_prone_annotations-2.0.18-javadoc.jar; 赠送源代码:error_prone_annotations-2.0.18-sources.jar; 赠送Maven依赖信息文件:error_prone_...
解决 Cannot resolve org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde jar放入D根目录执行: 以下命令加入本地maven库 mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-...
idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...
Could not resolve dependencies for project ****:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer ...
sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这种错误是由于环境中缺少 libpcre.so.1 文件所致。解决方法是创建一个软链接: ...
### Lidar:Range-Resolved Optical Remote Sensing of the Atmosphere #### 一、概述 《Lidar:Range-Resolved Optical Remote Sensing of the Atmosphere》是一本关于激光雷达(Lidar)技术的经典著作,该书深入...
- 0000712: raise error if Form owner is not either TUniGUIApplication or TApplication - 0000609: TUniTimer: Attach to TUniScreenMask - 0000703: TUniDBLookUpxxx bug when datasource and datafield are ...
ua-parser-1.3.0.jar,现在maven中http://maven.twttr.com/ua_parser/ua-parser/1.3.0/ua-parser-1.3.0.pom下载不下来。
在Eclipse开发环境中,有时会遇到"Type 'xxxx' could not be resolved"这样的错误提示,这意味着Eclipse无法找到代码中引用的类型或类。这个问题通常是由于缺少必要的库引用、项目构建路径设置不正确或者头文件缺失...
ORA-27303: additional information: MTU could not be verified. Did not receive valid message. These errors are caused by more aggressive checking introduced in 10.2.0.4. Likelihood of Occurrence ...
在进行Android应用开发时,尤其是使用Eclipse作为集成开发环境(IDE)时,开发者可能会遇到一个常见的错误:“The import android cannot be resolved”。这个错误通常发生在尝试导入或打开一个已存在的Android项目...
ansible systemd-resolved 角色 systemd-resolved角色旨在与Debian发行版一起使用。 Ansible Galaxy用户可以使用以下命令添加 systemd-resolved 角色: ansible-galaxy install damex.systemd_resolved 您可以在...
NULL 博文链接:https://lyh7609.iteye.com/blog/516672
1.120119 16:26:04 [Warning] IP address ‘192.168.1.10’ could not be resolved: Name or service not known 2.120119 16:26:04 [Warning] IP address ‘192.168.1.14’ could not be resolved: Name or service ...
3. `ServletException cannot be resolved to a type`: 表明IDE找不到`javax.servlet.ServletException`异常类,这是Servlet处理过程中可能会抛出的异常类型。 4. 多条"The import javax.servlet cannot be resolved...
错误 L6031U: Could not open scatter description file - **问题描述**: - 编译过程中无法打开指定的散射文件描述文件。 - **解决方案**: - 在指定路径下创建缺失的散射文件描述文件(如`scatZ1204A_VICO....
Aspose.Words是一款强大的库,专为处理Microsoft Word文档而设计,允许开发者在Java应用程序中进行复杂的文档操作,如读取、写入、编辑以及转换格式。本篇将详细探讨Aspose.Words 15.8.0 for JDK 16版本,特别关注其...