| Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-22-2003, 10:34 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2003
Posts: 6
Rep:
|
Error when starting mysql
Hi
I have installed the latest tar ball from slakeware mysql-4.0.17-i486-1.tgz
When staring the server is stopped after a few seconds:
root@node:/etc/rc.d# ./rc.mysqld start
root@node:/etc/rc.d# Starting mysqld daemon with databases from /var/lib/mysql
031222 16:33:06 mysqld ended
root@node:/etc/rc.d#
Is ther more needer beside this tarball?
I looked to find a log of mysql but not found here on the system.
Peppie
|
|
|
|
12-22-2003, 12:23 PM
|
#2
|
|
Member
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165
Rep:
|
hi...
#> su mysql
#> mysql_install_db
that should solve your problem ^^
btw .... the instructions are in /etc/rc.d/rc.mysqld
RTFS ^^
regards
|
|
|
|
12-22-2003, 01:37 PM
|
#3
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Dont forget after intalling the initial db's, to change permissions/ownerships like this:
chown -R mysql.mysql /var/lib/mysql
And then attempt to start the mysql server.
Regards.
|
|
|
|
12-22-2003, 02:20 PM
|
#4
|
|
Member
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165
Rep:
|
trickykid->
vim `which mysql_install_db`
Code:
# Create database directories mysql & test
if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi
if test ! -d $ldata/test; then mkdir $ldata/test; chmod 700 $ldata/test ; fi
if test -w / -a ! -z "$user"; then
chown $user $ldata $ldata/mysql $ldata/test;
fi
thats why you su to mysql ^^
sorry *g*
|
|
|
|
12-22-2003, 02:22 PM
|
#5
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
My bad, wasn't thinking when I posted as I've usually end up creating mine as root and change the permissions afterwards during initial setup.. 
|
|
|
|
12-22-2003, 02:26 PM
|
#6
|
|
Member
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165
Rep:
|
well, it doesn't hurt chown'ing a second time =)
but I have to stop beeing a wise guy =P
hihi ^^
|
|
|
|
03-03-2004, 09:57 AM
|
#7
|
|
Member
Registered: Aug 2003
Distribution: Slackware
Posts: 178
Rep:
|
#> su mysql
when I do this I get
$/root$
if I now type mysql_install_db
I get bash error command not found.
I notice too that in my shell where I am logged in as root, after typing su mysql, I am dumped out of a root shell and given a user prompt.
What on earth have I done wrong? And how do I get MySQL going?
Trying too hard!
MySQL is performing at last. Thanks for the help everyone.
Last edited by buttersoft; 03-04-2004 at 09:37 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:57 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|