LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 09: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, 01:09 AM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

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, 09: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, 09: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, 01:49 PM   #5
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

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, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

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
Open Source Consulting | Domain Registration