![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I used to move my databases that were based on MyISAM, by simply moving the directory to where I wanted it to be, and then creating a symlink from /var/lib/mysql to the new location. I am working in creating a appx. 40 GB database and decided to use InnoDB, to avoid the horrors of repairing tables. When I looked into /var/lib/mysql/mynewproject, to my surprise I found that the files are empty and, seemingly, innodb files were right under /var/lib/mysql. -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:22 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:20 ib_logfile1 -rw-rw---- 1 mysql mysql 329252864 Jan 22 02:22 ibdata1 My root partition is not big enough to hold all that stuff. So, how would I create or move them elsewhere? It would seem that some options are available under my.cnf, but I would really like to be able to specify that per-database, is that possible? Thanks i |
#3
| |||
| |||
|
|
I used to move my databases that were based on MyISAM, by simply moving the directory to where I wanted it to be, and then creating a symlink from /var/lib/mysql to the new location. I am working in creating a appx. 40 GB database and decided to use InnoDB, to avoid the horrors of repairing tables. |
|
When I looked into /var/lib/mysql/mynewproject, to my surprise I found that the files are empty and, seemingly, innodb files were right under /var/lib/mysql. -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:22 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:20 ib_logfile1 -rw-rw---- 1 mysql mysql 329252864 Jan 22 02:22 ibdata1 |
|
My root partition is not big enough to hold all that stuff. So, how would I create or move them elsewhere? |
#4
| |||
| |||
|
|
Ignoramus3188 <ignoramus3188 (AT) NOSPAM (DOT) 3188.invalid> wrote: I used to move my databases that were based on MyISAM, by simply moving the directory to where I wanted it to be, and then creating a symlink from /var/lib/mysql to the new location. I am working in creating a appx. 40 GB database and decided to use InnoDB, to avoid the horrors of repairing tables. Unfortunately you didn't decide to RTFM too ... When I looked into /var/lib/mysql/mynewproject, to my surprise I found that the files are empty and, seemingly, innodb files were right under /var/lib/mysql. -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:22 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 Jan 22 02:20 ib_logfile1 -rw-rw---- 1 mysql mysql 329252864 Jan 22 02:22 ibdata1 Yeah. Just as configured (by defaults). My root partition is not big enough to hold all that stuff. So, how would I create or move them elsewhere? RTFM --innodb-file-per-table XL |
#5
| |||
| |||
|
|
How is InnoDB working on 5.1? Any major bugs? |
![]() |
| Thread Tools | |
| Display Modes | |
| |