LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2005, 10:08 PM   #1
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
install mysql off cd


when installing slackware 10.1 i installed mysql off the cd. however now i can not find a large number of the mysql files (safe_mysqld or mysqld_safe). I have a mysql group and user but no mysql files. I then attempted to follow the mysql instructions from this thread

http://www.linuxquestions.org/questi...icle&artid=456

it works correctly until i attempt the command

/etc/rc.d/rc.mysqld start

when i run that command from the mysql user i get the following

#Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
050430 02:47:36 mysqld ended

the following files are in /var/lib/mysql

ib_logfile0 ibdata1 mail-bin.000002 mail.err
ib_logfile1 mail-bin.000001 mail-bin.index

any suggestions on how to get mysql running? Any log files that my help find the solution? I checked /var/log/messages and syslog but no entries.
 
Old 04-29-2005, 11:02 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Who owns that directory and files? It must by mysql..
Do a
Code:
ls -l /var/lib
and
Code:
ls -l /var/lib/mysql/
to find out this..
If root owns them instead of mysql user use this command:
Code:
chown -R mysql:mysql /var/lib/mysql
 
Old 04-30-2005, 06:10 AM   #3
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
This link will also help you

http://www.unixfool.com/mysql-slack.shtml
 
Old 04-30-2005, 06:25 AM   #4
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
This too, a good tutorial on how to get all of AMP working

http://www.linuxquestions.org/questi...ighlight=mysql
 
Old 04-30-2005, 07:33 AM   #5
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Permissions look okay /var/lib

/var/lib# ls -l
total 32
drwxr-xr-x 2 root root 4096 2004-09-18 21:54 arpd/
drwxr-xr-x 2 root root 4096 2005-04-26 04:40 logrotate/
drwxr-x--- 2 mysql mysql 4096 2005-04-30 02:50 mysql/
drwxr-xr-x 2 root root 4096 2004-10-28 01:30 pcmcia/
drwxr-xr-x 2 root root 4096 2005-04-26 00:06 rpm/
drwxr-x--- 2 root slocate 4096 2005-04-30 04:41 slocate/
drwxr-xr-x 2 root root 4096 2005-01-23 23:45 xdm/
drwxr-xr-x 2 root root 4096 2005-01-23 23:45 xkb/


/var/lib/mysql# ls -l
total 20540
-rw-rw---- 1 mysql mysql 5242880 2005-04-30 02:50 ib_logfile0
-rw-rw---- 1 mysql mysql 5242880 2005-04-30 02:37 ib_logfile1
-rw-rw---- 1 mysql mysql 10485760 2005-04-30 02:50 ibdata1
-rw-rw---- 1 mysql mysql 79 2005-04-30 02:37 mail-bin.000001
-rw-rw---- 1 mysql mysql 79 2005-04-30 02:47 mail-bin.000002
-rw-rw---- 1 mysql mysql 79 2005-04-30 02:50 mail-bin.000003
-rw-rw---- 1 mysql mysql 54 2005-04-30 02:50 mail-bin.index
-rw-rw---- 1 mysql mysql 3018 2005-04-30 02:50 mail.err


Quote:
This too, a good tutorial on how to get all of AMP working

http://www.linuxquestions.org/quest...highlight=mysql
this is the tutorial i followed origninally.

I had mysql install from the installation cd and never could get it start, so i followed the above tutorial and still not works.

Thanks for the replies, any other suggestions?
 
Old 04-30-2005, 07:53 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Did you check the mysql log for error?

Its located in /var/lib/mysql/
something.err
 
Old 04-30-2005, 08:02 AM   #7
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
i have a file called mail.err that contains the following

050430 02:50:05 mysqld started
050430 2:50:05 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
050430 2:50:05 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43676.
InnoDB: Doing recovery: scanned up to log sequence number 0 43708
InnoDB: Last MySQL binlog file position 0 79, file name ./mail-bin.000002
050430 2:50:05 InnoDB: Flushing modified pages from the buffer pool...
050430 2:50:05 InnoDB: Started; log sequence number 0 43708
050430 2:50:06 [ERROR] Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
050430 02:50:06 mysqld ended


this looks to be the problem

050430 2:50:06 [ERROR] Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist

suggestions on how to create that table? Thanks again.
 
Old 04-30-2005, 08:34 AM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by zuessh
050430 2:50:06 [ERROR] Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist

suggestions on how to create that table? Thanks again.
This problem is usually solved when you reinstall the database. delete your old one by deleteing the 'mysql' folder in /var/lib/mysql/
Code:
cd /var/lib/mysql
rm -rf mysql
then recreate it
Code:
mysql_install_db
And make sure the user mysql owns everything
Code:
chown -R mysql /var/lib/mysql
 
Old 04-30-2005, 08:51 AM   #9
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Thanks, that seemed to resolve the issue. I know see mysql processes running and was able to set a password. I will now continue forward and hopefully all will go well. Thanks again for the help.
 
Old 04-30-2005, 08:52 AM   #10
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Quote:
Originally posted by xushi

Code:
mysql_install_db
And make sure the user mysql owns everything
Code:
chown -R mysql /var/lib/mysql
This can i also be done like this:
Under root:

su mysql
mysql_install_db

Both will do the same trick
 
  


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
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
DBD::MySQL + MySQL install problems. Elleroth Linux - Software 4 03-24-2006 06:53 AM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 06:54 PM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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