绿色版本,解压缩

D:\Software\mysql-advanced-5.6.18-winx64

my-default.ini 改名my.ini

my.ini内容如下

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/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.
[client]
default-character-set=utf8 [mysqld]
character_set_server=utf8
# 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 = D:\Software\mysql-advanced-5.6.18-winx64
datadir = D:\Software\mysql-advanced-5.6.18-winx64\data
# port = .....
# 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

打开 Windows 环境变量设置, 新建变量名 MYSQL_HOME , 变量值为 MySQL 安装目录路径, 这里为 D:\Software\mysql-advanced-5.6.18-winx64

在 环境变量 的 Path 变量中添加 ;%MYSQL_HOME%\bin;

安装 MySQL 服务, 打开Windows命令提示符, 执行命令: mysqld --install MySQL --defaults-file="D:\Software\mysql-advanced-5.6.18-winx64\my.ini"

启动: net start MySQL

停止: net stop MySQL

卸载: sc delete MySQL

修改密码:

mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.32-community MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>use mysql

mysql> UPDATE user SET password=PASSWORD(’新密码’) WHERE User=’root’;

mysql> FLUSH PRIVILEGES;

mysql>quit;

最新文章

  1. 在安装AndroidStudio时产生的问题
  2. js随机数
  3. Tensorflow mlp二分类
  4. HDU 4757 Tree(可持久化Trie+Tarjan离线LCA)
  5. 数据结构 C++ 单链表 一元多项式的相加
  6. We are doomed, and RPC does not help
  7. Codeforces Round #357 (Div. 2) E 计算几何
  8. 【转】2-SAT题集
  9. PJSIP在windows(xp或者win7)下的编译,编译工具是vs2008,PJSIP版本2.3
  10. Spring 配置方式
  11. tomcat 远程 调试 eclipse
  12. 2017,科学使用strace神器(附代码,举栗子)
  13. 解决 react-router / react-router-dom v4 history不能访问的问题
  14. 第七课 路径与列表 html5学习2
  15. [Codeforces702F]T-Shirts——非旋转treap+贪心
  16. flink 读取kafka 数据,partition分配
  17. 网络协议学习(2)---IP地址
  18. sql中的内联和外联(简单用法)
  19. [UE4]Invalidation Box
  20. WebService(基于AXIS的WebService编程)

热门文章

  1. angularJS 全选反选批量删除
  2. 《DSP using MATLAB》示例Example 6.28
  3. 接口测试框架——第一篇-大框架和setting.py常量文件
  4. Mac OS X系统 HomeBrew的安装和简单使用
  5. chrome扩展程序开发之在目标页面执行自己的JS
  6. C# 线程间不能调用剪切板的问题
  7. Mongodb简单介绍安装
  8. 1.JMeter===添加响应断言
  9. NETCTOSS - 中国电信运营支持系统-网络版_V-1.0
  10. Xbox360游戏收藏