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 3599278
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:20:53+00:00 2026-05-18T20:20:53+00:00

In my MySQL installation I have one InnoDB database that I know will grow

  • 0

In my MySQL installation I have one InnoDB database that I know will grow very large so I have decided to move it to its own disk. I was hoping to do this by moving the files to the other disk and then create a symlink but I run into errors!

This is what I have done:

1) In my.cnf I have set

[mysqld]
innodb_file_per_table

(This works, I have one .ibd per .frm in the database folder.)

2)I have checked if symlinks are ok with SHOW VARIABLES LIKE "have_symlink";

(I know that the documentation says:

Symlinks are fully supported only for
MyISAM tables. For files used by
tables for other storage engines, you
may get strange problems if you try to
use symbolic links.

But I need foreign keys…)

3) I moved the database folder and created a symlink.

4) Restarted mysql and tried:

 mysql> USE db_name
 Database changed
 mysql> SHOW TABLES;
 ERROR 1018 (HY000): Can't read dir of './db_name/' (errno: 13)
 mysql> exit
 user@comp# perror 13
 OS error code  13:  Permission denied

symlink is (as expected) lrwxrwxrwx mysql mysql db_name -> /path-to/db_name/

database folder permissions are drwx------ mysql mysql

all file permissions are -rw-rw---- mysql mysql

I am using Ubuntu 10.04 Server with MySQL 5.1.41 (default from apt).

Have any of you done this successfully?

  • 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-18T20:20:53+00:00Added an answer on May 18, 2026 at 8:20 pm

    I’m not sure your solution is the best idea. See my post here:

    http://www.mysqlperformanceblog.com/2010/12/25/spreading-ibd-files-across-multiple-disks-the-optimization-that-isnt/

    There is also this other thread here:

    Innodb; multiple data directories

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

Sidebar

Related Questions

In my MySQL installation I have one InnoDB database that I know will grow
I have a pretty much default installation on mysql on Windows 2003. I am
I have a mysql database with 4 different databases. 1 of the databases has
Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what
I'm trying to modify the UI of a Redmine installation (Redmine 0.7.3.devel.2093 (MySQL)). When
MySQL column > sdate, edate ( its 2 column). sdate is start date for
I have a Solution with a Project which uses a MSSQL Database and generated
MySQL has this incredibly useful yet proprietary REPLACE INTO SQL Command. Can this easily
mysql_real_escape_string and addslashes are both used to escape data before the database query, so
MySQL specifies the row format of a table as either fixed or dynamic, depending

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.