Results 1 to 4 of 4

Thread: php problem with port number

  1. #1

    php problem with port number

    Code:
    $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?

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

    (i want it to be port 3306 please)

    thx in advance,
    yhack

  2. #2
    Use
    $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 www.freesql.org

  4. #4
    I don't think there is anything wrong with the script itself... It probably is the freesql.org 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
    http://CyanBlue.FlashVacuum.com
    http://www.FlashVacuum.com

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 kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012