Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-17-2003, 05:37 PM   #1
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
difference between localstatedir and datadir

Hello everybody,

Before installing mysql, i thought i do some research..
came across few key words that i couldn't understand....
and i was hoping someone could help me with this

my plans is to install mysql in /wwwroot/mysql
and i like to maintain the databases in the folder var/mysqldata

./configure --prefix=/wwwroot/mysql --localstatedir=/var/mysqldata

./configure --prefix=/wwwroot/mysql --datadir=/var/mysqldata

between the localstatedir and datadir... which configuration saves or keeps the database that you create...

looked this up but it just got more confusing.
can someone explain the difference between the 2 for me, please..

Old 11-17-2003, 05:49 PM   #2
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
datadir is where your tables are stored. since you are installing it onto linux, you only need datadir. the flags vary depending on your OS.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start MySQL with a non-default datadir nifflerX Linux - Enterprise 9 02-28-2006 05:42 AM
mySQL my.cnf (moving default datadir) not working! madfitz Linux - Newbie 4 02-09-2006 07:15 PM
What is the difference between WE/WM and DE? eBopBob Linux - Newbie 3 12-12-2004 06:26 AM
tell me the difference wood Programming 8 01-31-2004 02:17 AM
/usr/local/games/datadir? boku Programming 1 11-27-2002 08:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration