Menu

Trying to use mysql

David
2004-10-14
2013-04-17
  • David

    David - 2004-10-14

    Connection Error

    Could not connect to the database with the information provided.

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-10-14

      message means what it says !! ur database access credentials/accounts u input should be wrong..

       
      • David

        David - 2004-10-14

        Please see my second message

         
    • David

      David - 2004-10-14

      Sorry - hit the enter key in the subject field by mistake...

      I'm using a windows 2K platform, Apache 2 and PHP5.
      Till now I have been using mysqli to access my tables without any problem.

      I have uncommented the extension=php_mysql.dll line in the php.ini file and PHPCodeGenie tries to access mysql but fails with the message -

      Connection Error
      Could not connect to the database with the information provided.

      Does anybody have any suggestions?

       
      • Nilesh Dosooye

        Nilesh Dosooye - 2004-10-14

        Try to write a small script using the mysql commands from php.net and see if it works to make sure that your php mysql commands is enabled.. just to make sure that its not the installation that's the problem

         
        • David

          David - 2004-10-14

          You were right.  It is an installation problem.

          If I use the libmysql.dll that comes with php5 (dated 09/2004) I get the following message -

          Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client

           
          • David

            David - 2004-10-14

            I have tried more recent and older versions of libmysql.dll from mysql.com and I keep getting an error message that mysql_drop_db could not be found.

             
    • David

      David - 2004-10-15

      I have given up.  From web searches it is clear that there is a problem between using libmysql.dll and php5.0.2.
      I have tried various solutions suggested but at best only succeeded in inactivating mysqli.

       
    • PietVerdriet

      PietVerdriet - 2005-02-05

      you can still use php 5. But you have to use 'old style' passwords. So you have to reset your passwords :

      mysql> SET PASSWORD FOR
          -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

       

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.