Where to change the value of lower_case_table_names=2 in XAMPP on Windows?(在 Windows 上的 XAMPP 中哪里可以更改 lower_case_table_names=2 的值?)
问题描述
我使用的是 Windows 7 和 XAMPP.我正在尝试导出我的数据库,并且在此过程中表名被转换为小写.
I am using Windows 7 and XAMPP. I am trying to export my database and while in the process the table names are converted to lower case.
我搜索了很多,我知道我必须将 lower_case_table_names
的值从 0
更改为 2
,但是我在哪里要更改此值,在哪个文件中?
I have searched a lot, I know I have to change the value of lower_case_table_names
from 0
to 2
, but where do I have to change this value, in which file?
推荐答案
执行以下步骤:
- 打开您的 MySQL 配置文件:[驱动器]xamppmysqlinmy.ini
- 查找:
# MySQL 服务器 [mysqld]
- 在其正下方添加:
lower_case_table_names = 2
- 保存文件并重启 MySQL 服务
来自:http://webdev.issimplified.com/2010/03/02/mysql-on-windows-force-table-names-to-lowercase/
这篇关于在 Windows 上的 XAMPP 中哪里可以更改 lower_case_table_names=2 的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Windows 上的 XAMPP 中哪里可以更改 lower_case_table_names=2 的值?


基础教程推荐
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01