MySql/PHP-一般错误:3161存储引擎MyISAM已禁用
所以,我有一个设置,使用digital ocean提供的远程数据库服务器和托管PHP应用程序的服务器。两者都在同一个网络上,所以连接看起来很好。我在尝试设置数据库时遇到以下错误MySql/PHP-一般错误:3161存储引擎MyISAM已禁用,php,mysql,ubuntu,digital-ocean,Php,Mysql,Ubuntu,Digital Ocean,所以,我有一个设置,使用digital ocean提供的远程数据库服务器和托管PHP应用程序的服务器。两者都在同一个网络上,所以连接看起来很好。我在尝试设置数据库时遇到以下错误 General error: 3161 Storage engine MyISAM is disabled (Table creation is disallowed). (SQL: create table `flrm_posts` (`id` int unsigned not null auto_increment
General error: 3161 Storage engine MyISAM is disabled (Table creation is disallowed). (SQL: create table `flrm_posts` (`id` int unsigned not null auto_increment primary key, `discussion_id` int unsigned not null, `number` int unsigned null, `time` datetime not null, `user_id` int unsigned null, `type` varchar(100) null, `content` text null, `edit_time` datetime null, `edit_user_id` int unsigned null, `hide_time` datetime null, `hide_user_id` int unsigned null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = MyISAM)
我知道它的状态是engine=MyISAM
,因此我假设它在发出请求时尝试使用该引擎。我还运行了SHOW引擎代码>在我的服务器上查询。它返回了以下信息:
+--------------------+---------+------------------------------------------------ ------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+------------------------------------------------ ------------+--------------+------+------------+
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and f oreign keys | YES | YES | YES |
| MEMORY | YES | Hash based, stored in memory, useful for tempor ary tables | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
+--------------------+---------+------------------------------------------------ ------------+--------------+------+------------+
我如何解决这个问题?我知道我可以将引擎设置为使用MyISAM,但我看到一些文章说这会有性能问题
任何帮助和反馈都将不胜感激可能值得一读。我已经看了一眼,仍然没有解决我的问题。我还检查了处理设置引擎的php文件,它有一行'code'engine'=>'InnoDB','因此似乎设置正确。此外,数据库似乎也在使用InnoDB,请更改您的应用程序以请求并使用InnoDB
。不要与之抗争;MyISAM要走了。@RickJames它已经在尝试使用itHmmm:flrm\u posts。。。引擎=MyISAM