Adding a file in innodb

From Wikitech
Revision as of 19:39, 26 June 2004 by Shaihulud (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

edit /etc/my.cnf

at line innodb_data_file_path = /usr/local/mysql/data/ibdata1:20000M:autoextend

add the second file like this :

innodb_data_file_path = /usr/local/mysql/data/raid1/ibdata2:60000M;/usr/local/mysql/data/ibdata1:20000M:autoextend

Nota : the autoextend file must be the last on the line

  • stop mysql : mysqladmin -u root -p shutdown
  • start mysql : mysqld_safe

It could take some time, time to rebuild the innodb space. You can follow the process in .err file

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox