Closed Thread
Results 1 to 4 of 4

Thread: Php database connect problem

  1. #1
    banspad is offline x10Hosting Member banspad is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    2

    Php database connect problem

    I get this error when I try to use my dbconnect.php

    Warning: mysql_connect() [function.mysql-connect]: #07000(proxy) all backends are down

    I have only made database connections on my localhost before so I am sure I am doing something wrong, my connect file is
    Code:
    <?php
    		$con = mysql_connect("localhost","MyUsername","MyPassword");
    		if (!$con) {
    			die('Coulnd not connect: ');
    		}
    ?>
    Any help appreciated

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Php database connect problem

    It's probably a transient problem with the MySQL servers. If it persists, work through the many threads on this topic (you should always search before starting a new thread).

    The old mysql driver is quite outdated, having been supplanted twice over. PDO is the modern extension to use. If you want a tutorial on its use, read "Writing MySQL Scripts with PHP and PDO."
    Last edited by misson; 08-10-2010 at 09:59 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    banspad is offline x10Hosting Member banspad is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    2

    Re: Php database connect problem

    Ok thanks, it must not have been my issue it worked once I came back on here

  4. #4
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Php database connect problem

    Since your problem is solved, I am marking this thread as closed.
    *****Thread Closed*****


Closed Thread

Similar Threads

  1. Replies: 3
    Last Post: 05-22-2010, 07:04 AM
  2. Replies: 1
    Last Post: 10-08-2009, 08:08 AM
  3. Replies: 0
    Last Post: 11-22-2008, 05:53 PM
  4. Replies: 1
    Last Post: 08-23-2008, 01:38 PM
  5. Replies: 3
    Last Post: 04-11-2008, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers