Mysql 在CentOS 7中,Mariadb启动失败

Mysql 在CentOS 7中,Mariadb启动失败,mysql,mariadb,Mysql,Mariadb,我正在CentOS CentOS Linux 7.0.1406版中使用Mariadb mysql版本15.1发行版5.5.40-Mariadb。我试图重新启动Mariadb systemctl start mariadb Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details. 当我选中:/var/log/mysql-error.log时,正

我正在CentOS CentOS Linux 7.0.1406版中使用Mariadb mysql版本15.1发行版5.5.40-Mariadb。我试图重新启动Mariadb

systemctl start mariadb

Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
当我选中:/var/log/mysql-error.log时,正如“systemctl status mariadb.service”所建议的那样

170523 10:20:10 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170523 10:20:10 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
170523 10:20:10 [Warning] Changed limits: max_open_files: 1024  max_connections: 214  table_cache: 400
170523 10:20:10 InnoDB: The InnoDB memory heap is disabled
170523 10:20:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170523 10:20:10 InnoDB: Compressed tables use zlib 1.2.7
170523 10:20:10 InnoDB: Using Linux native AIO
170523 10:20:11 InnoDB: Initializing buffer pool, size = 15.6G
170523 10:20:11 InnoDB: Completed initialization of buffer pool
170523 10:20:11 InnoDB: highest supported file format is Barracuda.
170523 10:20:12  InnoDB: Waiting for the background threads to start
170523 10:20:13 Percona XtraDB (http://www.percona.com) 5.5.40-MariaDB-36.1 started; log sequence number 5336723441509
170523 10:20:13 [Note] Plugin 'FEEDBACK' is disabled.
170523 10:20:13 [ERROR] /usr/libexec/mysqld: unknown variable 'extra-lsndir=/var/tmp'
170523 10:20:13 [ERROR] Aborting

170523 10:20:13  InnoDB: Starting shutdown...
170523 10:20:15  InnoDB: Shutdown completed; log sequence number 5336723441509
170523 10:20:15 [Note] /usr/libexec/mysqld: Shutdown complete

170523 10:20:15 mysqld_safe mysqld from pid file /var/lib/mysql/master.compare-prices.repchecker.jp.pid ended
170523 10:21:10 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170523 10:21:10 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
170523 10:21:10 [Warning] Changed limits: max_open_files: 1024  max_connections: 214  table_cache: 400
170523 10:21:10 InnoDB: The InnoDB memory heap is disabled
170523 10:21:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170523 10:21:10 InnoDB: Compressed tables use zlib 1.2.7
170523 10:21:10 InnoDB: Using Linux native AIO
170523 10:21:10 InnoDB: Initializing buffer pool, size = 15.6G
170523 10:21:11 InnoDB: Completed initialization of buffer pool
170523 10:21:11 InnoDB: highest supported file format is Barracuda.
170523 10:21:12  InnoDB: Waiting for the background threads to start
170523 10:21:13 Percona XtraDB (http://www.percona.com) 5.5.40-MariaDB-36.1 started; log sequence number 5336723441509
170523 10:21:13 [Note] Plugin 'FEEDBACK' is disabled.
170523 10:21:13 [ERROR] /usr/libexec/mysqld: unknown variable 'extra-lsndir=/var/tmp'
170523 10:21:13 [ERROR] Aborting
.
.
.
.
PS:/var/lib/mysql目录归mysql所有还有一个目录mysql~为空

drwxr-xr-x 8 mysql 4096年5月23日11:05 mysql

drwxr-xr-x。3 mysql 2015年2月4日26日mysql~


请提供一些建议。如何重新启动我的mariadb,我在mariadb下有重要的数据库。

来自最后一行错误

[错误]/usr/libexec/mysqld:未知变量'extra lsndir=/var/tmp'

很明显,该变量未知,因此请尝试从/etc/my.cnf对其进行注释,然后重试

# Point the following paths to different dedicated disks
tmpdir         = /var/tmp
extra-lsndir = /var/tmp    ------> Comment this line 
target-dir=/var/tmp       

我希望这会有帮助

从日志上看,它似乎是150204,这是旧的日期。请提供最新日志。使用tail命令来显示它。@Avi,我对它进行了编辑。请检查新日志。检查您是否还没有运行pgrep mysql的mysql进程。@Louis Loudog Trottier否,没有运行mysql进程。