博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MySQL5.7绿色版安装
阅读量:6852 次
发布时间:2019-06-26

本文共 2084 字,大约阅读时间需要 6 分钟。

1. 下载MySQL 5.7,地址: (选择32位或者64位版本需根据自身PC情况)

2. 下载后解压,比如我的目录结构是:

3. 配置Path路径:系统属性 => 高级 => 高级 => 系统变量 => path后添加 F:\CSoft\MySQL-5.7\bin

4. 修改my-default.ini,此文件是初始化信息:

# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.[mysqld]# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required.basedir = F:\CSoft\MySQL-5.7datadir = F:\CSoft\MySQL-5.7\dataport = 3306# server_id = .....# Remove leading # to set options mainly useful for reporting servers.# The server defaults are faster for transactions and fast SELECTs.# Adjust sizes as needed, experiment to find the optimal values.# join_buffer_size = 128M# sort_buffer_size = 2M# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES # !o>UZ!e(h6(m  初始化的密码

5. 系统管理员模式运行cmd 输入如下命令

C:\Users\LCF>F:          //切换到F目录F:\>cd CSoft\MySQL-5.7\bin   //进入bin目录F:\CSoft\MySQL-5.7\bin>mysqld --install   //安装MYSQL服务Service successfully installed.  //提示服务安装成功The current server installed: F:\CSoft\MySQL-5.7\bin\mysqld MySQLF:\CSoft\MySQL-5.7\bin>mysqld --initialize --console  //根据配置文件初始化,此时会有一大堆消息,(注意最后的消息:2016-07-13T14:21:39.268917Z 1 [Note] A temporary password is generated for root@localhost: !o>UZ!e(h6(m  )后面这个是密码待会儿登录使用的。F:\CSoft\MySQL-5.7\bin>net start mysql  //启动mysql服务MySQL 服务正在启动 .MySQL 服务已经启动成功。F:\CSoft\MySQL-5.7\bin>mysql -uroot -p  //登录mysqlEnter password: ************   //密码就是输入的密码mysql> set password=password('123456');     //修改密码Query OK, 0 rows affected, 1 warning (0.00 sec)

目前为止成功安装。

转载于:https://www.cnblogs.com/LiuChunfu/p/5668435.html

你可能感兴趣的文章
微信公众平台开发(107) 分享到朋友圈和发送给好友
查看>>
GeoTiff如何存储颜色表的研究
查看>>
Linux进程ID号--Linux进程的管理与调度(三)
查看>>
Xcode 编译错误
查看>>
=、==、is、id(内容)
查看>>
基于MySQL协议的数据库中间层项目Atlas - 360团队
查看>>
20165334《java程序设计》第三周学习总结
查看>>
HTTP请求GET/POST查看工具
查看>>
php实现 坐标移动
查看>>
前端之HTML
查看>>
The Cats' Feeding Spots
查看>>
Python 进阶_OOP 面向对象编程_self 的实例绑定
查看>>
jquery内核学习(5)--对象的遍历
查看>>
在Android迷你广告上添加浮动的关闭按钮
查看>>
2dcontext
查看>>
企业级大数据处理方案-01
查看>>
日期和字符串相互转换的方法
查看>>
ASP.NET Localization
查看>>
ssm框架,出现xxx不能加载,或者bean不能加载时的解决方案之一
查看>>
types.h头文件学习
查看>>