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 ...
随机推荐
- OO第四次课程总结分析
OO第四次课程总结分析 测试与正确性论证的效果差异及优缺点 测试,即使用测试样例来验证我们的程序是否能完成相应功能的过程.测试数据的产生基于前置条件和后置条件,通过执行测试数据检查方法输出是否满足需求 ...
- [Leetcode 739]*还有几天会升温 Daily Temperatures
[题目] Given a list of daily temperatures T, return a list such that, for each day in the input, tells ...
- 接触到的加密算法MD5、SHA1(转)
参考链接: https://blog.csdn.net/u012611878/article/details/54000607 https://blog.csdn.net/worm0527/artic ...
- day 34 进程线程排序 抢票 初级生产者消费者
# 实现的内容 模拟购票 20个人买,就有一张购票查,的时候大家都看到,但是购买只能一人购买成功#利用互斥锁# from multiprocessing import Process,Lock# im ...
- 在 Andriod/IOS 程序中使用自定义字体
很早就遇到这个问题,QDAC作者也在这里给出了方案.
- 匿名函数lambda,过滤函数filter,映射类型map
匿名函数lambda, 作用是不用定义函数,用完之后会自动被删掉,在使用执行脚本的时候,使用lambda就可以省下定义函数的过程,简化代码的可读性. 格式是 例子g=lambda x,y:x+y g( ...
- Python 内置函数2
print(list("胡辣汤")) lst = ["河南话", "四川话", "东北", "山东" ...
- Python 正则 —— 捕获与分组
\n:表示第 n 个捕获: >> s = "<html><h1>what the fuck!</h1></html>" ...
- Python学习笔记第二十四周(JavaScript补充)
目录: 一.JS补充 1.函数类型 2.string对象 3.instanceof 4.Array 数组对象 5.Date对象 6.RegExp 正则表达式 7.Math对象 二.BOM补充 1.wi ...
- 餐巾计划问题 zwk费用流解法
«问题描述:一个餐厅在相继的N 天里,每天需用的餐巾数不尽相同.假设第i天需要ri块餐巾(i=1,2,…,N).餐厅可以购买新的餐巾,每块餐巾的费用为p分:或者把旧餐巾送到快洗部,洗一块需m天,其费用 ...