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之后配置才生效。

posted @ 2022-06-19 15:37  emanlee  阅读(319)  评论(0)    收藏  举报