In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Let's learn about the solution to the mysql case problem. I believe you will benefit a lot after reading it. The text is not very good. I hope the solution to the mysql case problem is what you want.
When we create the database, we may encounter all kinds of problems, for example, when we create the mysql table, we find that no matter whether it is uppercase or lowercase, it will be changed to lowercase after it is built.
Reason: MySQL is case-insensitive under windows, and table names are automatically converted to lowercase when script files are imported into MySQL.
Solution: (based on the method under windows system)
Find the my.ini file in the mysql installation directory and add it at the end of the file (1 means case-insensitive, 2 means case-sensitive)
1 lower_case_table_names=2
Then restart the mysql,cmd command line input:
1 net stop mysql2 net start mysql
Then enter in the mysql command interface:
Show variables like'% low%'
It is found that it is already case-sensitive, and this setting is successful.
In addition, when executing sql scripts with Navcat, you may encounter a problem: it is obvious that the script statements execute uppercase table names, but after construction, it is found that some table names have been changed to lowercase format.
For example: (a strange lowercase table name suddenly appears in all uppercase tables for unknown reasons)
Solution.
1. Manually change with the command.
1 rename table t_meeting to tweem to T_MEETING 2 rename table tweem to T_MEETING
two。 Find the data file and rename it directly:
File path: C:\ ProgramData\ MySQL\ MySQL Server 5.5\ data
Just find the corresponding database and rename the corresponding table, because Navcat renaming seems to have no effect, it may be my version problem, so it is not recommended to modify it directly with Navcat.
After reading this article on the solution to the case problem of mysql, many readers will certainly want to know more about it. For more industry information, you can follow our industry information section.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.