设置存储引擎

  1. 在启动配置文件中设置服务器存储引擎
    [mysqld]
    default-storage-engine=<Storage Engine>
    mysql 设置存储引擎 
  2. 使用set命令为当前客户机回话设置
    SET @@storage_engine=<Storage Engine>;
    mysql 设置存储引擎 
     
  3. 使用create table语句指定
    CREATE TABLE t (i INT) ENGINE = <Storage Engine>;
    mysql 设置存储引擎 
     
    将现有表转换为InnoDB
    使用 ALTER TABLE 更改存储引擎
    ALTER TABLE t ENGINE = InnoDB;
    mysql 设置存储引擎 

部分内容来自:oracle官方中文版mysql dba学习指南

相关文章:

  • 2021-08-20
  • 2021-06-03
  • 2021-08-12
  • 2021-12-22
猜你喜欢
  • 2022-02-09
  • 2021-10-11
  • 2021-12-01
  • 2021-07-05
  • 2021-12-19
  • 2022-01-08
  • 2021-11-27
相关资源
相似解决方案