diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 761e5faaff..524e90d6eb 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -25,7 +25,10 @@ try: import MySQLdb as Database except ImportError as e: from django.core.exceptions import ImproperlyConfigured - raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) + raise ImproperlyConfigured( + 'Error loading MySQLdb module: %s.\n' + 'Did you install mysqlclient or MySQL-python?' % e + ) from MySQLdb.constants import CLIENT, FIELD_TYPE # isort:skip from MySQLdb.converters import Thing2Literal, conversions # isort:skip