#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    RSA
    Posts
    4
    Rep Power
    0
    Hie,
    Please tell me what I am doing wrong with my
    connection to the server.
    $DBHost="";->IP address e.g 205.150.253.140
    $DBUser="";->Username e.g test
    $DBPass="";->Password e.g testmail
    function Connect () {
    global $DBHost,$DBUser,$DBPass;
    }
    I get ;
    Warning: MySQL Connection Failed: Can't connect to MySQL server on



    ------------------
    pro
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    The variables have to go inside the MYSQL_CONNECT(); bracketes. Like so:

    MYSQL_CONNECT("205.150.253.140", "test", "testmail");


    [This message has been edited by alexgreg (edited August 26, 2000).]

Similar Threads

  1. Mysql problem.
    By Nik in forum MySQL Help
    Replies: 54
    Last Post: December 21st, 2006, 07:02 PM
  2. Custom error message for MySQL connection
    By dbr1066 in forum PHP Development
    Replies: 6
    Last Post: February 12th, 2004, 12:25 PM
  3. java / mysql connection
    By johann8401 in forum Java Help
    Replies: 2
    Last Post: February 9th, 2004, 01:27 PM
  4. mysql server looses connection
    By Webbgroup in forum MySQL Help
    Replies: 1
    Last Post: January 29th, 2004, 12:19 PM
  5. MYSQL connection to JSP (not again!! :) )
    By JSP_Neubee in forum Java Help
    Replies: 1
    Last Post: January 20th, 2004, 09:34 AM

IMN logo majestic logo threadwatch logo seochat tools logo