Magento MySql:在第1003行出现错误1005(HY000):无法创建表'magento.xxxxxx'(错误号:-1)

时间:2018-09-26 07:54:13

标签: mysql magento mariadb

我尝试通过 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)

1 个答案:

答案 0 :(得分:1)

我以另一种方式解决了上述问题。它对我有用。

1. I have removed the old database and created the new database with different name and set collation: utf8_unicode_ci.