Rechercher dans le manuel MySQL
8.12.2 Using Symbolic Links
[+/-]
You can move databases or tables from the database directory to other locations and replace them with symbolic links to the new locations. You might want to do this, for example, to move a database to a file system with more free space or increase the speed of your system by spreading your tables to different disks.
For InnoDB
tables, use the DATA
DIRECTORY
clause on the CREATE
TABLE
statement instead of symbolic links, as
explained in Section 15.6.3.6, “Creating a Tablespace Outside of the Data Directory”. This new
feature is a supported, cross-platform technique.
The recommended way to do this is to symlink entire database
directories to a different disk. Symlink
MyISAM
tables only as a last resort.
To determine the location of your data directory, use this statement:
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-symbolic-links.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.