![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi... According to the MySQL 5.0 documentation, for setting up advanced innodb, the following is stated: An advanced my.cnf example. Suppose that you have a Linux computer with 2GB RAM and three 60GB hard disks at directory paths /, /dr2 and /dr3. The following example shows possible configuration parameters in my.cnf for InnoDB. [mysqld] # You can write your other MySQL server options here # ... innodb_data_home_dir = # # Data files must be able to hold your data and indexes innodb_data_file_path = /ibdata/ibdata1:2000M;/dr2/ibdata/ibdata2:2000M:autoextend OK....let's assume that I have 2-tables, X and Y, and I want to create them, BUT have X point to the ibdata1 path and Y to ibdata2. According to the CREATE TABLE doc, the DATA DIRECTORY option only works for MyISAM. Anybody know how to do this using innodb? Thanks, Joe | |||
| Advertisements |
| | #2 | ||
| "JoeT" <trubisz@yahoo.com> wrote: > ... let's assume that I have 2-tables, X and Y, and I want to create > them, BUT have X point to the ibdata1 path and Y to ibdata2. According > to the CREATE TABLE doc, the DATA DIRECTORY option only works for > MyISAM. > > Anybody know how to do this using innodb? You cannot do that. InnoDB decides how it distributes data over tablespaces. OTOH you can use --innodb-file-per-table to have InnoDB create a separate tablespace for each table. IMHO there is no particularly good reason for doing that anyway. YMMV. XL -- Axel Schwenke, Senior Software Developer, MySQL AB Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ MySQL User Forums: http://forums.mysql.com/ | |||
| | #3 | ||
| Axel Schwenke wrote: > you can use --innodb-file-per-table to have > InnoDB create a separate tablespace for each table. IMHO there > is no particularly good reason for doing that anyway. YMMV. IMHO the best reason for using innodb-file-per-table is that when you drop a table, the filesystem space is released. If you put all your InnoDB tables in one filespace file, the only way to get the file to shrink is to dump all your other InnoDB tables, remove the filespace file, and re-import the tables. Regards, Bill K. | |||
| | #4 | ||
| Actually, having done really huge systems (we are talking about very high speed/high volume OLTP systems), I can utilize the advantages of the hardware as well. So, it becomes a major performance advantage. Joe | |||
| | #5 | ||
| "JoeT" <trubisz@yahoo.com> wrote: > Actually, having done really huge systems (we are talking about very > high speed/high volume OLTP systems), I can utilize the advantages of > the hardware as well. So, it becomes a major performance advantage. Ahh. I guessed that already. My experience as well as the experience of MySQL customers shows, that multiple disks are best used as RAID. The most appropriate RAID level is RAID-10 (a stripe of mirrors). If you need the last performance kick, you might go for RAID-0. However you should avoid RAID-5 because it has very bad write performance. Compared to hand-tuned distribution of data on multiple disks, RAID has many advantages - it's simple - it's self-adjusting - no need to change the disk layout if your data distribution or access pattern changes - it's easily extensible There is a nice bluprint from SUN concerning that issue: <http://www.sun.com/blueprints/1000/layout.pdf> I know the old Oracle rule-of-thumb "separate data and indizes, put in different tablespaces, put each tablespace onto it's own disk" - but IMNSHO this rule is pretty outdated in the time of massively parallelized storage systems. XL -- Axel Schwenke, Senior Software Developer, MySQL AB Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ MySQL User Forums: http://forums.mysql.com/ | |||
| Featured Websites | ||||
|
![]() |
| Tags: mysql, partition, tables |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL backup but only soem tables with a prefix | Josselin | Database | 2 | 07-01-2007 7:27 PM |
| LARGE tables in mysql-standard-5.0.18-linux-i686? | Ignoramus1130 | Database | 3 | 07-01-2007 7:01 PM |
| Is it possible to restore MYSQL tables with only FRM files | Rock2005 | Database | 0 | 05-31-2007 8:42 PM |
| docs about access tables, operation tables, volume tables | BradPitt | Database | 0 | 05-31-2007 8:42 PM |
| Export MS Access tables with random autonumber fields to MySQL | GGL | Database | 0 | 05-31-2007 8:39 PM |
| Featured Websites | ||||
|