Pages : 1
#1 Le 28/08/2010, à 14:24
- bloodaxe
Impossible de lancer mysql
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:
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
Et dans /var/log/mysql/errr.log:
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.
Ca semble à un problème de droits, mais j'ai tous vérifié tous est bon:
[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
La je sèche, si vous avez une idée. Merci
Hors ligne
#2 Le 29/08/2010, à 16:26
- sheebang
Re : Impossible de lancer mysql
Salut,
Alors malheureusement c'est pas aussi simple de déplacer ses bases. Il peut y avoir plusieurs problèmes (InnoDB, apparmor etc..) En l'occurrence apparmor qui sert a controler certaines applications. Mysql est surveillé par apparmor il faudrait regarder de ce coté.
Debian-#!
Hors ligne
Pages : 1