QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6745|回复: 43

RH 8.0 自带的 MySQL 不能远程连接 ?

[复制链接]
发表于 2002-11-2 14:32:07 | 显示全部楼层 |阅读模式

解决这个问题好久了。现在想起,告诉大家。

Redhat 8.0  的  MySQL 有 bug 。

你运行 mysqld 是可以起来,但是只能本机联接。

解决办法:
下载 MySQL-3.23.52-1 rpm 包的版本

而不是 MySQL-3.23.53-1 rpm 包的版本
。这个版本会在启动时提示:
021018 10:53:00  mysqld started
Fatal error: Can't change to run as user 'mysql' ;  Please check that the user exists!
021018 10:53:01  Aborting


实际上这个提示是不对的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2002-11-2 14:41:46 | 显示全部楼层

继续

3.23.53是 升级的MySQL 的。

3.23.52 的结果是 我改动后的。远程可以联接。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2002-11-7 16:42:35 | 显示全部楼层
no bug in mysql ported with rh8

just disable host resolve, and do not bind address to localhost with the mysql server.

however, it's dangerous to connect mysql remotely. do you really have to do that ?!
回复

使用道具 举报

 楼主| 发表于 2002-11-7 16:58:30 | 显示全部楼层
[quote:c9682052f8="zmaning"]no bug in mysql ported with rh8

just disable host resolve, and do not bind address to localhost with the mysql server.

however, it's dangerous to connect mysql remotely. do you really have to do that ?![/quote]




[safe_mysqld]
#bind-address   = 0/0


是修改这里吗,我试过了的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2002-11-8 09:17:54 | 显示全部楼层
我也是不能远程连接,问题找了很久也不知道怎么回事以为是防火墙,晕~~后来重新安装新的版本就OK,所以依然不知道WHY?
回复

使用道具 举报

 楼主| 发表于 2002-11-17 14:38:49 | 显示全部楼层
请 Mozilla 斑竹 移到“ 服务器设置 ” 栏
回复

使用道具 举报

发表于 2002-11-17 15:46:06 | 显示全部楼层
根据DEBIAN上的MYSQL DEB包,随便说说吧(MYSQL RPM没用过)
为了安全起见,DEBIAN MYSQL的打包人在mysql配置文件my.cnf中
加入了skip-networking的语句,防止外部连接
REDHAT 8 RPM是否也如此呢?
看下MY.CNF以及safe_mysqld or mysqld_safe文件
看看里面有没有skip-network,如果有,去掉
回复

使用道具 举报

 楼主| 发表于 2002-11-17 16:08:12 | 显示全部楼层
我的没有。

重新安装 rpm 包的前后,/etc/my.cnf 是一模一样的。
回复

使用道具 举报

发表于 2002-11-17 16:14:57 | 显示全部楼层
mysqld_safe这个命令文件呢?
回复

使用道具 举报

 楼主| 发表于 2002-11-18 07:57:16 | 显示全部楼层
一样
回复

使用道具 举报

 楼主| 发表于 2002-11-22 14:01:06 | 显示全部楼层

Re: 解决这个问题好久了。现在想起,告诉大家。

[quote:17cdd4994f="gugong"]

解决办法:
下载 MySQL-3.23.52-1 rpm 包的版本

而不是 MySQL-3.23.53-1 rpm 包的版本
。这个版本会在启动时提示:
021018 10:53:00  mysqld started
Fatal error: Can't change to run as user 'mysql' ;  Please check that the user exists!
021018 10:53:01  Aborting


实际上这个提示是不对的。[/quote]



MySQL-3.23.53a 已经修正了MySQL-3.23.53 的问题。

OK !


2002年11月22日下午13时42分28秒[root@gugonghcs Mysql]# rpm -Uvh MySQL-3.23.53a-1.i3861.rpm MySQL-client-3.23.53a-1.i386.rpm MySQL-d-shared-3.23.53a-1.i386.rpmSQL
Preparing...                ########################################### [100%]
   1:MySQL-client           ########################################### [ 25%]
Giving mysqld a couple of seconds to exit nicely
   2:MySQL                  ########################################### [ 50%]
Installing all prepared tables
021122 13:43:17  /usr/sbin/mysqld: Shutdown Complete


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/bin/mysqladmin -u root  password 'new-password'
/usr/bin/mysqladmin -u root -h gugonghcs.fruitron.com.cn  password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!


Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Starting mysqld daemon with databases from /var/lib/mysql
   3:MySQL-devel            ########################################### [ 75%]
   4:MySQL-shared           ########################################### [100%]




不过,我还是喜欢 RH 自带的 /etc/init.d/mysqld ,而不是 MySQL 官方的 /etc/init.d/mysql ,大家是否有同感 ?


回复

使用道具 举报

发表于 2002-11-22 22:54:16 | 显示全部楼层
GUGONG:

我在CHINAUNIX上看到帖子说是下面的问题,不知道是否确切:

“是mysql与glibc之间冲突的造成一个溢出错误.
升级mysql或者升级glibc(一般是降级)都可以解决.”
回复

使用道具 举报

 楼主| 发表于 2002-11-23 07:32:53 | 显示全部楼层
[quote:9c226211f5="bluevision"]GUGONG:

我在CHINAUNIX上看到帖子说是下面的问题,不知道是否确切:

“是mysql与glibc之间冲突的造成一个溢出错误.
升级mysql或者升级glibc(一般是降级)都可以解决.”[/quote]


既然 mysql 官方发布的 是 rpm 包,应该说是 支持 rh 的 发行的 glibc 版本。

既然有冲突,那也应该是这个 MySQL-3.23.53 rpm 包 没有做好。

而 MySQL-3.23.53a rpm 包 做好了,解决了这个问题。

不知大家怎么理解。
回复

使用道具 举报

发表于 2002-11-24 00:38:23 | 显示全部楼层
古古,还不快谢谢我weiwei
回复

使用道具 举报

 楼主| 发表于 2002-11-24 13:17:26 | 显示全部楼层
    
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-2 12:45 , Processed in 0.104384 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表