The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 4 of 4

Thread: php problem with port number

  1. #1

    php problem with port number

    $db_host = "*****"; // mySQL database host 
    $db_user = "*****"; // mySQL database user 
    $db_password = "*****"; // mySQL database password 
    $db_name = "*****"; // the name of your mySQL database 
    how do i set the port for the account i have?

    Warning: mysql_connect(): Can't connect to MySQL server on '' (13) in /data/hosted/Paulstuff/shoutbox.php on line 70
    Can't connect to MySQL server on '' (13)
    thats the error message i got

    (i want it to be port 3306 please)

    thx in advance,

  2. #2
    $dbhost = "******:3306";

    But since 3306 is the default port number for MySQL i don't think that's your problem. It'll use port 3306 if you don't specify it.
    Are you sure username and password are correct?

  3. #3
    yep im using a website so for the host do i put

  4. #4
    I don't think there is anything wrong with the script itself... It probably is the blocking the call... Do some search on that if it is true or not... If it is true, there's got to be some people who's posted the problem already... Google should be handy for that...

    Better yet, find a cheap host that provided you MySQL database... It is really cheap these days to get a hosting which probably will run somewhere around 5-10 bucks for it...
    CyanBlue / Jason Je / Flash Developer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012