您的位置:首页技术文章

mysql 密码设置与授权

【字号: 日期:2023-10-16 15:19:23浏览:3作者:馨心

mysql -u root

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON *.* TO mrliu@localhost IDENTIFIED BY '123456';

标签: MySQL 数据库