以下操作都要在mysql所在机器操作 一.创建用户 CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456'; 或 insert into mysql.user(Host,User,Password) values('localhost','fe_group',password('123456')); flush privileges; 二.授权 //授权fe_group用户拥有fe数据库的所有权限 grant all privileges on …
同时打开2个命令行窗口,并按如下操作: <1>.在第一个“命令行窗口”输入: cd D:\Program Files\MySQL\MySQL Server 5.5\bin net stop mysql mysqld --skip-grant-tables <2>.在第二个“命令行窗口”输入: cd D:\Program Files\MySQL\MySQL Server 5.5\bin mysql -uroot -p mysql> update mysql.user set…
1. mysql安装后默认没有密码,初始化安装后默认密码登录,需要马上修改root密码.[root@mysql ~]# cat /root/.mysql_secret --查看root账号密码# The random password set for the root user at Tue Dec 13 18:59:06 2016 (local time): 7MhtyX3aZEl9OUf8[root@mysql ~]# mysql -uroot -p -- 登录mysqlEnte…