SOLUTION:
This is not a WAMP problem but rather based on the fact that PHP4 still uses the old password mechanism of MySQL. This usually happens when your change your password. This is not a problem however. The full explanation is at:
[
dev.mysql.com]
The instructions above is for a Linux server. For Windows it is almost the same - just a few changes here and there
WINDOWS walkthrough to fix problem
----------------------------------------------------
(just to make 100% sure.. you must TYPE in everything BETWEEN the "" quotation marks... but not the quotation marks itself)
1. Click Start -> Run and enter "cmd" to get to the command prompt.
2. Enter "cd \wamp\mysql\bin"
3. Enter "mysql -u root -p"
4. It will ask you for your database password. Enter it. You will now have a mysql> prompt
5. Enter "SET PASSWORD FOR root@localhost = OLD_PASSWORD('***********');"
Of course, REPLACE the ********* with your own password
6. Enter "exit" and close that window
6. Click on your WAMP icon (above the clock in the lower right corner of your screen)
7. Click on Config Files -> my.ini
8. Look for a section that says: [wampmysqld]. It is about a page down.
9. Add this line under the line that says port=3306
# set mysql to use old password mechanism
old_passwords
10. Here is an example of what the section in my.ini must look like
----example---
[wampmysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
# set mysql to use old password mechanism
old_passwords
#Path to installation directory. All paths are usually resolved relative to this.
basedir=c:/wamp/mysql
---- example-----
11. Save and close the file my.ini file
12. Click your WAMP icon -> MySQL -> Restart Service
13. If you did everything correctly your PHP4 will now connect to your MySQL database without any problems.
Wermer Avenant
[
internet-knowhow.com]