win, cmd下安装mysql(win真tm难用)

 常用命令:

修改root用户密码

update mysql.user set authentication_string=password('1234qwer') where user='root' ;

授权root用户 所有主机登录:

grant all privileges on *.* to 'root'@'%' identified by 'redhat';

 

mysqladmin-u root -p shutdown 关闭mysql

mysqld --skip-grant-tables 跳过授权表

安装步骤

1、解压win下的包到某个目录

2、生成数据文件data

 

3、安装并且启动mysql

 

posted @ 2017-05-24 17:17  py鱼  阅读(3395)  评论(1编辑  收藏  举报
点我回主页