I recently installed PHP and MySql using the xampp download.
The book I was trying to teach myself with stressed having the root user password protected so I entered the following:
mysql> update User
set password = 'my password'
where user = 'root';
I then exited and tried to log back in as root using the new password
# mysql -u root -p
Enter password: **********
but now get the error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I appreciate any help on this.