VPS侦探论坛

 找回密码
 注册
查看: 818|回复: 1

强制默认default-storage-engine=InnoDB

[复制链接]
发表于 2023-8-9 20:47:15 | 显示全部楼层 |阅读模式

以前在Windows那
my.ini 改有效


现在发现LNMP用这方法无效用


修改my.cnf
vi /etc/my.cnf

; The default storage engine that will be used when create new tables
default-storage-engine=MyISAM

默认 MyISAM 修改为 InnoDB
default-storage-engine=InnoDB


请教军哥,LNMP这边的mariadb的修改方法
默认 MyISAM 修改为 InnoDB

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-8-11 08:05:10 | 显示全部楼层


在 /etc/my.cnf 中都是下划线,如:default_storage_engine = InnoDB
只有在命令中加参数才是你上面上划线的形式

安装时只要不更改默认就是InnoDB
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-17 10:11 , Processed in 0.025953 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表