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

Setting the case of mysql in linux does not distinguish the method.

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the linux setting mysql case does not distinguish between the method, the content of the article is carefully selected and edited by the author, with a certain pertinence, for everyone's reference significance is still relatively great, the following with the author to understand the linux setting mysql case does not distinguish the method.

First, check whether mysql is case-sensitive by command

Show variables like'% case_table%'

Lower_case_table_names=1 (indicating that it is case-insensitive)

Lower_case_table_names=0 (if the figure above is 0, it is case-sensitive)

(free video tutorials share: linux video tutorials)

2. Modify the value of lower_case_table_names to 1

Modify the / etc/my.cnf file through the vim editor and add lower_case_table_names=1 under [mysqld] (figure below)

1. Enter the my.cnf file

Vim / etc/my.cnf

2. Then add lower_case_table_names=1 under [mysqld] (figure below)

Exit save.

Restart the mysql service

Service mysqld restart

After reading the above about setting mysql case in linux, many readers must have some understanding. If you need more industry knowledge and information, you can continue to follow our industry information column.

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

Servers

Wechat

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

12
Report