Hello,
i am using Plesk on a Linux-System runnung MySQL 5.7 and don't want to change it because i don't know if all used applications are able to work with MySQL 8.
But now i tried to get Nextcloud running. Nextcloud neeed a newer MySQl and so i thougt it would be the best to set up MySQL 8 in a Docker-container and use this version for Nextcloud.
This is my configuration:
lsof shows me, that Docker is listening on port 3307:
But nextcloud-installer didn't use or didn't find this MySQL-service. I choose MySQL-Datebase, users nc with the passwort for nc, database nc and tried localhost:3307 and 127.0.0.1:3307.
I get this error:
What is wrong in my configuration of MySQL in the docker-container?
best regards
Siegbert
i am using Plesk on a Linux-System runnung MySQL 5.7 and don't want to change it because i don't know if all used applications are able to work with MySQL 8.
But now i tried to get Nextcloud running. Nextcloud neeed a newer MySQl and so i thougt it would be the best to set up MySQL 8 in a Docker-container and use this version for Nextcloud.
This is my configuration:
- mySQL 8 with standard parameters and potmapping 3306 -> 3307 and 33060 -> 33070
root@h2386003:~# docker exec -it mysql bash
root@ba6171cb9c6e:/# mysql -u nc -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 8.0.27 MySQL Community Server - GPL
lsof shows me, that Docker is listening on port 3307:
docker-pr 9991 root 4u IPv4 1039308961 0t0 TCP *:33070 (LISTEN)
docker-pr 9998 root 4u IPv6 1039273738 0t0 TCP *:33070 (LISTEN)
docker-pr 10012 root 4u IPv4 1039302047 0t0 TCP *:3307 (LISTEN)
docker-pr 10020 root 4u IPv6 1039284601 0t0 TCP *:3307 (LISTEN)
But nextcloud-installer didn't use or didn't find this MySQL-service. I choose MySQL-Datebase, users nc with the passwort for nc, database nc and tried localhost:3307 and 127.0.0.1:3307.
I get this error:
Then i tried to access the MySQL -Docker with phpMySQLAdmin.Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nc'@'localhost' (using password: YES)
- install phpMySQLAdmin from Docker-Hub
- leave all standards an add PMA_HOST 127.0-0-1 and PMA_PORT 3307
Whe i use localhost / 33ß7 i get "no such file or directory".Error: mysqli::real_connect(): (HY000/2002): Connection refused
What is wrong in my configuration of MySQL in the docker-container?
best regards
Siegbert