首页 > 数据库 > MySQL > 正文

绿色版 mysql 安装配置

2024-07-24 12:43:57
字体:
来源:转载
供稿:网友
一、下载MySQL
http://www.mysql.org/downloads
我下载的是mysql-noinstall-5.0.67-win32.zip
二、安装过程
 1、解压缩 mysql-noinstall-5.0.67-win32.zip 到一个C盘,重新命名为 MySQL5 。
      假定MYSQL_HOME=C:/ MySQL5
 2、编辑mysql的运行配置文件my.ini,如果没有,可以拿my-medium.ini复制然后更名成 my.ini 
复制代码 代码如下:

# Example MySQL config file for medium systems.  
#  
# This is for a system with little memory (32M - 64M) where MySQL plays  
# an important part, or systems up to 128M where MySQL is used together with  
# other programs (such as a web server)  
#  
# You can copy this file to  
# /etc/my.cnf to set global options,  
# mysql-data-dir/my.cnf to set server-specific options (in this  
# installation this directory is C:/mysql/data) or  
# ~/.my.cnf to set user-specific options.  
#  
# In this file, you can use all long options that a program supports.  
# If you want to know which options a program supports, run the program  
# with the "--help" option.  

# The following options will be passed to all MySQL clients  
[client]  
#password   = your_password 
port        = 3306 
socket      = /tmp/mysql.sock  

# Here follows entries for some specific programs  

# The MySQL server  
[mysqld]  
basedir = "C:/MySQL5" 
datadir = "C:/MySQL5/data" 
default-character-set=utf8 

port        = 3306 
socket      = /tmp/mysql.sock  
skip-locking  
key_buffer = 16M 
max_allowed_packet = 1M 
table_cache = 64 
sort_buffer_size = 512K 
net_buffer_length = 8K 
read_buffer_size = 256K 
read_rnd_buffer_size = 512K 
myisam_sort_buffer_size = 8M 

# Don't listen on a TCP/IP port at all. This can be a security enhancement,  
# if all processes that need to connect to mysqld run on the same host.  
# All interaction with mysqld must be made via Unix sockets or named pipes.  
# Note that using this option without enabling named pipes on Windows  
# (via the "enable-named-pipe" option) will render mysqld useless!  
#   
#skip-networking  

# Disable Federated by default  
skip-federated  

# Replication Master Server (default)  
# binary logging is required for replication  
log-bin=mysql-bin  
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表