美文网首页我爱编程
ERROR 1286 (42000): Unknown stor

ERROR 1286 (42000): Unknown stor

作者: 摩羯座的鱼 | 来源:发表于2018-04-06 00:19 被阅读0次

    mysql> SHOW ENGINES;
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | Engine | Support | Comment | Transactions | XA | Savepoints |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | MyISAM | YES | MyISAM storage engine | NO | NO | NO |
    | CSV | YES | CSV storage engine | NO | NO | NO |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
    | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
    | InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
    | ARCHIVE | YES | Archive storage engine | NO | NO | NO |
    | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
    | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    9 rows in set (0.00 sec)

    二、解决方法
    1.打开mysql根目录下“my.cnf”文件,新增一行,插入“federated”,如下:

    • ...
    • federated
      2.重启mysql服务
      3.再重新键入“show ENGINES;”命令,结果显示YES
      1
      FEDERATED YES Federated MySQL storage engine NO NO NO
      4.结果再重新执行创建问题现象脚本,运行Ok!

    相关文章

      网友评论

        本文标题:ERROR 1286 (42000): Unknown stor

        本文链接:https://www.haomeiwen.com/subject/kmrkhftx.html