Bug? #1146 - Table 'xxx.xxxxx' doesn't exist

前端 未结 18 1720
春和景丽
春和景丽 2020-11-29 05:49

I am using windows XP. I am creating a table in phpMyAdmin using its built-in create table feature, my database name is ffffd.

It generates the following

相关标签:
18条回答
  • 2020-11-29 06:23

    In my case I ran this command even if the table wasn't visible in PhpMyAdmin :

    DROP TABLE mytable

    then

    CREATE TABLE....

    Worked for me !

    0 讨论(0)
  • 2020-11-29 06:24

    As pprakash mentions above, copying the table.frm files AND the ibdata1 file was what worked for me.

    In short:

    1. Shut your DB explorer client (e.g. Workbench).
    2. Stop the MySQL service (Windows host).
    3. Make a safe copy of virtually everything!
    4. Save a copy of the table file(s) (eg mytable.frm) to the schema data folder (e.g. MySQL Server/data/{yourschema}).
    5. Save a copy of the ibdata1 file to the data folder (i.e., MySQL Server/data).
    6. Restart the MySQL service.
    7. Check that the tables are now accessible, queryable, etc. in your DB explorer client.

    After that, all was well. (Don't forget to backup if you have success!)

    0 讨论(0)
  • 2020-11-29 06:27

    The reason I was facing this was because I had two "models.py" files which contained slightly different fields. I resolved it by:

    1. deleting one of the models.py files
    2. correcting references to the deleted file
    3. then running manage.py syncdb
    0 讨论(0)
  • 2020-11-29 06:29

    I had this problem because of a trigger not working..Worked after I deleted the trigger.

    0 讨论(0)
  • 2020-11-29 06:30

    I had the same problem. I tried to create a table in mysql and got the same error. I restarted mysql server and ran the command and was able to create/migrate table after restating.

    0 讨论(0)
  • 2020-11-29 06:33

    I got this issue after copying mytable.idb table file from another location. To fix this problem I did the following:

    ALTER TABLE mydatabase.mytable DISCARD TABLESPACE;
    

    Copy mytable.idb

    ALTER TABLE mydatabase.mytable IMPORT TABLESPACE;
    

    Restart MySql

    0 讨论(0)
提交回复
热议问题