Ubuntu Server中LAMP下MySQL无法远程连接问题10061

运维 系统运维
Ubuntu server中,LAMP的配置时,我们常常会遇到MYSQL无法远程连接的问题。本文讲述的是:“100061Can not connect to mysql error 10061”,“is not allowed to connect to this MySQL server1130”这两个问题的解决。第一个问题:

Ubuntu Server中LAMPMySQL无法远程连接该怎么办  :

MySQL无法远程连接问题10061问题1130 

  很常见的问题发生了,我们怎么处理它?

  环境:ubuntu Server (版本8.04以上对于LAMP应用都大同小异), cl@ubuntu.

  目的:安装LAMP重新配置RT系统。

  软件:服务器端已安装LAMP组件,MySQL5.1版本;客户端使用Navicat进行远程连接。

  问题:① 提示”Can not connect to mysql error 10061” ,如图1

  

LAMP/MySQL/远程连接

  ①当MySQL 连接服务器时发生”Can not connect to mysql error 10061”错误,我们检查/etc/mysql/my.conf文件中的bind-address选项是否设置为服务器的IP,默认为127.0.0.1。

  做如下操作:

  1.   cl@ubuntu:~$ sudo vi /etc/mysql/my.cnf --修改文本内容  
  2.  
  3.   修改bind-address = 127.0.0.1  
  4.  
  5.   为 bind-address = 服务器IP  
  6.  
  7.   :wq --保存退出  
  8.  
  9.   cl@ubuntu:~$ sudo /etc/init.d/mysql restart --重启服务  

 

MySQL无法远程连接问题10061问题1130 

【编辑推荐】

Ubuntu10.10下安装LAMP的方法

Ubuntu下LAMP的PHP错误提示的开启

Ubuntu下LAMP配置文件路径

责任编辑:zhaolei 来源: CSDN
相关推荐

2011-03-14 10:36:21

LAMPMySQL远程连接

2011-04-19 17:10:12

UbuntuServer远程连接

2011-03-14 13:07:23

Ubuntu安装LAMP

2011-03-10 10:51:45

Ubuntu搭建LAMP

2011-03-10 08:59:04

Ubuntu安装LAMP

2011-03-10 10:09:09

UbuntuLAMP搭建

2011-03-09 15:13:00

UbuntuLAMP配置

2011-03-09 15:44:14

UbuntuLAMP

2011-03-11 10:27:45

UbuntuLAMP配置

2011-03-14 11:29:43

2011-03-10 11:06:02

Ubuntu搭建LAMP

2011-03-21 16:37:57

2011-03-08 10:35:23

2010-10-19 13:05:31

Sql Server远

2021-01-22 15:18:21

UbuntuLinuxApache

2011-09-08 10:21:16

UbuntuSNMP

2011-03-21 16:21:21

ubuntulamp

2011-03-11 10:09:59

UbuntuLAMP路径

2011-03-09 15:25:36

UbuntuLAMPPHPadmin

2011-03-22 10:25:54

UbuntuLAMP
点赞
收藏

51CTO技术栈公众号