sprintcube / docker-compose-lamp

A basic LAMP stack environment built using Docker Compose.
MIT License
2.54k stars 1.39k forks source link

Q: how to create and test with new user and DB #240

Closed boelle closed 11 months ago

boelle commented 1 year ago

i created a new user called emoncms and a db with the same name..

image

image

still i get a connection refused if i test it:

<?php
    $conn = mysqli_connect(
        '192.168.0.163',
        'emoncms',
        'bolledej',
        'emoncms');
    if(!$conn){
        echo 'Connection error: ' . mysqli_connect_error();
    }
?>