Mysql安装配置

 

Mysql安装配置

1.       下载mysql5.5.18绿色版,mysql下载官网:mysql.com。

2.       解压到目录D:\mysql5.5.18。

3.       将mysql添加到环境变量path:

;D:\ mysql5.5.18\bin

4.       修改端口和字符集:在安装目录下找到my.ini配置文件打开编辑,把端口改成3306(注:安装的时候默认就是3306),并且把服务器的字符集改成utf8(注:注意版本),如下:

# The following options will be passed to all MySQL clients

[client]

#password   = your_password

port               = 3306

socket           = /tmp/mysql.sock

default-character-set=gbk

 

# Here follows entries for some specific programs

 

# The MySQL server

[mysqld]

port               = 3306

socket           = /tmp/mysql.sock

skip-locking

key_buffer_size = 256M

max_allowed_packet = 1M

table_open_cache = 256

sort_buffer_size = 1M

read_buffer_size = 1M

read_rnd_buffer_size = 4M

myisam_sort_buffer_size = 64M

thread_cache_size = 8

query_cache_size= 16M

# Try number of CPU's*2 for thread_concurrency

thread_concurrency = 8

default-character-set=utf8

log_bin_trust_function_creators = 1

注意:my.ini配置文件一定要有。

5.       mysql数据库安装好后,找到其安装目录下data文件夹,将数据库文件拷入data文件夹内。然后启动其安装目录下bin文件夹里面的mysqld。

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值