“CommandError: You appear not to have the ‘mysql’ program installed or on your path.”
解决方式
安装mysql-client
1
apt-get install mysql-client
测试
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
root@iZm5e6fdj7fol5q85vjyw6Z:/data/webserver# python manage.py dbshell mysql: [Warning] Using a password on the command line interface can be insecure. Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4886593 Server version: 5.7.26-log Source distribution
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.