LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-03-2004, 10:05 PM   #1
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Rep: Reputation: 30
mysqld_safe ends


I'm trying to get mySQL to work with my website and I'm starting off and I was reading a tutorial and it first told me to test the database by doing the mysqld_safe file. mySQL starts but then it ends in like 3 seconds before I can execute the mysqladmin file to put a pword on the root user so that I can access the database and do things. mySQL works on another computer but not this one (meaning I can get past this part lol )
 
Old 04-04-2004, 03:09 AM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 437

Rep: Reputation: 30
So have you gone through the README in the MySQL install directory?

I.e.

1. Create group "mysql" (groupadd mysql)
2. Create user "mysql" and add to mysql group (useradd -g mysql mysql -d /dev/null)
3. Run (from source base dir) ./scripts/mysql_install_db
4. chown -R root .
5. chown -R mysql data
6. chgrp -R mysql .
7. ./bin/mysqld_safe --user=mysql &

I used this today and it worked perfectly
 
Old 04-04-2004, 10:36 AM   #3
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
the user and group automatically was made. I tried making them just to make sure they were made and they were. I didn't make the database yet I'll try your directions and see if they work
 
Old 04-04-2004, 10:42 AM   #4
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
well I did them all except five it said there wasn't a file called data. what data are you talking about? and it still ends too quickly like five seconds
 
Old 04-04-2004, 02:49 PM   #5
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 437

Rep: Reputation: 30
Ahhh well theres ya problem - in the base directory of the MySQL source theres a data directory, without that MySQL has nothing to run off... you might want to download the install again me thinks
 
Old 04-04-2004, 05:23 PM   #6
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
ight well can someone give me a direct link t hat will work I have Slackware and I used their package but w/e
 
  


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
files the ends with .c maginotjr Programming 15 07-24-2005 02:06 PM
mysql ends Master Fox Linux - Software 3 05-30-2005 06:25 AM
how they make ends meets?? alaios Linux - General 3 04-11-2005 05:19 PM
When support ends.... what to do? bxb32001 Red Hat 15 11-02-2003 07:27 PM
mysqld_safe & jakublgz Linux - General 1 02-21-2003 08:02 AM


All times are GMT -5. The time now is 06:46 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