QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 630|回复: 3

mysql问题,请高手解决???

[复制链接]
发表于 2003-10-14 15:36:22 | 显示全部楼层 |阅读模式
用rpm方式安装了mysq 3.23
然后用/etc/rc.d/init.d/msyql start
显示:
Starting mysqld daemon with databases from /var/lib/mysql
031014 15:51:09  mysqld ended
然后就不动了,用
/usr/bin/mysql 启动时,显示:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

这是什么原因,查看进程时,显示mysql已经启动,有什么办法解决吗?
用phpmyadmin也访问不到,说是:

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 23

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 24

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 25

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 26

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 27

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/mysql/libraries/auth/config.auth.lib.php:91) in /var/www/html/mysql/header.inc.php on line 29

Error

MySQL said:


Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

高手快帮忙,在线等
发表于 2003-10-14 18:03:30 | 显示全部楼层
rpm方式不知道。

不过一般来说源码方式是: 配置、make、make install. 初始化,设置权限。


初始化,设置权限。 这2步如果做的不好容易出现那种一运行mysql就end的情况。
回复

使用道具 举报

发表于 2003-10-14 23:24:25 | 显示全部楼层
检查你的 /var/lib/mysql 权限。 应该是

drwxr-xr-x    4 mysql    mysql        4096 Oct 13 22:24 mysql

chown -R mysql /var/lib/mysql/mysql
chgrp -R daemons /var/lib/mysql/mysql
回复

使用道具 举报

发表于 2003-10-15 10:54:01 | 显示全部楼层
我也有这样的问题--不过我是从源代码安装的
就是初始华,设置权限有点乱
能给出正确的具体的命令吗?
多谢
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-15 20:50 , Processed in 0.059537 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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