Menu

Connection with MySQL

Help
2002-11-01
2003-02-18
  • Nobody/Anonymous

    Hi,
    I keep getting this error:

    The installation script could not connect to the database bug_tracker on the host localhost using the specified username and password.
    Please check these details are correct and that the database already exists then retry.

    DB Error: no such database
    Array

    even if I provide the root username and password I cannot get connected to the database (already created).
    the db is mysql 3.23.41-1
    php is : php-4.1.2-7.2.4

    please advise, as I spent a few hours already and by going through the forum nobody seems to have the same pb.

    Thanks, Anthony

     
    • Anonymous

      Anonymous - 2002-11-02

      Ok I found the problem.
      Php was not compiled with the mysql.
      the problem is that the DB::Connect does not return a specific enough error to troubleshoot
      Anthony

       
    • Nobody/Anonymous

      Gosh we just did the same thing with a brand
      new setted up machine !!
      Thanks, we might have lost a lot more time before going pack to the basis!

      Stefphs team
      Stefphs@info-solution.qc.ca

       
    • Martin Lanser

      Martin Lanser - 2003-02-16

      Hello,

      I'm running:
        - MySQL v3.23.54
        - PHP 4.2.2
        - Apache v2
        - Red Hat v8

      I get the same error message:

        DB Error: no such database Array

      I created a BT database, and I can run MySQL fine from a  terminal window. I also checked PHP installation via phpinfo() and it says that it was compiled with "--with-mysql=shared,/usr". I didn't compile this myself but ratrher used the default version that comes w/ RedHat v8.

      I've tried to access from several diff machines (incl. localhost) and checked, double- and tripple-checked php.ini, mysql, etc.

      I'm totally stumped. The worst thing is that I have a test version running on my Win2K laptop (IIS, MySQL, PHP). That puppy was up & running in minutes.

      Anybody have any ideas?

      TIA,
      -martin.

       
      • James Stein

        James Stein - 2003-02-16

        That certainly sounds like PHP isn't compiled with MySQL. I'd install the PHP dev pack and recompile it just to make sure.

         
        • Martin Lanser

          Martin Lanser - 2003-02-18

          It turns out that PHP was compiled right, but the rest of the system was a bit funky. Anyway, reinstalled all the pieces and now it works.

          Thanks!

          -martin.

           
    • James Stein

      James Stein - 2003-02-16

      I just noticed that your running Apache V2. I've run into problems with phpBB2 running on ApacheV2. I haven't tried phpbt under it yet.

       
      • Martin Lanser

        Martin Lanser - 2003-02-18

        phpBT seems to run fine under Apache v2.

        -martin.

         

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.