简体   繁体   中英

mysql has table name case sensitive with efcore

Our mysql database was on Tencent Cloud before, Now we have created one in k8s. Then our program reported an error means "Table packagedb_dev.ShopOrder" doesn't exist; Our table name is lowercase. When I change the table name to uppercase, the error disappears. I have been using EFcore and mysql for a long time and have never encountered this error. The orm is EntityframeworkCore,Version: Microsoft.EntityFrameworkCore 3.1.9

I have solved the problem. The cause is that the self-built database is case-sensitive and the database in the container can be cumbersome to set this parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM