Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

There is nothing wrong with lower_case_table_names=0

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Recently, I have found that I have encountered a lot of things. I know clearly that I am wrong, but I still ask others to make changes. It is so strange.

It's good to write a small document quietly.

Mysql > show tables | t_txn_net | # # this table exists | t_txn_pmc_breaker | | t_txn_regedit | | t_workday_pgm | | t_workday_set | +-- -+ 142 rows in set (0.00 sec) mysql > select * from t_txn_neT # ERROR 1146 (42S02) does not exist in the query table: Table 'upp.t_txn_neT' doesn't existmysql > mysql > mysql > show variables like' lower_case_table_names' # # case sensitive There is nothing wrong with this. +-+-+ | Variable_name | Value | +-+-+ | lower_case_table_names | 0 | +-+- -+ 1 row in set (0.00 sec) DBA there is always a way. The operation steps are as follows: 1. Close the library shutdown;2, modify the parameter vi my.cnflower_case_table_names = 1 # # case-insensitive 3, open the library mysqld_safe-- defaults-file=/etc/my.cnf & 4, query again, OKmysql > select * from tactitxnroomneTempty set (0.00 sec) 5, view lowercase table name value=1mysql > show variables like 'lower%' +-+-+ | Variable_name | Value | +-+-+ | lower_case_file_system | OFF | | lower_case_table_names | 1 | +- -+-+ 2 rows in set (0.01sec)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report