Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobsilverberg/370295680197db703662ee0685b660d5 to your computer and use it in GitHub Desktop.
Save bobsilverberg/370295680197db703662ee0685b660d5 to your computer and use it in GitHub Desktop.
python3 manage.py create_db --force
Traceback (most recent call last):
File "/data/olympia/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/deps/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/deps/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/deps/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/deps/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/data/olympia/src/olympia/amo/management/commands/create_db.py", line 39, in handle
connection = mysql.connect(**kwargs)
File "/deps/lib/python3.10/site-packages/MySQLdb/__init__.py", line 123, in Connect
return Connection(*args, **kwargs)
File "/deps/lib/python3.10/site-packages/MySQLdb/connections.py", line 185, in __init__
super().__init__(*args, **kwargs2)
MySQLdb.OperationalError: (2005, "Unknown MySQL server host 'mysqld' (-2)")
make: *** [Makefile-docker:55: initialize_db] Error 1
make: *** [initialize] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment