Tuesday 4 September 2012

django syncdb mysql access denied for user

you are new to django, you thought you had setup everything, but when you run syncdb for the first time you get access denied for the user you created..

running the following command should fix the problem:

grant all on databasename.* to 'username'@'domain';

flush privileges;

Monday 3 September 2012

django mysql no module named mysqldb (ubuntu)

if you receive this error, it is likely that you need to run this command:

apt-get install python-mysqldb