WINDOWS主机mysql更改ROOT口令&建库&用户
改ROOT口令
1.net stop mysql //停MYSQ服务
2.CD 到mysql bin目录下mysqld-nt --skip-grant-tables //启动MYSQL
3.DOS下mysql mysql //登录到mysql库
4.update user set password =PASSWORD("fuck") where user='root'
5.FLUSH PRIVILEGES;
建库
1.create database xx;
2.FLUSH PRIVILEGES;
建用户
1.insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values("localhost","username",PASSWORD("password"),'','','');
2.grant all privileges on xx.* to username@localhost identified by 'password'
3.FLUSH PRIVILEGES;
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系
editor@qudong.com。
本文价值
★★★★★
—
成为第一个评分的人
登录后为本文打分
评论加载中…