前台开启:
[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