mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Use mysql.user.authentication_string for password
Don't distinguish between a "password hash" and "authentication string" anymore. Now both are stored in mysql.user.authentication_string, both are handled identically internally. A "password hash" is just how some particular plugins interpret authentication string. Set mysql.user.plugin even if there is no password. The server will use mysql_native_password plugin in these cases, let's make it expicit. Remove LEX_USER::pwhash.
This commit is contained in:
@ -506,9 +506,9 @@ DROP DATABASE mysqltest;
|
||||
GRANT USAGE ON *.* TO user19857@localhost IDENTIFIED BY 'meow';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE ROUTINE, ALTER ROUTINE ON test.* TO
|
||||
user19857@localhost;
|
||||
SELECT Host,User,Password FROM mysql.user WHERE User='user19857';
|
||||
Host User Password
|
||||
localhost user19857 *82DC221D557298F6CE9961037DB1C90604792F5C
|
||||
SELECT Host,User,Plugin,Authentication_string FROM mysql.user WHERE User='user19857';
|
||||
Host User Plugin Authentication_string
|
||||
localhost user19857 mysql_native_password *82DC221D557298F6CE9961037DB1C90604792F5C
|
||||
connect mysqltest_2_con,localhost,user19857,meow,test;
|
||||
connection mysqltest_2_con;
|
||||
USE test;
|
||||
@ -533,9 +533,9 @@ connection mysqltest_2_con;
|
||||
DROP PROCEDURE IF EXISTS test.sp19857;
|
||||
connection con1root;
|
||||
disconnect mysqltest_2_con;
|
||||
SELECT Host,User,Password FROM mysql.user WHERE User='user19857';
|
||||
Host User Password
|
||||
localhost user19857 *82DC221D557298F6CE9961037DB1C90604792F5C
|
||||
SELECT Host,User,Plugin,Authentication_string FROM mysql.user WHERE User='user19857';
|
||||
Host User Plugin Authentication_string
|
||||
localhost user19857 mysql_native_password *82DC221D557298F6CE9961037DB1C90604792F5C
|
||||
DROP USER user19857@localhost;
|
||||
disconnect con1root;
|
||||
connection default;
|
||||
|
Reference in New Issue
Block a user