可以通过以下方式更改特定表的存储引擎类型:
ALTER TABLE table_name ENGINE = InnoDB;
这适用于MariaDB/MySQL安装附带的所有表,但db、host和user表除外。它引发一个(泛型)错误:
MariaDB [mysql]> ALTER TABLE db ENGINE = InnoDB;
ERROR 1025 (HY000): Error on rename of './mysql/#sql-149_24b' to './mysql/db' (errno: 168 "Unknown (generic) e
我正在尝试创建一个innodb数据库:
mysql> CREATE DATABASE imdb () ENGINE=InnoDB;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '()
ENGINE=InnoDB' at line 1
在中,上述命令有什么问题
我正在尝试通过phpmyadmin导入函数从sql文件恢复数据库。我在尝试导入数据库时遇到以下错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 15
我试着在my.ini中转转,并做了一些编辑:
# Uncomment the following if you are using InnoDB
以前,在创建的每个数据库上,我使用:
mysql -u root -p
CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL ON dbname.* TO 'dbuser'@'localhost';
然后使用数据库而不考虑MyISAM或InnoDB
如何知道数据库使用的存储引擎?
我得到了在堆栈溢出中joomla 3安装问题的解决方案(创建数据库中的安装块)。
中将"ENGINE=innoDB“替换为"ENGINE=MyIsam"的解决方案
joomla-folder\installation\sql\mysql\joomla.sql, it works well.
任何人都知道innoDB不使用joomla 3安装的原因。
我是否需要将引擎从"MyIsam“恢复到"innoDB”(安装成功后)?
我正在探索MySQL版本5.5.18中不同数据库引擎的效率,以了解哪些最适合用于500万行数据集上的范围查询:
SELECT P.col1, P.col2, P.col3, P.col4, P.col5, P.col6, P.col7, P.col8, P.col9
, P.col10, P.col10 * R.col3 as 'combi'
FROM PRODUCT P INNER JOIN RATE R ON R.col2 = P.col2
WHERE P.col3 = 'y'
AND P.col4 >= 1000
AND P.col5