首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > Mysql InnoDB TABLESPACE Set Up [二] using raw disk
【标  题】:Mysql InnoDB TABLESPACE Set Up [二] using raw disk
【关键字】:Mysql,InnoDB,TABLESPACE,Set,Up,using,raw,disk
【来  源】:http://www.cublog.cn/u/22323/showart.php?id=155922

Mysql InnoDB TABLESPACE Set Up [二] using raw disk

Using Raw Devices for the Tablespace:

 

In MySQL 5.0,can use raw disk partitions as tablespace data files.

step1:

       When you create a new data file, you must put the keyword newraw immediately after the data file size in innodb_data_file_path. The partition must be at least as large as the size that you specify.

[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:3Gnewraw;/dev/hdd2:2Gnewraw

step2:

       you start the server, InnoDB notices the newraw keyword and initializes the new partition. However, do not create or change any InnoDB tables yet.[notice]

 

step3:

After InnoDB has initialized the new partition, stop the server, change newraw in the data file specification to raw:

[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:5Graw;/dev/hdd2:2Graw

step4:

       Then restart the server and InnoDB allows changes to be made.

 

[notice]

On Windows, you can allocate a disk partition as a data file like this:

[mysqld]

innodb_data_home_dir=

innodb_data_file_path=//./D::10Gnewraw

The //./ corresponds to the Windows syntax of \\.\ for accessing physical drives.

MySQL帐户管理:【上一篇】
鸡呼吸道疾病综合征:【下一篇】
【相关文章】
  • MySQL帐户管理
  • mysql 数据备份
  • 3550 without using "ip default-network"
  • pache+mysql+php
  • 简单配置-让服务端mysql 被其他机器远程控制调用
  • 精炼统一过程(EssUP):UML之父新作,轻量UP
  • [水晶報表+mysql]MySqlException8/15
  • Spring Hibernate Template Save Or Update
  • 如何在 Delphi 与 .NET Web Service 之间互相传输DataSet (1)
  • 如何在 Delphi 与 .NET Web Service 之间互相传输DataSet (2)
  • 【随机文章】
  • 利用 Linux 群集进行不间断认证
  • 传说中的web2.0色系?
  • 大杂脍
  • Windows 98安全防范基础教程
  • 小巧实用:我的桌面天气秀
  • tomcat中的开发应用系统常见的配置
  • jsp中框架页面请求中的中文编码问题
  • 除了抱怨还是抱怨
  • 注册表常用键值意义
  • 维护 Eclipse 插件
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.