1.解压mysql-5.6.24
2.以管理员身份运行cmd
3.到解压目录的bin下mysqld --console 显示版本信息
4.到解压目录的bin下mysqld --install 安装
5.重新打开命令行C:\net start mysql
6. C:\net stop mysql
7.配置环境变量 path=D:\mysql-5.6.24-win32\bin;
8.测试:
其他操作之修改密码
扫描二维码关注公众号,回复:
954069 查看本文章
update user set password=password('1234');//没有where条件所有密码都改变
其他操作之设置某些允许ip远程连接
1.在登录以后use mysql;
2.select host,user,password from user;
3.GRANT All Privileges on *.* To 'root'@'192.168.100.88' identified by 'root' with grant option;//某个IP主机
GRANT All Privileges on *.* To 'root'@'%' identified by 'root' with grant option;//所有主机
4.flush privileges;//刷新刚才的权限,使其生效