Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > Starting mySQL on Slackware 10

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 06-26-2004   #1 (permalink)
Just Joined!
 
Join Date: Jun 2004
Posts: 3
Starting mySQL on Slackware 10

After reading several posts on this and other forums, I still have yet to successfully get the mySQL server up and running. I can only assume it's because I'm looking at installs for RedHat (which most tutorials go through) and not a Slackware specific tutorial. Most things I read have different directories, etc. which I can deal with, but the one I'm reading now says to change permissions on /usr/local/mysql/data, and after searching, there is no data folder under a mysql folder on the entire drive. I know RPM installs do automatic things and have also discovered that the mySQL user is already setup on my install. What I don't know is what comes after mysql_install_db. I'll post commands and error logs though, so maybe someone can point me in the right direction.

bash-2.05b# /usr/bin/mysqld_safe &
[1] 2549
bash-2.05b# Starting mysqld daemon with databases from /var/lib/mysql
040625 23:23:36 mysqld ended

Here is the error file.

bash-2.05b# cat Rage.err
040625 23:19:20 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
040625 23:19:20 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
040625 23:19:21 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
040625 23:19:21 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
040625 23:19:22 InnoDB: Started
040625 23:19:22 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040625 23:19:22 Aborting

040625 23:19:22 InnoDB: Starting shutdown...
040625 23:19:24 InnoDB: Shutdown completed
040625 23:19:24 /usr/libexec/mysqld: Shutdown Complete

040625 23:19:24 mysqld ended

040625 23:23:06 mysqld started
040625 23:23:06 InnoDB: Started
040625 23:23:06 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040625 23:23:06 Aborting

040625 23:23:06 InnoDB: Starting shutdown...
040625 23:23:09 InnoDB: Shutdown completed
040625 23:23:09 /usr/libexec/mysqld: Shutdown Complete

040625 23:23:09 mysqld ended

040625 23:23:34 mysqld started
040625 23:23:34 InnoDB: Started
040625 23:23:34 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040625 23:23:34 Aborting

040625 23:23:34 InnoDB: Starting shutdown...
040625 23:23:36 InnoDB: Shutdown completed
040625 23:23:36 /usr/libexec/mysqld: Shutdown Complete

040625 23:23:36 mysqld ended

040626 13:12:54 mysqld started
040626 13:12:55 InnoDB: Started
040626 13:12:55 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040626 13:12:55 Aborting

040626 13:12:55 InnoDB: Starting shutdown...
040626 13:12:57 InnoDB: Shutdown completed
040626 13:12:57 /usr/libexec/mysqld: Shutdown Complete

040626 13:12:57 mysqld ended

END OF ERROR LOG



I have also did chown -R mysql /var/lib/mysql and tried running a installation script


/usr/bin/mysql_secure_installation




NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): *entered password*
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
Enter current password for root (enter for none):
subnet_rx is offline  


Old 06-29-2004   #2 (permalink)
czn
Just Joined!
 
Join Date: Jun 2004
Posts: 1
Send a message via AIM to czn
fix

i had the same problem and i just did this:

su mysql (become mysql)
mysql_install_db

after that it started fine with ending right away.
czn is offline  
Old 07-12-2004   #3 (permalink)
Just Joined!
 
Join Date: Jul 2004
Posts: 2
Send a message via MSN to Riftor
here's what I did

chown mysql /var/lib/mysql/*
chown mysql /var/lib/mysql/mysql/*

then it worked
Hope it works for you too!
Riftor is offline  
Old 07-12-2004   #4 (permalink)
Just Joined!
 
Join Date: Jul 2004
Posts: 2
Send a message via MSN to Riftor
you might need to do mysql_install_db when logged in as mysql as well, not sure though, I was trying so many things heh
Riftor is offline  
Old 02-20-2005   #5 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Oakland, CA
Posts: 2
Send a message via AIM to JohnnyStokeland
chown syntax

for the uber noobs amongst us (present company included):
This is slackware specific (10.1 in my instance)

ln -s /var/run/mysql/mysql.sock /tmp/mysql.sock

~$:chown mysql /var/lib/mysql/*
~$:chown mysql /var/lib/mysql/mysql/*

the above posts omit the user 'mysql', which should be assumed, but i didn't understand that. hope that helps...

the mysql.org user submitted comments gave me the first one. thanks to the forums for the chown suggestion.

cheers!
JohnnyStokeland is offline  
Old 09-07-2009   #6 (permalink)
Just Joined!
 
Join Date: Oct 2005
Posts: 4
Send a message via ICQ to ferdna Send a message via AIM to ferdna Send a message via MSN to ferdna
you didnt change the group of the files

you only did a:
chown -R mysql /var/lib/mysql

but you need to do a

chown -R mysql.mysql /var/lib/mysql

or

chgrp -R mysql /var/lib/mysql
ferdna is offline  
Old 09-07-2009   #7 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,059
This thread is over 5 years old so it's doubtful that the other posters still need any help with this issue.

Locking really old thread...
__________________
oz

New Members: * README *
ozar is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:58 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2