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 ...
随机推荐
- 初识数据库、初识MySQL
一.为什么要用数据库 # 1.将文件和程序存在一台机器上是很不合理的. # 2.操作文件是一件很麻烦的事. 所以就出现了一个新的概念 —— 数据库 你可以理解为 数据库 是一个可以在一台机器上独立工作 ...
- bs4 CSS选择器
#https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html#find-all #beautifulSoup可以解析HTML ...
- 九. Python基础(9)--命名空间, 作用域
九. Python基础(9)--命名空间, 作用域 1 ● !a 与 not a 注意, C/C++可以用if !a表示if a == 0, 但是Python中只能用if not a来表示同样的意义. ...
- cv::ACCESS_MASK指定不明确的错误
今天想实现在opencv下使用模拟按键,结果出现cv::ACCESS_MASK指定不明确的错误,查找得到如下原因: 在winnt.h里面有一个cv的命名空间,同样定义了一个ACCESS_MASK,跟o ...
- 关于A中用到B, B中用到A的问题
//A.h #ifndef AH #define AH class B; class A { public: B* b; void setB(); ~A(); }; #endif //B.h #ifn ...
- day 29 socket 初级版
# 客户端介绍简单版# import socket# #1买手机# phone = socket.socket(socket.AF_INET,socket.SOCK_STREAM) #SOCK_STR ...
- VOOKI:一款免费的Web应用漏洞扫描工具
Vooki是一款免费且用户界面友好的Web应用漏扫工具,它可以轻松地为你扫描任何Web应用并查找漏洞.Vooki主要包括三个部分,Web应用扫描器,Rest API扫描器以及报告.Web应用扫描器V ...
- chromium ①
Chrome源码剖析 [序] && [一] 1. 它是如何利用多进程(其实也会有多线程一起)做并发的, 进程间通信,进程的开销:2. 做为一个后来者,它的扩展能力如何 3. 它的整体框 ...
- 多路复用 阻塞/非阻塞IO模型 网络IO两个阶段
1.网络IO的两个阶段 waitdata copydata send 先经历:copydata阶段 recv 先经历:waitdata阶段 再经历 copydata阶段 2.阻塞的IO模型 之前写的都 ...
- JAVA之字母与相对应数字转换
26个字母大小写加起来就是52个.对应的数字范围 System.out.println((char)97);//aSystem.out.println((char)122);//zSystem.out ...