linux8.0下的mysql错误信息!请大虾们相助!在线等待中........

WindApple 2003-01-16 09:06:49
我在red hat linux8.0下安装了mysql-3.23.41-1.i386.rpm,
我启动它时提示Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock'

我看了一下,在/var/lib/mysql/下面没有东西,我以前安装在linux7.2时没有出现过这种情况!请问怎么回事???

多谢大侠相助!
...全文
53 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yzhlinux 2003-01-22
  • 打赏
  • 举报
回复
靠!都是白痴,没一个说对的!
"原因:linux防火墙在起作用(具体不详)

解决方法之一:

编辑 /etc/hosts
将你的客户端的主机名及IP地址加进去,好用的^_^!
"
说这话的人连问题都没有看清楚!
“1,First,You must confirm that the MySql server has been started!
If no,you can run '/etc/init.d/mysqld start' to start it!

2.Can you use '/usr/sbin/mysqladmin -u root -h localhost' command to connect database?

3.Check you firewall rule.

4.If you can't resolv this problem through above method,you can try to reinstall it with '--replace-files' parameter!

说这些的人更本不懂mysql.sock 是什么东西!
都是白痴!
chlinux 2003-01-22
  • 打赏
  • 举报
回复
redhat7.3以下版本没有这方面的问题
chlinux 2003-01-22
  • 打赏
  • 举报
回复
原因:linux防火墙在起作用(具体不详)

解决方法之一:

编辑 /etc/hosts
将你的客户端的主机名及IP地址加进去,好用的^_^!
wangyangcheng 2003-01-21
  • 打赏
  • 举报
回复
1,First,You must confirm that the MySql server has been started!
If no,you can run '/etc/init.d/mysqld start' to start it!

2.Can you use '/usr/sbin/mysqladmin -u root -h localhost' command to connect database?

3.Check you firewall rule.

4.If you can't resolv this problem through above method,you can try to reinstall it with '--replace-files' parameter!
yzhlinux 2003-01-18
  • 打赏
  • 举报
回复
很明显你没有初始化数据库!
WindApple 2003-01-16
  • 打赏
  • 举报
回复
下面的那两个文件包我也安装了,我写了一个php测试文件,在里面都可以找到mysql的信息,可是还是我无法使用它!
键盘老农 2003-01-16
  • 打赏
  • 举报
回复
应该是没有安装全
mysql-3.23.14-1-server.i386.rpm
mysql-3.23.14-1-client.i386.rpm
(包名不一定是这样的)
把以前的卸载了
rpm -e mysql-3.23.52-3
seachange 2003-01-16
  • 打赏
  • 举报
回复
你的MySQL服务起了吗? /etc/init.d/mysqld start

19,615

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧