LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-17-2003, 06:37 PM   #1
Robin01
Member
 
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..

Robin
 
Old 11-17-2003, 06:49 PM   #2
Mikhail_16
Member
 
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. http://www.mysql.com/doc/en/MySQL_binaries.html
 
  


Reply


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 06:42 AM
mySQL my.cnf (moving default datadir) not working! madfitz Linux - Newbie 4 02-09-2006 08:15 PM
What is the difference between WE/WM and DE? eBopBob Linux - Newbie 3 12-12-2004 07:26 AM
tell me the difference wood Programming 8 01-31-2004 03:17 AM
/usr/local/games/datadir? boku Programming 1 11-27-2002 09:34 AM


All times are GMT -5. The time now is 10:10 PM.

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