mysql 5.6 免安装版_mysql 5.6.15的免安装版 安装

mysql 5.6.14 win7 32位免安装版配置

1.下载mysql 5.6.14;下载地址:http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14-win32.zip

2.解压到自定义目录,我的是D:\mysql-5.6.15-win32\mysql-5.6.15-win32\bin

3.复制根目录下的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]

port=3306

default-character-set=utf8

#客户端字符类型,与服务端一致就行,建议utf8

[mysqld]

port=3306

character_set_server=utf8

#服务端字符类型,建议utf8

basedir = D:\mysql-5.6.15-win32\mysql-5.6.15-win32

datadir = D:\mysql-5.6.15-win32\mysql-5.6.15-win32\data

# 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:\mysql-5.6.15-win32\mysql-5.6.15-win32

# datadir = D:\mysql-5.6.15-win32\mysql-5.6.15-win32\data

# port = 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

[WinMySQLAdmin]

server=D:\mysql-5.6.15-win32\mysql-5.6.15-win32\bin\mysqld.exe

#解压根目录\bin\mysqld.exe

4.环境变量配置

你的解压目录

path后面加上D:\mysql-5.6.15-win32\mysql-5.6.15-win32\bin;

5.找到C:\Windows\System32\cmd.exe,右键-以管理员身份运行(很重要,否则有权限问题,会报错:Install/Remove of the Service Denied!),进入mysql解压目录bin子目录下,输入mysqld install MySQL --defaults-file="你的解压根目录\my.ini",提示:

Service successfully installed.

6.启动、停止、移出MYSQL服务(建议不要使用服务进行启动,而是在我的电脑中的管理中启动服务)

启动MYSQL服务:net start mysql

停止MYSQL服务:net stop mysql

移出mysql服务:mysqld-nt --remove

7.修改root密码:(没有使用此部而是参考了http://zhidao.baidu.com/link?url=sJ6KtAfJJga_R5YdXiIQ-Tmd7VVIfw7PQ3EJ1Kq8dNKKKPU4hTNnYYdeXDHUen9NJYslfwDxdsky6zBy068P4_)

运行中输入cmd ,跳到安装目录/bin下,

D:\ProgramFiles\mysql5614win32\bin>mysql -uroot

D:\ProgramFiles\mysql5614win32\bin>show databases;

D:\ProgramFiles\mysql5614win32\bin>use mysql;

D:\ProgramFiles\mysql5614win32\bin>UPDATE user SET password=PASSWORD("root") WHERE user='root';

D:\ProgramFiles\mysql5614win32\bin>FLUSH PRIVILEGES;

D:\ProgramFiles\mysql5614win32\bin>QUIT

FLUSH PRIVILEGES:强制让MySQL重新加载权限,即刻生效

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值