The reasons for failure:
1) Actually the connect port is wrong. Should be 3306 for my case. I knew it from here:
shell>mysqladmin -h 127.0.0.1 -u root variables -p |more
Detailed explaination see "http://dev.mysql.com/doc/mysql/en/Starting_server.html"
2) My sql server is 4.1.7-nt, while my client program is pre-4.1. They use different password hashing algorithm. I changed the algorithm to pre-4.1 style.
Detailed explaination see "http://dev.mysql.com/doc/mysql/en/Old_client.html"
The question is:
I think post-4.1 has more security password hashing mechanism, which set password 41-byte hash value in user table. But to be compatible with pre-4.1 clients I shortened the passwords. Is there any better way? I didn't see it from the mysql online manual.
1) Actually the connect port is wrong. Should be 3306 for my case. I knew it from here:
shell>mysqladmin -h 127.0.0.1 -u root variables -p |more
Detailed explaination see "http://dev.mysql.com/doc/mysql/en/Starting_server.html"
2) My sql server is 4.1.7-nt, while my client program is pre-4.1. They use different password hashing algorithm. I changed the algorithm to pre-4.1 style.
Detailed explaination see "http://dev.mysql.com/doc/mysql/en/Old_client.html"
The question is:
I think post-4.1 has more security password hashing mechanism, which set password 41-byte hash value in user table. But to be compatible with pre-4.1 clients I shortened the passwords. Is there any better way? I didn't see it from the mysql online manual.