Menu

Test Database Connection fails to connect

Help
2009-05-31
2013-04-16
  • Brad Younie

    Brad Younie - 2009-05-31

    I have the database setup right (I believe), and it loads Pear:DB, but it fails on the line:

    $db = DB::Connect($dsn);

    My database is MySQL => 4.1

    I gave full permissions to my database user, just to make sure it works.

    I get an internal server error 500.

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2009-05-31

      Use the standalone script
      PEAR_TEST.php
      To diagnose connection issues.

       
    • Bryce Nesbitt

      Bryce Nesbitt - 2009-05-31

      Please report back if you find a solution.

       
    • Bryce Nesbitt

      Bryce Nesbitt - 2009-05-31

      Oh, and your PHP version is relevant.

       
    • Brad Younie

      Brad Younie - 2009-05-31

      I can't seem to find PEAR_TEST.php. Does it come with PHP, phpBugTracker, or do you have to get it separately?

       
      • Nobody/Anonymous

        PEAR_TEST.php comes with phpBugTracker

         
    • Brad Younie

      Brad Younie - 2009-05-31

      I found the source to PEAR_TEST.php online, copied it to my server and tried it out.

      It worked great! There were a few configuration issues, notably having to set the path to where PEAR::DB was.

      The test code helped me solve it and now I'm up and running. phpBugTracker is working good now.

      Thanks!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.