我尝试通过 phpMyadmin , adminer.php 和 SSH 上传magento .sql文件。但是我遇到了如下错误。
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/database?useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=user
spring.datasource.password=passwprd
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
查询:
1. Error in query (1005): Can't create table 'dubaycloud.catalogsearch_query'. (errno: -1)
2. Error in query (1146): Table 'dubaycloud.catalogsearch_query' doesn't exist.
3. Error in query (1050): Table '`dubaycloud`.`catalogsearch_result`' already exists.
查询错误(1005):无法创建表 'dubaycloud.catalogsearch_query'(错误:-1)
答案 0 :(得分:1)
我以另一种方式解决了上述问题。它对我有用。
1. I have removed the old database and created the new database with different name and set collation: utf8_unicode_ci.