绿色版mysql安装和启动

首先要说明的是,我主要讲的是windows下myslq社区版版本,有msi安装版的也有绿色版即zip压缩包。这里说的是zip压缩包。

下载地址:http://dev.mysql.com/downloads/mysql/ 

1.首先确定你的系统是多少位的操作系统,然后下载相应的压缩包。

2.解压压缩包,当然你可以将压缩包解压到磁盘上的任何一个地方。

3.配置环境变量,将你解压的目录配置进去,比如我的是:D:\software\mysql-5.6.17-winx64\bin,目的就是当你在dos窗口敲相应的命令时,widows会搜索你配置的环境变量中      的路径,找到相应的可执行程序执行。

4.配置自己的option file,这个是在mysql官网中有说明,noinstall (免安装绿色版)版本必须要配置自己的,配置如下:

[mysqld]
# set basedir to your installation path
basedir=D:\\software\\mysql-5.6.17-winx64
# set datadir to the location of your data directory
datadir=D:\\software\\mysql-5.6.17-winx64\\data
保存文件名为my.ini,将此文件放到解压文件的目录下。

5.启动mysql:mysqld --install,打印信息如下:

C:\Users\a>mysqld --console
2014-04-17 14:06:17 0 [Warning] TIMESTAMP with implicit DEFAULT value is depreca
ted. Please use --explicit_defaults_for_timestamp server option (see documentati
on for more details).
2014-04-17 14:06:17 11512 [Note] Plugin 'FEDERATED' is disabled.
2014-04-17 14:06:17 11512 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-04-17 14:06:17 11512 [Note] InnoDB: The InnoDB memory heap is disabled
2014-04-17 14:06:17 11512 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-04-17 14:06:17 11512 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-04-17 14:06:17 11512 [Note] InnoDB: Not using CPU crc32 instructions
2014-04-17 14:06:17 11512 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-04-17 14:06:17 11512 [Note] InnoDB: Completed initialization of buffer pool
2014-04-17 14:06:17 11512 [Note] InnoDB: Highest supported file format is Barracuda.
2014-04-17 14:06:17 11512 [Note] InnoDB: 128 rollback segment(s) are active.
2014-04-17 14:06:17 11512 [Note] InnoDB: Waiting for purge to start
2014-04-17 14:06:17 11512 [Note] InnoDB: 5.6.17 started; log sequence number 1626107
2014-04-17 14:06:17 11512 [Note] Server hostname (bind-address): '*'; port: 3306
2014-04-17 14:06:17 11512 [Note] IPv6 is available.
2014-04-17 14:06:17 11512 [Note]   - '::' resolves to '::';
2014-04-17 14:06:17 11512 [Note] Server socket created on IP: '::'.
2014-04-17 14:06:17 11512 [Note] Event Scheduler: Loaded 0 events
2014-04-17 14:06:17 11512 [Note] mysqld: ready for connections.
Version: '5.6.17'  socket: ''  port: 3306  MySQL Community Server (GPL)


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值