2005-08-18 13:04:46
MySQL password for version 41 and up
ATutor version: 1.5
If you are trying to install ATutor 1.5 on a system using MySQL versions 4.1 and up, and you have created a specific account for your ATutor application to use when connecting to the db, you have probably discovered that ATutor will not connect to the db.
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by ATutor. To solve this problem, create (or modify) the account password by resetting the password to pre-4.1 style. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:
mysql> SET PASSWORD FOR -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Alternatively, use UPDATE and FLUSH PRIVILEGES:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
Substitute the password you want to use for newpwd in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
Maybe in future versions of ATutor some code changes will ensure this is no longer a catch :-) .