• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Mysql装配配置

mysql 搞代码 7年前 (2018-06-02) 125次浏览 已收录 0个评论

mysql安装配置

 

Mysql安装配置

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

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

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

;D:/ mysql5.5.18/bin

Mysql装配配置

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。

 

 

 


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Mysql装配配置
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址