150929 09:41:52 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
150929 9:41:52 [Note] Plugin 'InnoDB' is disabled.
150929 9:41:52 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150929 9:41:52 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150929 9:41:52 [Note] Server socket created on IP: '0.0.0.0'.
150929 9:41:52 [Note] Event Scheduler: Loaded 0 events
150929 9:41:52 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.42-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution
150929 9:41:53 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
150929 9:41:53 [Note] Event Scheduler: Purging the queue. 0 events
150929 9:41:53 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
当我试图阻止mysql时,我得到了以下内容:
Stoping LNMP...
Stoping nginx... done
* MySQL server PID file could not be found!
Gracefully shutting down php-fpm done
Starting LNMP...
Starting nginx... done
Starting MySQL
. * The server quit without updating PID file (/var/run/mysqld/mysqld.pid).
Starting php-fpm done
希望有人可以帮助我。
答案 0 :(得分:0)
看起来您的数据库在该卷上。 检查是否已自动创建快照(EC2 - 右侧的快照)。 如果你有,那么:
现在"停止"实例(不要终止!),一旦停止 - 分离当前卷并附上您从快照创建的卷。
启动实例并检查它是否正常工作。
但如果您没有快照,则无需做任何事情 - 您只需要从头开始设置数据库(创建新数据库,创建表等)。 如果mysql在停止/启动后没有工作 - 尝试重新安装它,它应该重新创建可能现在丢失的数据文件夹。