Chinaunix首页 | 论坛 | 博客
  • 博客访问: 100723
  • 博文数量: 32
  • 博客积分: 1370
  • 博客等级: 中尉
  • 技术积分: 316
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-29 12:28
文章分类

全部博文(32)

文章存档

2009年(14)

2008年(5)

2006年(13)

我的朋友

分类: Mysql/postgreSQL

2006-08-11 18:51:49

using file for the tablesspace:

To set up the InnoDB tablespace files, use the innodb_data_file_path option in the [mysqld] section of the my.cnf option file.

        innodb_data_file_path=datafile_spec1[;datafile_spec2]...
 full datafile_spec1 syntax: file_name:file_size[:autoextend[:max:max_file_size]]
 
        sample1: single tablespace:
[mysqld]
innodb_data_file_path=ibdata1:10M:autoextend

This setting configures a single 10MB data file named ibdata1 that is auto-extending. No location for the file is given, so the default is the MySQL data directory.

sample2: multi-tablespaces:

tablespace containing a fixed-size 50MB data file named ibdata1 and a 50MB auto-extending file named ibdata2 in the data directory can be configured like this:

[mysqld]
innodb_data_file_path=ibdata1:50M;ibdata2:50M:autoextend

 

notice:

The autoextend attribute and those following can be used only for the last data file in the innodb_data_file_path line. The increment is 8MB at a time.

阅读(844) | 评论(0) | 转发(0) |
0

上一篇:朋友

下一篇: more Mysql indexes--from mysql ab

给主人留下些什么吧!~~