【问题标题】:MySQL keeps crashing on Centos [closed]MySQL不断在Centos上崩溃[关闭]
【发布时间】:2014-12-13 01:42:36
【问题描述】:
141210 14:04:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

141210 14:04:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

141210 14:04:29 [Note] libgovernor.so not found

141210 14:04:29 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is  deprecated and will be removed in a future release. Please use the full name instead.

141210 14:04:29 [Warning] The syntax '--log-slow-queries' is deprecated and will be removed in a  future release. Please use '--slow-query-log'/'--slow-query-log-file' instead.

141210 14:04:29 [Note] Plugin 'FEDERATED' is disabled.

141210 14:04:29 InnoDB: The InnoDB memory heap is disabled

141210 14:04:29 InnoDB: Mutexes and rw_locks use GCC atomic builtins

141210 14:04:29 InnoDB: Compressed tables use zlib 1.2.3

141210 14:04:29 InnoDB: Using Linux native AIO

141210 14:04:29 InnoDB: Initializing buffer pool, size = 4.0G

141210 14:04:29 InnoDB: Completed initialization of buffer pool

141210 14:04:29 InnoDB: highest supported file format is Barracuda.

141210 14:04:37  InnoDB: Waiting for the background threads to start

141210 14:04:38 InnoDB: 5.5.36 started; log sequence number 1528598520104

141210 14:04:38 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306

141210 14:04:38 [Note]   - '0.0.0.0' resolves to '0.0.0.0';

141210 14:04:38 [Note] Server socket created on IP: '0.0.0.0'.

141210 14:04:38 [Warning] 'proxies_priv' entry '@ ' ignored in --skip-name-resolve mode.

141210 14:04:38 [Note] Event Scheduler: Loaded 0 events

141210 14:04:38 [Note] /usr/libexec/mysqld: ready for connections.

Version: '5.5.36-cll-lve'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server  (GPL) by Atomicorp

141210 14:06:33 [Note] /usr/libexec/mysqld: Normal shutdown

知道那可能是什么吗?这是迄今为止的问题,不知何故它一直在崩溃..有什么明显的,因为我看不出它崩溃的任何原因。有谁知道如何解决这个问题?

【问题讨论】:

    标签: php mysql linux database centos


    【解决方案1】:

    尝试更换所有者。

    chown -R mysql.mysql /var/lib/mysql
    

    并确保“/var”和“/var/lib”保留其 root.root 所有权和 755 chmod。 让我知道它是否能解决您的问题。


    编辑: 请在 [mysqld] 部分下的“my.cnf”文件中添加以下代码行选项:

    ignore-db-dir = lost+found
    

    然后重启mysql服务。

    【讨论】:

    • 它已经设置好了。 drwxr-xr-x。 20 根根 4096 Oct 20 11:07 var drwxr-xr-x。 25 root root 4096 Sep 17 10:25 lib drwxr-xr-x。 65 mysql mysql 4096 12 月 10 日 14:06 mysql
    • 此错误现在开始显示。 141210 15:48:23 [错误] 无效(旧?)表或数据库名称 'lost+found' 141210 18:00:01 [错误] 无效(旧?)表或数据库名称 'lost+found' 141211 9:19 :30 [错误]无效(旧?)表或数据库名称“丢失+找到”141211 9:22:43 [错误]无效(旧?)表或数据库名称“丢失+找到”141211 9:30:40 [错误] 无效(旧?)表或数据库名称'lost+found'
    • 拜托,你能告诉我mysql文件夹里有什么吗?
    • 你用的是哪个mysql版本?
    • 请同时执行以下查询“SHOW DATABASES”并在此处打印结果。
    猜你喜欢
    • 2013-10-17
    • 1970-01-01
    • 2012-09-05
    • 2020-11-01
    • 2014-12-20
    • 1970-01-01
    • 2018-08-27
    • 2017-07-30
    • 1970-01-01
    相关资源
    最近更新 更多