mysql绿色安装配置
MySQL5 绿色版安装教程
内容提要:mysql-noinstall-5.0.67-win32.zip的安装教程
一、下载,这里使用绿色解压缩版
http://mysql.west.mirrors.airband.net/Downloads/MySQL-5.0/mysql-noinstall-5.0.67-win32.zip
二、配置MySQL5的参数
1、解压缩绿色版软件到D:/mysql-5.0.67-win32
2、修改D:/mysql-5.0.67-win32/my-small.ini文件内容,添加红色内容
[mysqld]
port = 3306
socket = /tmp/mysql.sock
default-character-set=gbk
port = 3306
socket = /tmp/mysql.sock
default-character-set=gbk
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
3、安装MySQL5的服务,服务名自己定义为MySQL5.删除以前服务sc delete serverName
1)、在DOS窗口下进入D:/mysql-5.0.67-win32/bin目录
2)、执行安装MySQL服务名的命令:
D:/mysql-5.0.67-win32/bin>mysqld –install MySQL5 –defaults-file=D:/mysql-5.0.67-win32/my-small.ini
Service successfully installed.
3)、启动MySQL5服务
D:/mysql-5.0.67-win32/bin>net start mysql5
MySQL5 服务正在启动 .
MySQL5 服务无法启动。
MySQL5 服务正在启动 .
MySQL5 服务无法启动。
4)、登陆MySQL5服务器
D:/mysql-5.0.67-win32/bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 1
Server version: 5.0.67-community MySQL Community Edition (GPL)
Type ‘help;’ or ‘/h’ for help. Type ‘/c’ to clear the buffer.
mysql>
修改root密码,这是我改成root:
mysqladmin -u root password “root”
使用管理工具: Navicat
下载地址:http://www.w2blog.net/download/navicat/Navicat(8.0.20)+Patch.rar