MySQL 设置密码和允许远程登录

mysqladmin -u root password "newpass"
 GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY '123456'  WITH GRANT OPTION;

 

posted on 2017-05-10 19:12  modprobe  阅读(172)  评论(0编辑  收藏  举报