mysql 5.7.20\\5.7.21 免安装版安装配置教程
作者:antma 时间:2024-01-26 14:05:33
mysql 下载安装配置 5.7.20 / 5.7.21,供大家参考,具体内容如下
1、下载mysql,下载地址
选择操作系统和版本,我是64位win10,点击 Download 后会跳到Oracle登录页面要求登录后才能下载:
登录后下载:
2、下载完成后解压:
3、在mysql要目录下创建 my.ini 文件,如上图,文件内容如下,basedir 和 datadir 修改为相应地址:
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=D:/tools/ent/db/mysql-5.7.20-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:/tools/ent/db/mysql-5.7.20-winx64/data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
4、cmd进入bin目录下,执行 mysqld --initialize-insecure
\mysql-5.7.20-winx64\bin>mysqld --initialize-insecure
5、然后执行 mysqld -install
mysql-5.7.20-winx64\bin>mysqld -install
提示 Service successfully installed ,即安装成功
6、启动服务
D:\tools\ent\db\mysql-5.7.20-winx64\bin>net start mysql
7、停止服务
D:\tools\ent\db\mysql-5.7.20-winx64\bin>net stop mysql
8、登录mysql
D:\tools\ent\db\mysql-5.7.20-winx64\bin>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| api |
| ibase4j |
| jpress |
| mysql |
| performance_schema |
| srmhome |
| sys |
| wordpress |
+--------------------+
9 rows in set (0.00 sec)
mysql>
完成!
来源:http://blog.csdn.net/antma/article/details/79224279
标签:mysql5.7,mysql5.7.20,mysql5.7.21
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Pytorch上下采样函数--interpolate用法
2023-04-09 20:58:29
CSS实现垂直居中的5种方法
2009-03-04 12:53:00
![](https://img.aspxhome.com/file/UploadPic/20093/4/0613598e4-88s.jpg)
SQL Server模糊查询的常见方法总结
2024-01-21 19:15:49
![](https://img.aspxhome.com/file/2023/3/116323_0s.gif)
数据分页显示按钮,自动获取url链接
2009-06-22 12:59:00
Python ldap实现登录实例代码
2021-03-12 21:38:55
Sqlserver 高并发和大数据存储方案
2024-01-17 22:45:56
![](https://img.aspxhome.com/file/2023/6/116266_0s.png)
python hough变换检测直线的实现方法
2022-06-11 10:08:37
![](https://img.aspxhome.com/file/2023/3/109993_0s.png)
分享4个Python中高效省时的技巧
2021-02-14 22:32:09
![](https://img.aspxhome.com/file/2023/4/131314_0s.png)
Python实现用户登录并且输入错误三次后锁定该用户
2022-07-28 12:02:47
![](https://img.aspxhome.com/file/2023/0/123760_0s.jpg)
Python学习之路安装pycharm的教程详解
2021-11-15 23:07:51
![](https://img.aspxhome.com/file/2023/7/75267_0s.jpg)
如何完美的建立一个python项目
2021-02-20 21:07:26
ASP XMLDom在服务器端操作XML文件的主要方法和实现
2011-03-09 11:09:00
通过实例了解python__slots__使用方法
2023-03-16 13:24:50
Python-基础-入门 简介
2023-03-28 19:08:07
Pytest allure 命令行参数的使用
2022-04-12 17:06:19
![](https://img.aspxhome.com/file/2023/6/97696_0s.png)
可爱动态背景输入框
2009-05-07 13:50:00
关于Python核心框架tornado的异步协程的2种方法详解
2022-01-24 08:26:00
![](https://img.aspxhome.com/file/2023/1/86461_0s.jpg)
pygame游戏之旅 添加游戏界面按键图形
2023-06-30 21:48:38
![](https://img.aspxhome.com/file/2023/4/87754_0s.jpg)
python学生信息管理系统实现代码
2023-10-31 06:18:10
![](https://img.aspxhome.com/file/2023/1/90461_0s.jpg)
python 代码实现k-means聚类分析的思路(不使用现成聚类库)
2021-05-28 06:30:24
![](https://img.aspxhome.com/file/2023/3/98803_0s.png)