mysql-The-server-quit-without-updating-PID-file
mysql 编译后执行 /etc/init.d/mysqld start 启动失败 提示:"The server quit without updating PID file"
排查思路: 寻找配置文件 --》寻找错误日志 --》 根据日志排查错误
grep -i log /etc/my.cnf
log-error=/var/log/mariadb/mariadb.log
log-error=/var/log/mysqld.log
找到日志目录:/var/log/mariadb/mariadb.log
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
--31T01::.095643Z [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
--31T01::.095673Z [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.) starting as process ...
--31T01::.101854Z [Note] InnoDB: PUNCH HOLE support available
--31T01::.101889Z [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
--31T01::.101894Z [Note] InnoDB: Uses event mutexes
--31T01::.101898Z [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
--31T01::.101901Z [Note] InnoDB: Compressed tables use zlib 1.2.
--31T01::.101905Z [Note] InnoDB: Using Linux native AIO
--31T01::.102226Z [Note] InnoDB: Number of pools:
--31T01::.102358Z [Note] InnoDB: Not using CPU crc32 instructions
--31T01::.114227Z [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = , chunk size = 128M
--31T01::.125607Z [Note] InnoDB: Completed initialization of buffer pool
--31T01::.130780Z [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
--31T01::.143294Z [Note] InnoDB: Highest supported file format is Barracuda.
--31T01::.157636Z [Note] InnoDB: Creating shared tablespace for temporary tables
--31T01::.157698Z [Note] InnoDB: Setting file './ibtmp1' size to MB. Physically writing the file full; Please wait ...
--31T01::.373856Z [Note] InnoDB: File './ibtmp1' size is now MB.
--31T01::.375220Z [Note] InnoDB: redo rollback segment(s) found. redo rollback segment(s) are active.
--31T01::.375236Z [Note] InnoDB: non-redo rollback segment(s) are active.
--31T01::.377128Z [Note] InnoDB: 5.7. started; log sequence number
--31T01::.377614Z [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool
--31T01::.377957Z [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
--31T01::.378127Z [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
--31T01::.378944Z [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
--31T01::.379048Z [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
--31T01::.379266Z [Note] InnoDB: Buffer pool(s) load completed at ::
--31T01::.379458Z [Note] Server hostname (bind-address): '*'; port:
--31T01::.379507Z [Note] IPv6 is available.
--31T01::.379518Z [Note] - '::' resolves to '::';
--31T01::.379544Z [Note] Server socket created on IP: '::'.
--31T01::.387876Z [Warning] Failed to open optimizer cost constant tables --31T01::.388087Z [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
--31T01::.388146Z [ERROR] Aborting --31T01::.388181Z [Note] Binlog end
--31T01::.388229Z [Note] Shutting down plugin 'ngram'
--31T01::.388237Z [Note] Shutting down plugin 'BLACKHOLE'
--31T01::.388241Z [Note] Shutting down plugin 'partition'
--31T01::.388243Z [Note] Shutting down plugin 'ARCHIVE'
--31T01::.388246Z [Note] Shutting down plugin 'MyISAM'
--31T01::.388257Z [Note] Shutting down plugin 'CSV'
--31T01::.388261Z [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
--31T01::.388264Z [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
--31T01::.388267Z [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
--31T01::.388269Z [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
--31T01::.388282Z [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
--31T01::.388284Z [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
--31T01::.388286Z [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
--31T01::.388289Z [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
--31T01::.388291Z [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
--31T01::.388293Z [Note] Shutting down plugin 'INNODB_SYS_TABLES'
--31T01::.388295Z [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
--31T01::.388298Z [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
--31T01::.388300Z [Note] Shutting down plugin 'INNODB_FT_CONFIG'
--31T01::.388302Z [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
--31T01::.388304Z [Note] Shutting down plugin 'INNODB_FT_DELETED'
--31T01::.388307Z [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
--31T01::.388309Z [Note] Shutting down plugin 'INNODB_METRICS'
--31T01::.388311Z [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
--31T01::.388313Z [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
--31T01::.388316Z [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
--31T01::.388318Z [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
--31T01::.388320Z [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
--31T01::.388322Z [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
--31T01::.388325Z [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
--31T01::.388327Z [Note] Shutting down plugin 'INNODB_CMPMEM'
--31T01::.388329Z [Note] Shutting down plugin 'INNODB_CMP_RESET'
--31T01::.388332Z [Note] Shutting down plugin 'INNODB_CMP'
--31T01::.388334Z [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
--31T01::.388336Z [Note] Shutting down plugin 'INNODB_LOCKS'
--31T01::.388338Z [Note] Shutting down plugin 'INNODB_TRX'
--31T01::.388341Z [Note] Shutting down plugin 'InnoDB'
--31T01::.388441Z [Note] InnoDB: FTS optimize thread exiting.
--31T01::.388685Z [Note] InnoDB: Starting shutdown...
--31T01::.489041Z [Note] InnoDB: Dumping buffer pool(s) to /usr/local/mysql/data/ib_buffer_pool
根据日志提示判断问题所在:
重新初始化db:进入安装目录 /usr/local/mysql/
./bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
提示找不到mysql 命令可先链接
ln -s /usr/local/mysql/bin/mysql /usr/bin/
/usr/local/mysql/
mysql-The-server-quit-without-updating-PID-file的更多相关文章
- Starting MySQL.The server quit without updating PID file (xxxx.pid).[FAILED]
mysql无法正常启动,查看日志报如下异常 --07T01::.929615Z [ERROR] Fatal error: Please read "Security" sectio ...
- mysql启动报错:Starting MySQL...The server quit without updating PID file
在mysql的data目录下误删除了mysql-bin.000001,mysql-bin.000002等文件,但是没有删除mysql-bin.index文件,此时启动mysql就会报错: Starti ...
- Starting MySQL...The server quit without updating PID file
修改mysql的配置文件(my.cnf)后,再启动mysqld的时候报错: # service mysqld start Starting MySQL...The server quit withou ...
- Mysql启动失败 MYSQL:The server quit without updating PID file
MySQL5.6启动时出错 提示MYSQL:The server quit without updating PID file 首先执行 /bin/mysqld_safe --user=mysql & ...
- Starting MySQL....The server quit without updating PID file[失败]/lib/mysql/ip12189.pid). 错误一例
[root@ip12189 etc]# service mysqld startStarting MySQL....The server quit without updating PID file[ ...
- mysql报错“Starting MySQL...The server quit without updating PID file”处理
http://blog.csdn.net/lzq123_1/article/details/51354179 注意:要将/usr/bin/mysql_install_db替换成 /usr/bin/my ...
- Starting MySQL....The server quit without updating PID file错误解决办法
出现错误:Starting MySQL....The server quit without updating PID file 检查错误文件: /var/lib/mysql/xxxx.err,根据其 ...
- mysqld_safe error: log-error set to '/data/log/mysqld.log', however file don't exists. Create writable for user 'mysql'.The server quit without updating PID file (/data/mysql/mysqld.pid)
[oot@cent65 bin]# service mysqld startStarting MySQL.2019-10-28T15:56:47.786960Z mysqld_safe error: ...
- Starting MySQL...The server quit without updating PID file [失败]local/mysql/data/localhost.localdomain.pid报错
在添加命令自动补全的时候mysql启动失败 这是原配 # For advice on how to change settings please see # http://dev.mysql.com/ ...
- mysql Starting MySQL..The server quit without updating PID file
可能的原因和解决办法 1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限解决方法 :给予权限,执行 chown -R mysql:mysql /var/data ...
随机推荐
- 图解前序遍历线索化二叉树,前序线索二叉树遍历,C\C++描述
body, table{font-family: 微软雅黑; font-size: 13.5pt} table{border-collapse: collapse; border: solid gra ...
- SpringMVC防止表单重复提交
最近公司上线,有同志进行攻击,表当防重复提交也没有弄,交给我 ,本人以前也没弄过,知道大概的思路,但是那样实在是太麻烦了,虽然后面试过使用过滤器加拦截器实现,不过还是有点小麻烦. 后来在网上搜索后发现 ...
- BCM5396的SPI理解
参考文档链接:https://pan.baidu.com/s/1kuXJmULwtjOW1TeOuTRPQQ *时钟极性和相位 BCM538X / BCM5396用于根据以下标准发送/接收SPI数据: ...
- [PyImageSearch] Ubuntu16.04下针对OCR安装Tesseract
今天的博文是安装和使用光学字符识别(OCR)的Tesseract库的两部分系列的第一部分. 本系列的第一部分将着重于在您的机器上安装和配置Tesseract,然后使用tesseract命令将OCR应用 ...
- spring4全注解web项目demo
记得没接触框架的时候,写demo测试时真的很爽,新建web项目,然后随便写写servlet随便调试 框架越来越多,配置记不得了,整合容易出问题,集成新东西越来越少了,不敢动了. 这是个spring4的 ...
- 《十天学会单片机和C语言编程》
<十天学会单片机和C语言编程> 大家注意了这个文件只有最新版迅雷可以下载,下面的lesson几就是第几课.点击右键使用迅雷下载. ed2k://|file|[十天学会单片机和C语言编程]. ...
- rnn-手写数字识别-网络结构-shape
手写数字识别经典案例,目标是: 1. 掌握tf编写RNN的方法 2. 剖析RNN网络结构 tensorflow编程 #coding:utf-8 import tensorflow as tf from ...
- transform带来的坑
1.transform会使子元素fixed定位和absolute定位失效. 2.父元素设置了border-radius和overflow:hidden, 但是子元素有transform属性,父元素设置 ...
- Python 验证进程之间是空间隔离的
from multiprocessing import Process num = 100 def f1(): global num num = 3 print("子进程中的num" ...
- puppet替换文件中的string
文件 <VirtualHost :80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.) https://%{SERVE ...