SET old_passwords =0;
UPDATE mysql.user SET Password =PASSWORD(‘testpass‘) WHERE User=‘testuser‘ limit 1;
SELECT LENGTH(Password) FROM mysql.user WHERE User=‘testuser‘;
FLUSH PRIVILEGES;
时间: 2024-10-09 05:14:07
SET old_passwords =0;
UPDATE mysql.user SET Password =PASSWORD(‘testpass‘) WHERE User=‘testuser‘ limit 1;
SELECT LENGTH(Password) FROM mysql.user WHERE User=‘testuser‘;
FLUSH PRIVILEGES;