MySQL 设置密码和允许远程登录 mysqladmin -u root password "newpass" GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY '123456' WITH GRANT OPTION;