Rajadip
Rajadip

Reputation: 2869

Privileges to database tables created by Django

I am creating a web application using python-Django and mysql. While migrating database framework created following 10 tables.so, is there need to give privileges for those tables to database user ? if yes, which are those ?

auth_group
auth_group_permissions
auth_permission
auth_user
auth_user_groups
auth_user_user_permissions
django_admin_log
django_content_type
django_migrations
django_session

Upvotes: 0

Views: 259

Answers (1)

masnun
masnun

Reputation: 11906

Django can create those tables because the user has enough privilege to the database. The tables created from migrations also have sufficient privilege for the user. You don't have to worry about adding privilege to them.

Update: From OP's comment, he initially used the root user and then changed the user in Django settings. So he does have to update the privilege for the new user.

Upvotes: 2

Related Questions