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