Mariadb初始化脚本

时间:2011-02-09 17:13:26

标签: init mariadb

我在debian上安装了MAriadb表单源代码。 我使用了init脚本mysql.server。

运行时我有错误:
Starting MySQL
.Manager of pid-file quit without updating file. ... failed!

在任何地方都没有mysqld.pid,没有执行mysqld。

.err文件: 110209 17:04:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110209 17:04:55 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
110209 17:04:55 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to
create it.
110209 17:04:55 [Note] PrimeBase XT (PBXT) Engine 1.0.11-7 Pre-GA loaded...
110209 17:04:55 [Note] Paul McCullagh, PrimeBase Technologies GmbH,
http://www.primebase.org
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3.4
110209 17:04:55 InnoDB: highest supported file format is Barracuda.
110209 17:04:55 Percona XtraDB (http://www.percona.com) 1.0.13-11.6 started; log sequence number 45356
110209 17:04:55 [ERROR] Aborting

110209 17:04:55 InnoDB: Starting shutdown...
110209 17:04:55 InnoDB: Shutdown completed; log sequence number 45356
110209 17:04:55 [Note] PrimeBase XT Engine shutdown...
110209 17:04:55 [Note]
110209 17:04:55 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

有什么想法吗?

由于

2 个答案:

答案 0 :(得分:0)

实际上有一个debian包通常会起作用; - )

答案 1 :(得分:0)

这个规范意味着您刚刚升级到新版本但表尚未升级。使用--skip-networking和--skip-grant-tables启动mysql。然后运行mysql_upgrade。现在停止并重新启动mysql服务器,而不使用这些额外的选项。