Home >Database >Mysql Tutorial >mysql绿色版装配

mysql绿色版装配

WBOY
WBOYOriginal
2016-06-07 16:15:421604browse

mysql绿色版安装 ? 1. 下载非安装版 zip http://dev.mysql.com/downloads/mysql/ ? 2. 解压到某个目录,假设为$mysqlHome$ ? 3. 拷贝my-default.ini重命名为my.ini(保持良好习惯,拷贝修改保存原文件) basedir = mysql home 目录 datadir = 数据目录,默认

mysql绿色版安装

?

1. 下载非安装版 zip

http://dev.mysql.com/downloads/mysql/

?

2. 解压到某个目录,假设为$mysqlHome$

?

3. 拷贝my-default.ini重命名为my.ini(保持良好习惯,拷贝修改保存原文件)

basedir = mysql home 目录

datadir = 数据目录,默认是在?$mysqlHome$/data

?

4. 添加mysql为系统服务

mysqld --install mysql --defaults-file=C:\MySQL5\my.ini

mysqld --remove?mysql?

?

5. 启动服务

#> net start?mysql?

#> net stop?mysql?

?

6. 命令行连接

mysql -u root (默认root密码为空)或 mysql -u root database_name

设置root密码:SET PASSWORD FOR root=PASSWORD('new_password');

?

7. 下载客户端工具

推荐 navicat,下载地址?http://www.navicat.com.cn/download/navicat-for-mysql

?

参考资料

1. 安装绿色mysql http://johnnyhg.iteye.com/blog/245544

2. 安装1067错误?http://database.51cto.com/art/201108/285375.ht?

?

?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn