Unable to connect to mysql database

Tricia Teo
  • Tricia Teo

    Tricia Teo - 2014-06-17

    I'm new to webmin, and I'm trying to configure my database settings so that it works. I was using mySQL previously, and now I have to import my sql statements onto webmin. However, I have no idea what other configurations are needed in order for my 'mysql_connect' to work.

    I've created a new user.
    user: dct_db_user
    host: localhost
    password: <empty>

    so in my file manager, i tried with a test file

    echo '1';
    $dbc = mysql_connect ('localhost', '$username', '$password');
    echo '2';
    if ($dbc){
    echo "Connection to Server opened";
    echo "There's no connection to server";


    so far it's only echoing '1', but gets stuck at mysql_connect. What else do I need to configure in order to get this working?

  • gandolf

    gandolf - 2014-06-30
    Post awaiting moderation.

Log in to post a comment.