linux 環境下mysql忽略大小寫

2021-08-26 14:04:02 字數 309 閱讀 1940

mysql資料庫在window環境下預設是忽略大小寫的,而linux環境中則相反,資料庫移植過去後可能會影響到應用工程的正常使用。

解決方法:

用root帳號登入後,在/etc/my.cnf 中的[mysqld]後新增新增lower_case_table_names=1,重啟mysql服務( /etc/init.d/mysql restart),這時已設定成功:不區分表名的大小寫;

lower_case_table_names引數詳解:

lower_case_table_names = 0

其中 0:區分大小寫,1:不區分大小寫

linux 環境下mysql忽略大小寫

mysql資料庫在window環境下預設是忽略大小寫的,而linux環境中則相反,資料庫移植過去後可能會影響到應用工程的正常使用。解決方法 用root帳號登入後,在 etc my.cnf 中的 mysqld 後新增新增lower case table names 1,重啟mysql服務 etc in...

linux 環境下mysql忽略大小寫

mysql資料庫在window環境下預設是忽略大小寫的,而linux環境中則相反,資料庫移植過去後可能會影響到應用工程的正常使用。解決方法 用root帳號登入後,在 etc my.cnf 中的 mysqld 後新增新增lower case table names 0,重啟mysql服務 etc in...

ubuntu 環境下mysql忽略大小寫

用root帳號登入後,在 etc mysql mysql.conf.d mysqld.cnf 中的 mysqld 後新增新增lower case table names 1,重啟mysql服務,這時已設定成功 不區分表名的大小寫 lower case table names引數詳解 lower ca...