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 上.
谢谢!