麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 數據庫 > 文庫 > 正文

lower_case_table_names參數設定處理Error Code

2024-09-07 22:12:36
字體:
來源:轉載
供稿:網友
        在 MariaDB 10.2.11 for windows中使用mysqldump導出DB,并導入Mysql 5.7.16 for Linux后,在程式執行時報錯:Error Code: 1146. Table XXX doesn't exist
 
       檢查程式代碼發現執行SQL :SELECT * FROM Base_User ... 報的錯,但檢查Mysql 5.7.16 for Linux 中table卻存在。
       嘗試把SQL中駝峰式表名(Base_User)改為全小寫表名SELECT * FROM base_user可以正常執行,原來是因為Mysql for Linux中默認大小敏感,而windows中默認大小寫不敏感。
 
      在my.cnf設置參數 lower_case_table_names 為1,并重啟mysql后大小寫不敏感
      [mysqld]
      lower_case_table_names=1
 
參考文檔:
lower_case_table_names
 
Property Value
Command-Line Format --lower-case-table-names[=#]
System Variable lower_case_table_names
Scope Global
Dynamic No
Type integer
Default 0
Minimum 0
Maximum 2
If set to 0, table names are stored as specified and comparisons are case-sensitive.
If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive.
If set to 2, table names are stored as given but compared in lowercase. This option also applies to database names and table aliases.
 
On Windows the default value is 1. On OS X, the default value is 2.
 
You should not set lower_case_table_names to 0 if you are running MySQL on a system where the data directory resides on a case-insensitive file system (such as on Windows or OS X).
It is an unsupported combination that could result in a hang condition when running an INSERT INTO ... SELECT ... FROM tbl_nameoperation with the wrong tbl_name letter case. With MyISAM, accessing table names using different letter cases could cause index corruption.
 
As of MySQL 5.7.9, an error message is printed and the server exits if you attempt to start the server with --lower_case_table_names=0 on a case-insensitive file system.
 
If you are using InnoDB tables, you should set this variable to 1 on all platforms to force names to be converted to lowercase.
 
The setting of this variable in MySQL 5.7 affects the behavior of replication filtering options with regard to case sensitivity.

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 深夜毛片免费看 | 毛片网站视频 | 国产一区日韩一区 | 成人mm视频在线观看 | 91色一区二区三区 | 国产精品视频在线观看免费 | 欧美乱淫 | 日本精品中文字幕 | 1024亚洲天堂 | 日日草夜夜草 | 久久网站热最新地址4 | 久久精品性视频 | a视频在线看 | 美女一级视频 | 涩涩激情网| 国产亚洲在线 | 国产在线1区| 日韩av有码在线 | 一级黄色片在线看 | 中文字幕欧美专区 | 国产二三区 | 亚洲精品3| 性少妇videosexfreexx入片 | 色综合久久久久久久久久 | 欧美女同hd | 国产精品免费一区二区三区四区 | 久久精品视频12 | 久草视频手机在线观看 | 午夜视频在线观看91 | h色视频网站 | 精品在线免费播放 | 国产毛片网站 | 中国a级黄色片 | 国产精品视频1区 | 成人免费在线视频播放 | 欧美女人天堂 | 黄色网址在线免费 | 亚洲aⅴ在线观看 | 日韩字幕在线观看 | 一级大黄毛片 | 国av在线 |