将mysql与Django一起使用时,会显示。我的cnf导致:
$ python manage.py dbshell
ERROR 1045 (28000): Access denied for user 'foo'@'localhost' (using password: YES)
CommandError: "mysql --user=foo --host=localhost --default-character-set=utf8mb4 quxdb" returned non-zero exit status 1.
我想保住我的饭碗。cnf并能够使用dbshell等。
有什么方法可以设置
--no-defaults
或设置中数据库中的其他mysql命令行参数。皮耶?