MySQL create user and grant full access

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Guess you like

Origin www.cnblogs.com/sxht/p/11881587.html