- 1 安装完成mysql怎么root用户设置密码? 1. mysql -u root 2. select user,host,password from mysql.user; 3. set password for root@localhost=password('root');
- 2 远程不能登录该mysql,怎么办? 一般这种情况是没有权限问题,给root用户分配权限 GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; FLUSH PRIVILEGES;