LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-17-2009, 05:54 PM   #1
foampile
Member
 
Registered: Feb 2009
Posts: 50

Rep: Reputation: 15
Question running mysql_install_db


i installed mysql on Fedora 9 using yum.

when i tried to follow these post-install instructions:
http://dev.mysql.com/doc/refman/5.0/...nstall-db.html
i was stuck because i cannot find what to use as --basedir.

e.g.
[/var/lib/mysql @ 17:51:44]>mysql_install_db --user=mysql --basedir=/usr/bin --datadir=/opt/mysql/mysql/data
FATAL ERROR: Could not find my_print_defaults inside --basedir

When using --basedir you must point either into a MySQL binary
distribution directory or a compiled tree previously populated
by 'make install'
so, when i look for 'my_print_defaults'
[/var/lib/mysql @ 17:31:32]>find / -name 'my_print_defaults' -print
/usr/bin/my_print_defaults
i still get the same error saying that it can't find my_print_defaults in basedir but it is there. is this a bad error msg or something ?
 
Old 03-18-2009, 01:53 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
basedir means, where you have installed(directory) mysql
 
Old 03-18-2009, 11:38 AM   #3
foampile
Member
 
Registered: Feb 2009
Posts: 50

Original Poster
Rep: Reputation: 15
i installed it using yum, i.e. let it choose the dir.

i tried every dir where i could find reference to mysql but they all fail:

find / -name 'mysql' -print

/usr/share/mysql
/usr/bin/mysql
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/DBD/mysql
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/DBD/mysql
/usr/lib/mysql
/var/lib/mysql
 
  


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
Problems installing and running Frostwire on Acer One running Linpus Linux ricky1981 Linux - Newbie 1 12-19-2008 09:24 AM
mysql - mysql_install_db (error) n0p.cracker Linux - Server 1 08-04-2008 01:23 PM
Getting Smart running on Suse 10.1 on IBM T22 laptop running KDE 3.5.1 headdeball Linux - Desktop 2 01-20-2007 06:44 AM
mysql mysql_install_db problems xrado Slackware 3 05-09-2006 02:10 AM
mysql_install_db hus Linux - Newbie 1 05-11-2005 01:33 AM


All times are GMT -5. The time now is 04:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration