Search code examples
pythonmysqldjangopermission-denieddjango-syncdb

with ./mange.py syncdb getting permission denied in django project


root@domU-xx-xx-39-04-x5-36:/opt/sana# ./manage.py syncdb
-bash: ./manage.py: Permission denied

I tried both django.db.backends.mysql and mysql for 'ENGINE' I am able to connect to root using

mysql -u root -p

My settings.py file is correct My Django version is 1.1.1 on Ubuntu LTS 10.04 in EC2


Solution

  • Check manage.py has execute permission. If not give it by

    # chmod +x manage.py