1👍
This simply means that the ‘mysql’ excutable command file (mysql.exe) was not added to your system path therefore the system was unable to locate this file. To add the ‘mysql’ to system path try to locate the ‘mysql’ resident folder.
Seems you are using windows, here are the steps:
1) go to Control Panel -> System and Security -> System
2)paste “mysql resident folder path” into Variable value: field of Edit System Variable pop up.
- [Answered ]-Is there a way in Django to get the currently authenticated user directly from a model?
- [Answered ]-Django and S3 – static URL won't change
0👍
python manage.py dbshell
is just a shortcut for mysql -d DATABASENAME -u USERNAME -p PASSWORD
and you will need to have mysql installed on your system and that mysql command should be able to run from the console.
Source:stackexchange.com