`

关于mysql的Unknown table engine 'InnoDB'

 
阅读更多

今天,在用war包方式安装jira5.0时,报出Unknown table engine 'InnoDB'的错误,网上查了不少资料,解决方法都是说开启mysql的innodb,下面是官方说明:

 

 

  1. Check to see whether you have InnoDB support enabled:
    mysql> show variables like 'have_innodb';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | have_innodb   | YES   |
    +---------------+-------+
    1 row in set (0.00 sec)
  2. If the value above is DISABLED, then you would need to enable InnoDB.
  3. Open up MySQL's configuration file. On various platforms, the configuration file may differ in file name and location:
    • Windows: $MYSQL_INSTALL_DIRECTORY/my.ini
    • Linux/Unix: /etc/mysql/my.cnf
  4. If the parameter skip-innodb is uncommented/exists, then just comment it out:
    # skip-innodb
  5. Shutdown MySQL server, delete/rename the MySQL logs to refresh the entire server's logging, and restart MySQL server:
    • Linux:
      ~$: /etc/init.d/mysql stop
      ~$: rm /var/lib/mysql/ib_logfile*
      ~$: /etc/init.d/mysql start
    • Windows:
      Go to $MYSQL_INSTALL_DIRECTORY/data and either delete/move the log files with the prefix ib_logfile.

 

按上面方法,但是发现我的my.cnf文件当中,根本就没有关于skip-innodb的这一行,也没有类似于ib_logfile的日志文件,无法解决,纠结。。

 

 

终于,在努力折腾了几个小时之后,找到了正解。

 

原来是新版的mysql不带innodb引擎。

在configure的时候要加上--with-plugins=innobase这个参数

 

验证是否装好innodb

安装好后登录mysql

执行

show plugin

如果有Innodb这条信息就表示安装好了。

 

如果没有安装成功或者是在已经安装好mysql的情况下,只要执行下面语句再安装一次就OK。

install plugin innodb soname ‘ha_innodb.so’ ;

 

终于搞定。

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics