linux下安装mysql 的问题:不能启动

鼓手 2006-07-06 06:06:12
按照安装文件中的安装帮助,按步骤执行安装完成后,无法启动:
相应的提示信息如下:

终端显示如下:
[root@localhost ~]# /usr/local/mysql/bin/mysqld_safe &
[1] 4501
[root@localhost ~]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
060706 17:37:03 mysqld ended

[1]+ Done /usr/local/mysql/bin/mysqld_safe


日志 /var/log/mysqld.log 内容如下:
060706 17:37:02 mysqld started
060706 17:37:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
060706 17:37:03 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43634.
InnoDB: Doing recovery: scanned up to log sequence number 0 43634
060706 17:37:03 InnoDB: Flushing modified pages from the buffer pool...
060706 17:37:03 InnoDB: Started; log sequence number 0 43634
060706 17:37:03 [ERROR] /usr/local/mysql/bin/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2)
060706 17:37:03 [ERROR] Can't start server: can't create PID file: No such file or directory
060706 17:37:03 mysqld ended




是怎么回事??

如何解决?

我是新手,第一次装mysql-4.1.20 到linux AS 4 上.

谢谢!
...全文
411 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingxianger 2006-07-23
  • 打赏
  • 举报
回复
我使用的过程也遇到了类似的问题,是mysql没有授权造成的
efanlx 2006-07-07
  • 打赏
  • 举报
回复
权限问题
chown mysql:mysql /usr/local/mysql/var/mysql
鼓手 2006-07-07
  • 打赏
  • 举报
回复
不行,还是报告一样的错误~

mathematician 2006-07-07
  • 打赏
  • 举报
回复
同意楼上,mysql没有linux的权限产生的错误

解决方法:
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
然后启动试试:
/usr/local/mysql/bin/safe_mysqld --user=mysql &
Dong 2006-07-06
  • 打赏
  • 举报
回复
usr/local/bin/safe_mysqld &

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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