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

原文地址:https://www.cnblogs.com/pyyu/p/6899982.html