Приветствую всех форумчан.
Проблема стара как мир: нужно переместить базы mysql в другую папку. Всегда это было без проблем, но в новой Ubuntu 14.04 не получается. Вроде действовал как всегда:
1. остановил mysql
2. скопировал из /var/lib/mysql в свою папку. Папка на диске ext4, т.к. знаю что в ntfs проблема с правами.
3. apparmor в этой версии по умолчанию не установлен, так что отсюда проблем нет.
4. правлю файл /etc/mysql/my.cnf изменяю datadir на свой каталог.
5. запускаю mysql и... получаю "start: Job failed to start"
поиграл с правами папки - тоже самое. Может в 14.04 какие особенности?
Кто-нибудь сталкивался?
P.S. Уточнение: я использую LinuxMint 17, но этот дистрибутив на основе Ubuntu 14.04. На старом LinuxMint было без проблем.
Вот лог:
141025 20:56:30 [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.
141025 20:56:30 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:30 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:30 InnoDB: The InnoDB memory heap is disabled
141025 20:56:30 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:30 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:30 InnoDB: Using Linux native AIO
141025 20:56:30 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:30 InnoDB: Completed initialization of buffer pool
141025 20:56:30 InnoDB: highest supported file format is Barracuda.
141025 20:56:30 InnoDB: Waiting for the background threads to start
141025 20:56:31 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:31 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:31 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:31 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:31 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
141025 20:56:32 [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.
141025 20:56:32 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:32 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:32 InnoDB: The InnoDB memory heap is disabled
141025 20:56:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:32 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:32 InnoDB: Using Linux native AIO
141025 20:56:32 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:32 InnoDB: Completed initialization of buffer pool
141025 20:56:32 InnoDB: highest supported file format is Barracuda.
141025 20:56:32 InnoDB: Waiting for the background threads to start
141025 20:56:33 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:33 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:33 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:33 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:33 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
141025 20:56:34 [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.
141025 20:56:34 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:34 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:34 InnoDB: The InnoDB memory heap is disabled
141025 20:56:34 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:34 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:34 InnoDB: Using Linux native AIO
141025 20:56:34 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:34 InnoDB: Completed initialization of buffer pool
141025 20:56:34 InnoDB: highest supported file format is Barracuda.
141025 20:56:35 InnoDB: Waiting for the background threads to start
141025 20:56:36 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:36 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:36 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:36 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:36 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
141025 20:56:49 [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.
141025 20:56:49 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:49 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:49 InnoDB: The InnoDB memory heap is disabled
141025 20:56:49 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:49 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:49 InnoDB: Using Linux native AIO
141025 20:56:49 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:49 InnoDB: Completed initialization of buffer pool
141025 20:56:49 InnoDB: highest supported file format is Barracuda.
141025 20:56:50 InnoDB: Waiting for the background threads to start
141025 20:56:51 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:51 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:51 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:51 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:51 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
141025 20:56:51 [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.
141025 20:56:51 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:51 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:51 InnoDB: The InnoDB memory heap is disabled
141025 20:56:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:51 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:51 InnoDB: Using Linux native AIO
141025 20:56:51 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:52 InnoDB: Completed initialization of buffer pool
141025 20:56:52 InnoDB: highest supported file format is Barracuda.
141025 20:56:52 InnoDB: Waiting for the background threads to start
141025 20:56:53 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:53 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:53 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:53 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:53 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only
141025 20:56:54 [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.
141025 20:56:54 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'plugin' is read only
141025 20:56:54 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
141025 20:56:54 InnoDB: The InnoDB memory heap is disabled
141025 20:56:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141025 20:56:54 InnoDB: Compressed tables use zlib 1.2.8
141025 20:56:54 InnoDB: Using Linux native AIO
141025 20:56:54 InnoDB: Initializing buffer pool, size = 128.0M
141025 20:56:54 InnoDB: Completed initialization of buffer pool
141025 20:56:54 InnoDB: highest supported file format is Barracuda.
141025 20:56:54 InnoDB: Waiting for the background threads to start
141025 20:56:55 InnoDB: 5.5.40 started; log sequence number 1595695
141025 20:56:55 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
141025 20:56:55 [Note] - '127.0.0.1' resolves to '127.0.0.1';
141025 20:56:55 [Note] Server socket created on IP: '127.0.0.1'.
141025 20:56:55 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'host' is read only