关于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’ ;

 

终于搞定。

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值