You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
SELECT Host, User FROMmysql.userWHERE Password ='';
SELECT User FROMmysql.userGROUP BY password
HAVINGcount(user)>1;
-- expireALTERUSER shawn@localhost PASSWORD EXPIRE;
-- rename
RENAME USER 'shawn'@'localhost' TO 'shawnyan'@'localhost';
-- dropDROPUSER'shawnyan'@'localhost';
Pluggable Authentication
mysql_native_password
41-byte-wide hash
mysql_old_password
used before MySQL4.1.1
sha256_password
SHA-256 hashing
PAM Authentication Plugin
an Enterprise Edition plugin that authenticates MySQL accounts against the operating system
/etc/pam.d
CREATEUSERuser@host
IDENTIFIED WITH authentication_pam
AS'pam_service, os_group=mysql_user';
CREATE USER ''@''
IDENTIFIED WITH authentication_pam
AS'mysql-pam, sales=m_sales, finance=m_finance';