![]() |
|
![]() |
||||||
|
Выше речь шла о папке /var/lib/mysql... все же для нее, наверное? в папке /var/db нет папки mysql
Еще один вопрос чайника - а пользователя/группу как сменить всем файлам в папке скопом?
CentOS-i386 с ISPmanager и пакетом предустановленного ПО в который и БД входили. Точно определение шаблона не вспомню, в мае 2012 VDS приобретался.
Сейчас в VDSmanager указан образ диска centos-6-i386-ispmanager
pepper писал(а):С мая 2012 начались проблемы с базами данных, но вы не замечали этих проблем и видите их только по журналам (логам)?
Спасибо за информацию, проверим. Вероятно с мая 2012 года этот шаблон уже исправили, т.к. от пользователей о подобных проблемах мы не получали массовых жалоб.
120519 04:13:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120519 4:13:57 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120519 4:13:57 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120519 4:13:57 InnoDB: Initializing buffer pool, size = 8.0M
120519 4:13:57 InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 0 37356
120519 4:13:57 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 44233
120519 4:13:57 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
120519 4:13:58 InnoDB: Started; log sequence number 0 44233
120519 4:13:58 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120519 4:13:58 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
120519 04:13:58 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
120519 4:13:57 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
[ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
[root@ххх mysql]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
Сейчас этот форум просматривают: Google [Bot] и гости: 1