centos에서 mysql을 yum으로 설치했습니다.
설치 후에 my.cnf 파일의 mysql 경로를 변경 했구요.
물론 설치후에
mysql_install_db && chown -R mysql:mysql /home/bumworld/program/mysql
이렇게 해줬습니다.
그리고 /etc/rc.d/init.d/mysqld start
위와같이 mysql을 시작했는데 실패를 해서 로그를 보니 아래와 같이 권한 문제가 있는듯 한데요.
분명히 디렉토리 권한을 제대로 주고 확인도 했습니다.
어떤 이유때문에 계속해서 발생하는지 모르겠습니다.
(여러번 지우고 새로 설치도 해봤습니다.)
도움부탁드려요..ㅠ.ㅠ
110612 09:37:54 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
110612 9:37:54 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
110612 9:37:54 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
110612 9:37:54 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
110612 9:37:55 InnoDB: Started; log sequence number 0 0
110612 9:37:55 [ERROR] bdb: /home/bumworld/program/mysql: Permission denied
110612 9:37:55 [ERROR] bdb: /home/bumworld/program/mysql/log.0000000001: Permission denied
110612 9:37:55 [ERROR] bdb: PANIC: Permission denied
110612 9:37:55 [ERROR] bdb: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
110612 9:37:55 [ERROR] bdb: fatal region error detected; run recovery
110612 9:37:55 [ERROR] bdb: /home/bumworld/program/mysql: Permission denied
110612 9:37:55 [ERROR] Can't start server : Bind on unix socket: Permission denied
110612 9:37:55 [ERROR] Do you already have another mysqld server running on socket: /home/bumworld/program/mysql/mysql.sock ?
110612 9:37:55 [ERROR] Aborting
110612 9:37:55 InnoDB: Starting shutdown...
110612 9:37:56 InnoDB: Shutdown completed; log sequence number 0 43655
110612 9:37:56 [Note] /usr/libexec/mysqld: Shutdown complete
110612 09:37:56 mysqld ended
-----------------------------------------------------------------
/etc/my.cnf
[mysqld]
datadir=/home/bumworld/program/mysql
socket=/home/bumworld/program/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
|