S
S
Sergey Karbivnichy2020-05-31 17:29:10
MySQL
Sergey Karbivnichy, 2020-05-31 17:29:10

wordpress installer not seeing mysql?

I have Linux Mint 19.3 Installed mysql. Created a user. I installed docker wordpress (most likely this is a crutch) I go to localhost: 8080 and start the installation. I enter all the parameters for connecting to the database, and then an error appears - "Error establishing a connection to the database."
Here's what I entered:
5ed3bec0cfbf2969468029.png
5ed3bec930719036630422.png
Also created a password for root, and tried the root user. Everything is fine with mysql, I connected with a script from python and created databases and tables without any problems.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2020-05-31
@KingstonKMS

Either put the muscle into the docker too, and connect it via internal ip, or give the docker access to the machine's localhost ( --network host) so that it can see the muscle.

G
Grizar, 2020-06-01
@Grizar

VERY carefully check the DB NAME - DB User - maybe they should be the SAME.
LOCALHOST must be specified as localhost:8080 (or similar, via port)
eg :
define('DB_HOST', '0.0.0.0:3313');
or
define('DB_HOST', '0.0.0.0:8080'); 5ed42f348507b634262981.jpeg
most likely the wrong address of the database server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question