MariaDB/MySQL database connection failed

Viewed 720

Database connection failed during installation.

Using the docker environment, the database has been successfully created. It can be used normally with the recommended SQLite, but it cannot be entered when changing to MySQL.

Whether the database address should be filled in (127.0.0.1) or the real IP, and the password and username of the database are completely correct.

image.png

Please describe your usage environment in detail.

  1. Are you using docker or binary deployment?
  2. If you are using docker, can you access the database from within docker?
  3. Whether the database has been created and the username and password are correct?

If you deploy using docker, you need to use a real IP and ensure that mysql is accessible internally by docker. You can verify that the connection is properly established by ping or other commands.

Are you using macos or linux environment?

1 Answers

try set Database Host:host.docker.internal