VPS侦探论坛

 找回密码
 注册
查看: 9234|回复: 5

[Oracle] 数据库出现损坏,无法开启进程

[复制链接]
发表于 2011-9-20 22:57:13 | 显示全部楼层 |阅读模式

以下是错误报告,请军哥帮忙解决下,谢谢。

110920 13:14:17 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 13:15:09 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
110920 13:15:10 [Note] Event Scheduler: Loaded 0 events
110920 13:15:10 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.54-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
110920 18:09:12 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown
110920 18:09:12 [Note] Event Scheduler: Purging the queue. 0 events
110920 18:09:12 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete
110920 18:09:12 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:09:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:09:55 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:09:56 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110920 18:09:56 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:23:31 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:23:31 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:23:31 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110920 18:23:31 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:26:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:26:20 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:26:20 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110920 18:26:20 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:28:03 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:28:03 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:28:03 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110920 18:28:03 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:29:53 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:29:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:29:53 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110920 18:29:53 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
110920 18:31:21 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110920 18:31:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110920 18:31:21 [ERROR] Can't start server : Bind on unix socket: Address already in use
110920 18:31:21 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
110920 18:31:21 [ERROR] Aborting
110920 18:31:21 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete
110920 18:31:21 mysqld_safe mysqld from pid file /usr/local/mysql/var/li333-152.pid ended
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-9-21 07:17:19 | 显示全部楼层


如果是新安装的应该是/usr/local/mysql/bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql
这一步报错了。

可以执行 /usr/local/mysql/bin/mysql_upgrade 试试

/tmp/mysql.sock 是存在的,好像已经有mysql在运行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-9-21 11:47:03 | 显示全部楼层

回复 2# 的帖子


军哥,/tmp/mysql.sock 是我后来自己添加进的。之后又被我删除了。下面是执行/usr/local/mysql/bin/mysql_upgrade命令的情况:

[root@li333-152 ~]# /usr/local/mysql/bin/mysql_upgrade
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
Running 'mysqlcheck with default connection arguments
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-9-21 11:56:33 | 显示全部楼层

回复 2# 的帖子




LNMP的状态如下显示:
[root@li333-152 ~]# /root/lnmp status
=========================================================================
Manager for LNMP V0.7  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
php-fpm is runing!
ERROR! MySQL is not running, but lock exists
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-9-21 17:08:31 | 显示全部楼层

刚安装好还是已经用过一段时间了?

查进程里是否有其他的mysql在运行

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-9-21 17:20:30 | 显示全部楼层

回复 5# 的帖子


刚安装好的。后来我删除了一些数据库表,并且因为网络问题,正在往服务器上传的压缩包没上传完就断开连接了,国内的网络环境真是恶劣啊。然后强制关闭了ie。
没有其他的mysql进程在运行。看来问题挺严重,我再花半天时间把整个系统重做下吧。

谢谢军哥的解答。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-10 12:14 , Processed in 0.026765 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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