List:General Discussion« Previous MessageNext Message »
From:Victoria Reznichenko Date:June 27 2002 8:44am
Subject:Re: How to change default mysql data-dir in Linux server ?
View as plain text  
va,
Wednesday, June 26, 2002, 10:26:01 PM, you wrote:

vk> I have installed MySQL 4.0 on Linux box using RPM. Everything is working fine, but
> the database directory is set to 

vk> /var/lib/mysql.  So everytime I create a database it is getting created on
vk> /var/lib/mysql.  What I would like to have is to create database under
vk> /var/lib/mysql/data_dir, where as 'data-dir' stands for database directory. I
> beliebe I have to change configuration file. How can I do that... where can I find such
> configuration file for a
vk> typical installation.

You can run mysqld with --database=/path/to/dir option or specify
database=/path/to/dir in my.cnf file




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   Victoria.Reznichenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com



Thread
How to change default mysql data-dir in Linux server ?va ku27 Jun
  • RE: How to change default mysql data-dir in Linux server ?Peter Lovatt27 Jun
  • Re: How to change default mysql data-dir in Linux server ?Victoria Reznichenko27 Jun
RE: How to change default mysql data-dir in Linux server ?va ku27 Jun
RE: How to change default mysql data-dir in Linux server ?va ku27 Jun
  • RE: How to change default mysql data-dir in Linux server ?Peter Lovatt27 Jun
RE: How to change default mysql data-dir in Linux server ?va ku27 Jun