Starting MySQL. ERROR! The server quit without updating PID file

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介: <p><br></p> <p>前台开启:</p> <p><span style="color:#3366ff">[root@t1 x]# <strong>service mysqld start</strong></span></p> <p>Starting MySQL. ERROR! The server quit without updating PID file (/mydat


前台开启:

[root@t1 x]# service mysqld start

Starting MySQL. ERROR! The server quit without updating PID file (/mydata/data/t1.pid).


后台告警日志显示:

err文件表示:




160316 02:33:39 mysqld_safe Starting mysqld daemon with databases from /mydata/data
2016-03-16 02:33:40 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
^G/usr/local/mysql/bin/mysqld: File './master-bin.index' not found (Errcode: 13 - Permission denied)
2016-03-16 02:33:40 12415 [ERROR] Aborting


2016-03-16 02:33:40 12415 [Note] Binlog end
2016-03-16 02:33:40 12415 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete


160316 02:33:40 mysqld_safe mysqld from pid file /mydata/data/t1.pid ended
160316 02:34:05 mysqld_safe Starting mysqld daemon with databases from /mydata/data
2016-03-16 02:34:05 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
^G/usr/local/mysql/bin/mysqld: File './master-bin.index' not found (Errcode: 13 - Permission denied)
2016-03-16 02:34:05 12850 [ERROR] Aborting


2016-03-16 02:34:05 12850 [Note] Binlog end
2016-03-16 02:34:05 12850 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete


160316 02:34:05 mysqld_safe mysqld from pid file /mydata/data/t1.pid ended
160316 02:38:23 mysqld_safe Starting mysqld daemon with databases from /mydata/data
2016-03-16 02:38:23 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).


解决办法 :


[root@t1 x]# ll /mydata/*
total 569380
-rw-r--r-- 1 root  root 482344960 Mar 16 02:32 ibdata1
-rw-r--r-- 1 root  root  50331648 Mar 16 02:32 ib_logfile0
-rw-r--r-- 1 root  root  50331648 Mar 16 02:32 ib_logfile1
drwxr-xr-x 2 root  root      4096 Mar 16 02:32 jishibang
drwxr-xr-x 2 root  root      4096 Mar 16 02:32 mysql
drwxr-xr-x 2 root  root      4096 Mar 16 02:32 performance_schema
-rw-r----- 1 mysql root      1220 Mar 16 02:34 t1.err
drwxr-xr-x 2 root  root      4096 Mar 16 02:32 test
-rw-r--r-- 1 root  root        23 Mar 16 02:32 xtrabackup_binlog_pos_innodb
-rw-r--r-- 1 root  root       662 Mar 16 02:32 xtrabackup_info

[root@t1 x]# chown -R mysql.mysql /mydata/data/

[root@t1 x]# service mysqld start
Starting MySQL. SUCCESS! 


[root@t1 x]# ll /mydata/*
total 569380


参考:

http://nameyjj.blog.51cto.com/788669/632302

http://blog.csdn.net/aidenliu/article/details/6586775

http://blog.csdn.net/u010098331/article/details/50752640

http://blog.csdn.net/u010098331/article/details/50849643

http://blog.csdn.net/u010098331/article/details/50752667

http://blog.csdn.net/u010098331/article/details/50752645



相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
5月前
|
SQL 关系型数据库 MySQL
使用Flink CDC从SQL Server同步数据到MySQL
使用Flink CDC从SQL Server同步数据到MySQL
174 1
|
1月前
|
关系型数据库 MySQL 数据库
用navicat连接数据库报错:1130-host ... is not allowed to connect to this MySql server如何处理
用navicat连接数据库报错:1130-host ... is not allowed to connect to this MySql server如何处理
27 0
|
1月前
|
SQL 关系型数据库 MySQL
SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', sys...
SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', sys...
|
7天前
|
安全 关系型数据库 虚拟化
WIndows Server 远程桌面服务—RDS
WIndows Server 远程桌面服务—RDS
|
27天前
|
关系型数据库 MySQL Linux
Linux联网安装MySQL Server
Linux联网安装MySQL Server
50 0
|
1月前
|
关系型数据库 MySQL 数据库
navicat本地连接mysql出现1251--Client does not support authentication protocol requested by server的解决方法
navicat本地连接mysql出现1251--Client does not support authentication protocol requested by server的解决方法
|
3月前
|
关系型数据库 MySQL 数据库
Host 'XXX' is not allowed to connect to this MySQL server 解决方案
Host 'XXX' is not allowed to connect to this MySQL server 解决方案
|
4月前
|
关系型数据库 MySQL 数据库
Client does not support authentication protocol requested by server; consider upgrading MySQL client
Client does not support authentication protocol requested by server; consider upgrading MySQL client
|
5月前
|
关系型数据库 MySQL 数据库
远程连接mysql报错:1130 - Host XXX is not allowed to connect to this MySQL server
远程连接mysql报错:1130 - Host XXX is not allowed to connect to this MySQL server
98 0
|
5月前
|
关系型数据库 MySQL 数据安全/隐私保护
(解决)Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
(解决)Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
39 0

推荐镜像

更多