Table doesn't exist after CREATE TABLE

前端 未结 6 593
栀梦
栀梦 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条回答
  •  Happy的楠姐
    2021-01-17 09:14

    Hmm, are you sure you have a database and are priviledged to do CREATE statements.

    If you have phpmyadmin:

    To test the first possibiblity, create a new (empty) test database, click it in the menu and then press the SQL button in the top navigation and copy paste your statement again. If this doesn't work try the second.

    For the second you can click on the 'home' button and then go to 'Privileges'. If there are only two or three accounts, but all with root privileges, you have the privileges to do a CREATE. Otherwise you can check your account and give yourself the privileges.

    If both possibilities didn't work-out I don't know either. It worked fine for me :(

提交回复
热议问题