Новости
Документация
Download
Webboard
Поиск
FAQ/ЧаВо
Обратная связь




MySQL.RU - Webboard



Вернуться
Symbolic link under Windows (vitek) 27/03/2002 - 08:13:05
      Re: Symbolic link under Windows (Василий) 27/03/2002 - 13:06:59

> Original message text:
> From: vitek - 27/03/2002 - 08:13:05
> Subject:Symbolic link under Windows
> -----------------
> Какую фишку прикольную сегодня обнаружил:
>
> --------------------------------------------------------
> 2.6.2.5 Splitting Data Across Different Disks on Windows
>
> Beginning with MySQL Version 3.23.16, the mysqld-max and mysql-max-nt servers in the MySQL distribution are compiled with the -DUSE_SYMDIR option. This allows you to put a database on different disk by adding a symbolic link to it (in a manner similar to the way that symbolic links work on Unix).
>
> On Windows, you make a symbolic link to a database by creating a file that contains the path to the destination directory and saving this in the `mysql_data' directory under the filename `database.sym'. Note that the symbolic link will be used only if the directory `mysql_data_dir\database' doesn't exist.
>
> For example, if the MySQL data directory is `C:\mysql\data' and you want to have database foo located at `D:\data\foo', you should create the file `C:\mysql\data\foo.sym' that contains the text D:\data\foo\. After that, all tables created in the database foo will be created in `D:\data\foo'.
>
> Note that because of the speed penalty you get when opening every table, we have not enabled this by default even if you have compiled MySQL with support for this. To enable symlinks you should put in your my.cnf or my.ini file the following entry:
>
> [mysqld]
> use-symbolic-links
>
> In MySQL 4.0 we will enable symlinks by default. Then you should instead use the skip-symlink option if you want to disable this.
>
> --------------------------------------------------------
>
> Я только мечтал, а оно уже оказывается давно есть.
> Век живи, век учись.
>


From: Василий - 27/03/2002 - 13:06:59
Subject:Symbolic link under Windows
-----------------
Да уж.
Особенно при том, что как раз на днях вопрос такой был - как хранить данные не в стандартной дир-ии.

Спасибо за информацию.


[Это сообщение - спам!]

Последние сообщения из форума

Уважаемые посетители форума MySQL.RU!
Убедительная просьба, прежде чем задавать свой вопрос в этом форуме, обратите внимание на разделы:
- ответы на наиболее часто задаваемые вопросы - FAQ
- раздел документация
- раздел поиск по сообщениям форума и документации
Также, старайтесь наиболее подробно указывать свою ситуацию (версию операционной системы, версию MySQL, версию программного обеспечения, по которому возникает вопрос, текст возникающих ошибок, и др.)
Помните, чем конкретнее Вы опишете ситуацию, тем больше шансов получить реальную помощь.
 Имя:
 E-mail:
 Тема:
 Текст:
Код подтверждения отправки: Code
2398



РЕКЛАМА НА САЙТЕ
  Создание сайтов | |