首页 > 数据库技术 > 详细

mysql相关的设置

时间:2014-09-11 16:43:02      阅读:238      评论:0      收藏:0      [点我收藏+]

首先my sql有个配置文件 my.ini,该文件在mysql的安装包中。

 

1.在该文件中可以设置mysql的最大连接数,

# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=1000

 

2.编码类型, 有两个地方需要设置

[client]

port=3306

[mysql]

default-character-set=gbk

 

# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=gbk

 

 

3.数据存放的路径。#Path to installation directory. All paths are usually resolved relative to this.
basedir="G:/Mysql/"

#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.1/Data/"

 

 

mysql的错误日志:位于 数据存放路径下的  XXX.ERR文件

 

 

在做了配置方面的修改后,需要重启mysql的服务。  windows下进入服务管理的命令是services.msc

mysql相关的设置

原文:http://www.cnblogs.com/bpdxn/p/3966614.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!