CommandError: You appear not to have the ‘mysql’ program installed or on your path.

 

python manage.py dbshell

CommandError: You appear not to have the ‘mysql’ program installed or on your path.

 

找到 Mysql 所在的文档夹的 bin 目录,添加至系统环境变量的 Path 即可
  测试是否生效的方法就是打开 CMD,输入mysql -hroot -ppwd 即可直接进入数据库,其中 root 是用户名,pwd 是密码。
  最后应该是重启pycharm之后配置才生效。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章