mysql 5.7.18 winx64安装配置方法图文教程
作者:伍豪 时间:2024-01-13 16:37:30
mysql-5.7以后压缩包安装有了不小的变化,本文针对之前安装mysql5.7.18的笔记进行了总结,分享给大家
第一步:到官网下载https://dev.mysql.com/downloads/mysql/
第二步:解压到一个文件夹
第三步:配置环境变量
把;%MYSQL_HOME%\bin插入到Path的最后面
第四步:以管理员的身份运行命令行,按win+R 输入cmd,点鼠标右键以管理员身份运行
第五步:进入到D:\mysql-5.7.18-winx64\bin
初始化数据: mysqld --initialize-insecure --user=mysql
启动服务:mysqld --user=mysql
初始化mysql root密码:mysqladmin -u root password ‘new-password'
详情见https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html
或者从第五步开始%MYSQL_HOME%\bin\mysqld--initialize--user=mysql--console
第六步:注册服务mysqld--installMySQL
用net start mysql 命令开启服务
mysql -uroot -p
输入执行第五步时获得的随机密码
显示如上信息则成功
重置密码:mysql>set password for root@localhost = password('123456');
关闭服务:net stop mysql
删除没有用的服务:sc delete 服务名字 例如:删除mysql的服务,sc delete mysql
MySQL5.6的一个简单的my.ini配置
[client]
port=3306
default-character-set=utf8
[mysqld]
port=3306
character_set_server=utf8
basedir=D:\AJDevelopment\mysql-5.6.31-winx64
#解压目录
datadir=D:\AJDevelopment\mysql-5.6.31-winx64\data
#解压目录下data目录
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[WinMySQLAdmin]
D:\AJDevelopment\mysql-5.6.31-winx64\bin\mysqld.exe
精彩专题分享:
mysql不同版本安装教程
mysql5.7各版本安装教程
mysql5.6各版本安装教程
mysql8.0各版本安装教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python自动发邮件总结及实例说明【推荐】
![](https://img.aspxhome.com/file/2023/2/111862_0s.png)
python print出共轭复数的方法详解
Pytest+Request+Allure+Jenkins实现接口自动化
![](https://img.aspxhome.com/file/2023/3/112593_0s.png)
Python学习入门之区块链详解
![](https://img.aspxhome.com/file/2023/4/92204_0s.png)
如何避免SQL语句中含有单引号而导致操作失败?
mysql 存储过程的问题
Python的函数使用介绍
![](https://img.aspxhome.com/file/2023/2/93612_0s.png)
简述mysql监控组复制
关于换行和回车的图文小结
![](https://img.aspxhome.com/file/2023/6/132326_0s.jpg)
echarts柱状图坐标轴内容显示不全的两种解决办法
![](https://img.aspxhome.com/file/2023/2/56122_0s.png)
Python利用百度地图获取两地距离(附demo)
![](https://img.aspxhome.com/file/2023/5/117355_0s.jpg)
使用python实现时间序列白噪声检验方式
![](https://img.aspxhome.com/file/2023/9/118079_0s.jpg)
浏览器事件循环与vue nextTicket的实现
![](https://img.aspxhome.com/file/2023/5/128875_0s.png)
详解Windows下安装Nodejs步骤
![](https://img.aspxhome.com/file/2023/1/129351_0s.png)
Python高级特性之闭包与装饰器实例详解
![](https://img.aspxhome.com/file/2023/3/65473_0s.png)
vue-cli 引入jQuery,Bootstrap,popper的方法
MySQL的Query Cache原理分析
Python判断文件和文件夹是否存在的方法(最新推荐)
Pandas标记删除重复记录的方法
总结Pyinstaller打包的高级用法
![](https://img.aspxhome.com/file/2023/9/112839_0s.png)