$ docker-compose run --rm web python manage.py dbshell Creating example_web_run ... done 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 MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 92 Server version: 5.7.36 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [example]> select * from auth_permission; +----+--------------------------------------------------------+-----------------+-----------------------------------------------+ | id | name | content_type_id | codename | +----+--------------------------------------------------------+-----------------+-----------------------------------------------+ | 1 | Can add log entry | 1 | add_logentry | | 2 | Can change log entry | 1 | change_logentry | | 3 | Can delete log entry | 1 | delete_logentry | ... (省略) ... | 57 | 51文字の文字列 | 15 | add_長めのモデル名 | ... (省略)
エラーメッセージは
1
django.db.utils.DataError: (1406, "Data too long for column 'name' at row 57")