tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
198 stars 109 forks source link

Error mysql access denied even already setting up #36

Closed liyuqi closed 2 years ago

liyuqi commented 3 years ago

docker run --name ck \ -p 41061:22 -p 41062:80 -d \ -v ~/workspace/ck:/www \ -v ~/workspace/ck:/opt/lampp/htdocs/ck \ tomsik68/xampp:5

ck is my app name

browse ck page

A PHP Error was encountered Severity: Warning

Message: mysqli_real_connect(): (HY000/1045): Access denied for user 'naro'@'localhost' (using password: YES)

Filename: drivers/adodb-mysqli.inc.php

Line Number: 117

can't do it: Access denied for user 'naro'@'localhost' (using password: YES)

image

tomsik68 commented 3 years ago

Are you able to access the mysql database using phpmyadmin?

tomsik68 commented 2 years ago

Closing for inactivity, feel free to re-open if you still need help.