Unable to connect to mySQL

Discussion in 'Server Operation' started by mfiendd, May 28, 2006.

  1. mfiendd

    mfiendd New Member

    Hey guys, I'm new to using Linux. I got my Fedora 5 server up & running with IPSConfig with no problems but having an issues with mysql databases. I created a database in IPSConfig, I can view it with phpmyadmin and run my sql quiries but when I try to call it from the config.php for a phpnuke, it is unable to connect to mysql. In the config file I have changed it to the IP of the server with no luck.

    DB Setup:
    dbname: web1_db1
    dbuser: web1_u1

    $dbhost = "localhost";
    $dbuname = "web1_db1";
    $dbpass = "***************";
    $dbname = "web1_u1";

    I'm not sure why config.php cannot connect to mysql since all the info is should be correct.

    Also have getting Server Error 500 when using .htaccess & .staccess files.
    Lastly, I setup no-ip's client and need to change the port from 80 for the site to be view from the world and I don't know where to go. I have been searching all of the forum trying to find answers but no luck.

    Thank you for time and assitance,

  2. sjau

    sjau Local Meanie Moderator

    Can you post the whole connection script and what error message you get?


    Last edited: May 28, 2006
  3. falko

    falko Super Moderator Howtoforge Staff

    You have interchanged the database name and the database user. It should be

    $dbuname = "web1_u1";
    $dbname = "web1_db1";
  4. mfiendd

    mfiendd New Member

    hehe, thats an OE (operator error) :D

    Thanks Falko

Share This Page