`
85977328
  • 浏览: 1871911 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Mysql 5.5 无法远程登陆:Can't get hostname for your address

阅读更多
昨天oracle刚发布了MySQL5.5.8和5.1.54,欣喜之下,尝试了一翻.
windows2003下安装方式与MySQL5.1完全相同,只是最后的时候,enable remote acess不要选择,否则安装报错.这里需要手动增加个root用户,host那的地址为"%"

但是即便如此配置,仍然不能远程登陆.解决方式如下:
错误信息:Can't get hostname for your address
修改配置文件
在windows下面,文件时my.ini,在Linux下面是my.cnf
解决方案是在
[mysqld]
skip-name-resolve #加上这一个属性

分享到:
评论
2 楼 calvinlyc 2011-01-02  
恩,默认是不可以remote access的,需要个特定的帐号授权
1 楼 zeronelee 2010-12-31  
Mysql5.5安装后root默认是不能远程连接的,需要改更改ROOT的权限。

相关推荐

    gethostname.rs:所有系统的gethostname()

    gethostname.rs 所有平台的 。 use gethostname :: gethostname; println! ( "Hostname: {:?}" , gethostname ()); 现有技术 还提供gethostname() ,但从2019年起将。此板条箱改善了。 执照 版权所有2019 ...

    electra-ia003-esp

    E (7657) esp-tls: couldn't get hostname for :aaa.bbb.ccc: E (7657) esp-tls: Failed to open new connection E (7657) TRANS_SSL: Failed to open a new connection E (7657) MQTT_CLIENT: Error transport ...

    VC gethostname获取计算机名和IP地址.rar

    VC 获取计算机名和IP地址,基于MFC的,是一...具体来说是使用gethostname获取主机名(计算机名),使用GetIPAddress来获取IP地址的字符串,然后再经过字符转换成IP格式,这个例子挺简单,对研究MFC的朋友,或许有帮助。

    解决linux找不到hostname的处理

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

    gethostname4j:简单的JNA库可从Java获取当前计算机的主机名

    gethostname4j 简单的JNA库可从Java获取当前计算机的主机名我很沮丧地发现InetAddress.getLocalHost().getHostName() Java惯用语在某些情况下返回localhost,而这似乎只能通过修改/etc/hosts来解决。 该库使用JNA...

    repo,解决fatal: Cannot get https://gerrit.googlesource.com/git-repo

    18年7月更新,清华镜像,完美解决 Yocto,Android fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle 错误,绕开GFW

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

    GetIP PB获取IP的DLL

    Function uLong Gethost(ref string hostname) Library "GetIP60.dll" ALIAS FOR "Gethost;ansi" 调用方法 string ls_Host = space(256) int result result = Gethost(ls_Host) if result =0 then sle_1.text=...

    基于mysql 5.5 设置字符集问题的详解

    在虚拟机上安装了一个mysql,修改其my.cof文件,发现这个配置文件...查看/var/lib/mysql/${hostname}.err 文件: 问题是mysqld不识别 default-character-set 。上网查了一些资料,发现在 mysqld 下面 设置 character

    tcping tool

    Usage: tcping [ t] [ d] [ i interval] [ n times] server address [server port] t : ping continuously until stopped via control c n 5 : for instance send 5 pings i 5 : for instance ping every 5 ...

    udp-portal:通过TCP隧道UDP流量

    udp-portal client tcp://hostname:8080 udp://239.5.5.5:4005 原料药 服务器 var portal = require ( 'udp-portal' ) ; var server = portal . server ( 'udp://239.5.5.5:4005' ) ; server . listen ( function ...

    gethostname

    通过已知远程主机的IP地址,获取远程主机的主机名

    常用 JDBC 驱动名字和 URL 列表

    jdbc:mysql://hostname:3306/dbname?useUnicode=true&characterEncoding=GBK Microsoft SQL Server Driver com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://127.0.0.1:1433;...

    MySQL连接无法解析HOST主机名的解决方法

    主要介绍了MySQL连接无法解析HOST主机名的解决方法,需要的朋友可以参考下

    解决C#广播问题

    解决C#广播,很简单 C#中发送广播消息的过程如下,注意要调用SetSockOption函数,不然要抛出异常: Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.... string hostname = Dns.GetHostName();

    MYSQL导入导出.sql文件

    1.C:\>mysql -h hostname -u username -p 按ENTER键,等待然后输入密码。这里hostname为服务器的名称,如localhost,username为MYSQL的用户名,如root。 进入命令行后可以直接操作MYSQL了。 2.简单介绍一下MYSQL...

    Mysql学习笔记

    Mysql学习笔记 mysql使用mysql协议,mysql协议是明文的。 SQL查询语句,原名称为sequel,后来改为SQL。 SQL语言的组成部分: DDL DML 完整性定义语言(DDL的一部分) 视图定义 事务控制 嵌入式SQL(嵌入到其他开发...

    思科交换机基本配置手册

    switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 ...

    ccna命令总结集

    switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 ...

    universal loader 2.0.0b_sat_MultiProgrammer_gethostname_universa

    Multi Satellite Receiver programmer

Global site tag (gtag.js) - Google Analytics