Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过 JAVA 在干净的数据库环境中使用执行 ./bin/mysql ... .sql 文件。关于如何解决这个问题的任何想法?将 lower_case_table_names = 2 添加到 ini 并没有帮助。顺便说一句,我在 Windows 上。
尝试用YOUR_DATABASE_NAME您的数据库名称替换
YOUR_DATABASE_NAME
SELECT CONCAT('ALTER TABLE ',db,'.',tb,' RENAME ',db,'.',LOWER(tb),';') FROM (SELECT table_schema db,table_name tb FROM information_schema.tables WHERE table_schema in (YOUR_DATABASE_NAME) ) A;