Table doesn't exist after CREATE TABLE

前端 未结 6 556
栀梦
栀梦 2021-01-17 08:21

I\'m trying to import this sql in my database name symfony

CREATE TABLE IF NOT EXISTS ingredient (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255)          


        
6条回答
  •  攒了一身酷
    2021-01-17 09:11

    What worked for me was:

    • Going to the folder xampp/mysql/data/database-name/
    • You'll see only the .frm file. The files .MYD and .MYI are missing for empty tables.
    • Delete the .frm file.
    • Stop MySQL process and restart it.
    • After that I was able to create the table.

    The old version of xampp created tables in MyISAM format the new version as InnoDB!

提交回复
热议问题