Bonjour,
Je suis sur ubuntu 10.04, je voudrais déplacer ma base de données mais je n'arrive pas a lancer mysql, pour une raison que je ne comprends pas.
Lorsque que ma base est dans /var/lib/mysql, l'emplacement par défaut, pas de problème ca marche.
Je voudrais la mettre dans /mnt/Datas/DataBase, je modifie donc le fichier /etc/mysql/my.cnf:
datadir = /mnt/Datas/DataBase
Et lorsque je lancer mysql, j'ai ces erreurs:
Et dans /var/log/mysql/errr.log:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 mysqld --verbose 100828 14:22:18 [Warning] Can't create test file /mnt/Datas/DataBase/heracles.lower-test 100828 14:22:18 [Warning] Can't create test file /mnt/Datas/DataBase/heracles.lower-test
Ca semble à un problème de droits, mais j'ai tous vérifié tous est bon:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 100828 14:22:18 [Note] Plugin 'FEDERATED' is disabled. mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 100828 14:22:18 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 100828 14:22:18 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 ./ibdata1 InnoDB: File operation call: 'open'. InnoDB: Cannot continue operation.
La je sèche, si vous avez une idée. Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 [root@heracles:/]# ls -ld /mnt drwxr-xr-x 5 root root 4096 2010-08-28 14:04 /mnt [root@heracles:/]# ls -ld /mnt/Datas/ drwxrwxrwx 34 root root 4096 2010-08-28 14:02 /mnt/Datas/ [root@heracles:/]# ls -ld /mnt/Datas/DataBase drwx------ 9 mysql mysql 4096 2010-08-28 12:58 /mnt/Datas/DataBase [root@heracles:/]# ls -l /mnt/Datas/DataBase total 20512 -rw-r--r-- 1 mysql mysql 0 2010-08-17 22:27 debian-5.1.flag -rw-rw---- 1 mysql mysql 10485760 2010-08-28 13:41 ibdata1 -rw-rw---- 1 mysql mysql 5242880 2010-08-18 01:05 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 2010-08-17 22:27 ib_logfile1 drwx------ 2 mysql mysql 4096 2010-08-17 22:27 mysql -rw-rw---- 1 mysql mysql 6 2010-08-17 22:27 mysql_upgrade_info drwx------ 2 mysql mysql 4096 2010-08-18 01:02 servers drwx------ 2 mysql mysql 4096 2010-08-18 01:00 SiteOueb drwx------ 2 mysql mysql 4096 2010-08-18 01:02 sources drwx------ 2 mysql mysql 4096 2010-08-18 01:02 systeme drwx------ 2 mysql mysql 4096 2010-08-18 01:02 torrentflux drwx------ 2 mysql mysql 4096 2010-08-19 15:49 ulog
Partager