Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution 160130 08:29:38 mysqld_safe Number of processes running now: 0 160130 08:29:38 mysqld_safe mysqld restarted 160130 8:29:39 InnoDB: Initializing buffer pool, size = 8.0M 160130 8:29:39 InnoDB: Completed initialization of buffer pool InnoDB: Error: pthread_create returned 11 160130 08:29:39 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 160130 18:21:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 160130 18:21:35 InnoDB: Initializing buffer pool, size = 8.0M 160130 18:21:35 InnoDB: Completed initialization of buffer pool InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_logfiles! 160130 18:21:35 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... 160130 18:21:35 InnoDB: Started; log sequence number 0 818060756 160130 18:21:35 [Note] Event Scheduler: Loaded 0 events 160130 18:21:35 [Note] /usr/libexec/mysqld: ready for connections.
我不知道这是什么意思。 MySQL是否因为日志文件而崩溃? 我不这么认为。 我需要修改一些configuration文件吗?
您的服务器内存不足,必须开始随机杀死进程才能生存。
你可以得到更多的RAM,或者减less你使用的数量。 'top'命令将显示所有正在运行的进程以及它们使用的内存量。 'free -m'会告诉你你有多less内存和多less你正在使用。 删除您不需要的stream程和服务。
MySQL可以调整使用更less的内存,但代价是cachingless,运行速度慢。 有很多的指导,有哪些选项设置和他们的影响。 Apache或大多数正在运行的其他服务将有类似的指南,在必要时对低内存系统进行调整 – 同样经常会降低性能。