2023年11月

CREATE USER IF NOT EXISTS 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'XXXX';

alter user 'root'@'127.0.0.1' identified with mysql_native_password by 'XXXX';

drop user zhangsan;

grant all privileges ON *.* TO 'root'@'127.0.0.1';