O MySQL não está iniciando porque “mysqld: Não é possível encontrar o arquivo: './mysql/plugin.frm' (errno: 13)”

3

Estou configurando um novo servidor LAMP com o Ubuntu Server 13.10 e o MySQL 5.5 e estava no meio da migração dos bancos de dados mysql para o novo servidor quando percebi que o servidor mysql não está em execução. Tudo estava bem da última vez que chequei há alguns dias. Eu recebo isso quando tento iniciar o servidor a partir da linha de comando:

@Ubuntu:~$ sudo mysqld start
[sudo] password for XXX:
140402 10:32:07 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140402 10:32:07 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140402 10:32:07 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
140402 10:32:07 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
140402 10:32:07 InnoDB: The InnoDB memory heap is disabled
140402 10:32:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140402 10:32:07 InnoDB: Compressed tables use zlib 1.2.8
140402 10:32:07 InnoDB: Using Linux native AIO
140402 10:32:07 InnoDB: Initializing buffer pool, size = 128.0M
140402 10:32:07 InnoDB: Completed initialization of buffer pool
140402 10:32:07 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: 'create'.
InnoDB: Cannot continue operation.

Além disso, quando eu tento isso:

XXX@Ubuntu-SHS:~$ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]

Nada nos registros de erros. Atualização: Percebeu que todas as pastas & amp; os arquivos em /var/lib/mysql foram alterados para o messagebus para owner / group. isto está certo? Minha outra configuração mostra tudo como mysql mysql .

    
por AlanK 02.04.2014 / 16:50

1 resposta

0

feche o selinux

setenforce 0

ou

vi /etc/selinux/config 
SELINUX=disabled

reiniciar

    
por user704879 27.06.2017 / 09:52