mysql ignores case in ubuntu environment




After logging in with the root account, add lower_case_table_names=1 after [mysqld] in /etc/mysql/mysql.conf.d/mysqld.cnf, and restart the MYSQL service. At this time, the setting is successful: the table name is not case-sensitive ;

lower_case_table_names parameter details:

lower_case_table_names = 0
lower_case_table_names = 1 Ignore case


how to start/stop/restart MySQL
1. Startup method

1. Use service to start: service mysql start

2. Use mysqld script to start: /etc/inint.d/mysql start

3. Start with safe_mysqld: safe_mysql&

2. Stop

1. Start with service: service mysql stop

2. Start with mysqld script: /etc/inint.d/mysql stop

3. mysqladmin shutdown

3. Restart

1. Start with service: service mysql restart

2. Start using the mysqld script: /etc/inint.d/mysql restart

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326393330&siteId=291194637