[Fixed]-Django – MySQL : 1146 Table doesn't exist

1👍

So here is the answer for all the django (or coding in general) noobs like me.

python manage.py createcachetable

I totally forgot about that and this caused all the trouble with “app_cache doesn’t exist”. At least in this case…
I changed my database to PostgreSQL, but I am sure it also helps with MySQL…

0👍

I would assume this was an issue with permissions. As in the web-page connects with a user that doesn’t have the proper permissions to create content.

If your tables are InnoDB, you’ll get the table doesn’t exist message. You need the ib* files in the root of the MySQL datadir (e.g. ibdata1, ib_logfile0 ib_logfile1)

If you don’t have these files, you might need to fix permissions by logging directly into your DB

👤OZI

Leave a comment