In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
These days the company does database migration, from the original oracle database to mysql database, there is a strange problem.
After the data source was changed to mysql, there was a problem of [java.sql.SQLException: No tables used], which perplexed me for four or five days.
No problem with database connection, no problem with jar package, no problem with mapping file. I don't know how this anomaly came into being. I look up the information on the Internet, and there is basically no information about this anomaly. Now we finally find out why.
Originally, when configuring the hibernate data source, there was a test sql [SELECT * FROM DUAL], but this statement only applies to the oracle database. If the mysql database does not work, it has to be changed to [SELECT 1 FROM DUAL] and solved.
Or characters should be in single quotation marks: SELECT'* 'FROM DUAL
Hibernate+mysql must pay attention to this.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.