Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7431409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:17:31+00:00 2026-05-29T09:17:31+00:00

Suppose a mysql 5.5 server uses the following configuration for storing innodb data innodb_data_file_path

  • 0

Suppose a mysql 5.5 server uses the following configuration for storing innodb data

innodb_data_file_path =  /var/lib/mysql/ibdata:100G;/disk2/mysql/ibdata2:1000M:autoextend

at some point later in time, if the database has already been populated for a while. I wish to add an extra path in this innodb_data_file_path because I’m running out of disks space and a new disk is added. Is this possible? How can it be done?
Would something like the following work?

innodb_data_file_path =  /var/lib/mysql/ibdata:100G;/disk2/mysql/ibdata2:XXXG;/disk3/mysql/ibdata3:1000M:autoextend
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:17:31+00:00Added an answer on May 29, 2026 at 9:17 am

    You have it explained here . When you don’t specify path in your innodb_data_home_dir you can put absolute path for innodb_data_file_path, and you can have multiple files there in format file_name:file_size[:autoextend[:max:max_file_size]] separated by semicolon.

    Also, you can add new data file for existing database. Stop mysql, change innodb_data_file_path and start it again.

    One note: if you had configuration something like:

    innodb_data_file_path=/var/lib/mysql/file1:10M:autoextend

    and you want to add new file like

    innodb_data_file_path=/var/lib/mysql/file1:10M;/bigmedia/file2:1800M:autoextend

    it might happen that you will receive errors when you start mysql (not able to initialize InnoDB engine)…error might say something like: “file1 contains xx pages but in my.cnf it says xxx pages” this means that you will have to change size for file1 in my.cnf to it’s actuall size (it overgrew it’s size specified in config file…which is ok when it is the only file, but mysql expects it to be exactly the specified size and to grow second file when you have second file). It is easy to guess, just 1M increments. So, you will end up with config like:

    innodb_data_file_path=/var/lib/mysql/file1:23M;/bigmedia/file2:1800M:autoextend
    

    Be careful with this and try not to destroy your data 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I do the following: I create a MySQL database, and populate it with
Suppose I have MySQL server running on one machine, a Microsoft SQL Server running
Suppose I am executing several queries on the server using mysql_query . The results
I'm trying to return json content read from MySQL server. This is supposed to
Suppose I have a datetime column in MySQL. How do I select all that
Suppose you have a messaging system built in PHP with a MySQL database backend,
I've 2 mysql select statements, suppose these are my queries & their result :
Suppose that I have a test server with a large group of test accounts.
I've a SmartGWT application which interacts with a mysql database using rpc services. Suppose
I suppose that I work with these MySQL control structures (see below) in absolutely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.