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之后配置才生效。
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之后配置才生效。
本文由 用户 于 2024-06-01 发布在 夸智网,如有疑问,请联系我们。
本文链接:https://www.kuazhi.com/post/328499.html
发表评论