Can't start server: can't create PID file: Permission denied mysql

운영자 | 기사입력 2015/03/27 [02:41]
>
필자의 다른기사 보기 인쇄하기 메일로 보내기 글자 크게 글자 작게
Can't start server: can't create PID file: Permission denied mysql
 
운영자   기사입력  2015/03/27 [02:41]

mysqld_safe &

 

실행시 에러 

 

/home/mysql/bin/mysqld_safe &
[1] 4272
[root@localhost data]# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/localhost.localdomain.pid
150327 20:41:33 mysqld ended


[1]+ Done /home/mysql/bin/mysqld_safe

 

 

cat localhost.localdomain.err


150327 20:42:07 mysqld started
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150327 20:42:07 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150327 20:42:07 InnoDB: Started; log sequence number 0 43675
150327 20:42:07 [ERROR] /usr/local/mysql/bin/mysqld: Can't create/write to file '/usr/local/mysql/data/localhost.localdomain.pid' (Errcode: 13)
150327 20:42:07 [ERROR] Can't start server: can't create PID file: Permission denied
150327 20:42:07 mysqld ended

 

 

chown mysql:mysql /home/mysql -R

트위터 트위터 페이스북 페이스북 카카오톡 카카오톡
기사입력: 2015/03/27 [02:41]  최종편집: ⓒ iwav