Hallo,
wollte eine MysqlDB von einem Rechner auf den anderen umziehen.
Beide Server sind identisch in Hardware, OS und Konfiguration.
Auf server 1 die DB beendet und alles von /var/lib/mysql auf den 2. Server an selbige stelle kopiert. Rechte angepasst und versucht zu starten:
Code:
[root@webdb2 mysql]# cat /var/log/mysqld.log
081015 11:07:56 mysqld started
081015 11:07:56 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /var/lib/mysql/ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
081015 11:07:56 mysqld ended
das sagt mir als ahnungslosen das die rechte auf die innodb files nicht stimmen, ls sagt aber was anderes:
Code:
[root@webdb2 mysql]# ll
insgesamt 2265316
-rw-r----- 1 mysql mysql 2097152000 15. Okt 10:59 ibdata1
-rw-r----- 1 mysql mysql 10485760 15. Okt 10:59 ibdata2
-rw-r----- 1 mysql mysql 104857600 15. Okt 10:59 ib_logfile0
-rw-r----- 1 mysql mysql 104857600 15. Okt 10:59 ib_logfile1
drwx------ 2 mysql mysql 4096 15. Okt 10:59 mysql
drwx------ 2 mysql mysql 4096 15. Okt 10:59 test
drwx------ 3 mysql mysql 4096 15. Okt 11:00 WEB
-rw-r----- 1 mysql mysql 354 15. Okt 10:59 webdb1-slow.log
oder hab ich was übersehen?
tom
Lesezeichen