LinuxQuestions.org
Help answer threads with 0 replies.
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 06-28-2004, 06:58 PM   #1
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Rep: Reputation: 15
Slack 10: 2 questions.


I have two fresh Slack 10 CDs. (Burnt), installed it... All went well, except some non-important packages in the GNOME directory. But I don't care about that, since I use KDE. Anyway, exactly how to you upgrade to the 2.6.7 kernel? And MySQL doesn't work. And just so you know, it all booted fine.
 
Old 06-28-2004, 08:26 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
To upgrade to kernel 2.6.7 there are some threads round here (take a look at stickys too). MySQL needs to be configured before you can use it, take a look at the files my-huge.cnf, my-small.cnf,etc on your /etc directory.
Hope that helps.
 
Old 06-28-2004, 08:37 PM   #3
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
Yes, yes it did! Thank you!
 
Old 06-29-2004, 12:22 PM   #4
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
I have 256MB RAM so I have to edit my-medium.cnf right? What exactly should I edit?

And the error is:


root@kyl3whatoneone:/etc/rc.d# Starting mysqld daemon with databases from /var/lib/mysql
040629 09:24:26 mysqld ended

Last edited by Kyl3; 06-29-2004 at 12:26 PM.
 
Old 06-29-2004, 01:03 PM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Try this (as root)

Code:
mysql_install_db
chown -R mysql:mysql /var/lib/mysql
chmod +x /etc/rc.d/rc.mysqld
I don't actually use MySQL for anything yet, but it starts up for me without any errors.
 
Old 06-29-2004, 01:22 PM   #6
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
I don't have to. I ran that command before. And that directory is owned by the mysql user, AND it starts up fine at boot, but it ends when it asks for a login... I just gotta find out what error 040629 is.

Last edited by Kyl3; 06-29-2004 at 01:23 PM.
 
Old 06-29-2004, 01:56 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Couple things to check. Make sure that the files in /var/lib/mysql are readable by the user mysql. I think you already did that, but I just wanted to make sure because you said that the files are owned by the mysql user but didn't mention if they were also owned by the mysql group.

The next thing is that you may be able to see what is going on by checking out the .err files in the /var/lib/mysql directory. Maybe something in there will give you a hint as to what is going on.
 
Old 06-29-2004, 04:21 PM   #8
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
Yes, group and owner are mysql... What will the .err files tell me?

Edit: OMG! Look at the err files:

040629 09:13:21 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
040629 9:13:22 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
040629 9:13:22 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...
040629 9:13:22 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
040629 9:13:23 InnoDB: Started
040629 9:13:24 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
040629 9:13:24 Aborting

040629 9:13:24 InnoDB: Starting shutdown...
040629 9:13:26 InnoDB: Shutdown completed
040629 9:13:26 /usr/libexec/mysqld: Shutdown Complete

040629 09:13:26 mysqld ended

040629 09:24:23 mysqld started
040629 9:24:23 InnoDB: Started
040629 9:24:23 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
040629 9:24:23 Aborting

040629 9:24:23 InnoDB: Starting shutdown...
040629 9:24:26 InnoDB: Shutdown completed
040629 9:24:26 /usr/libexec/mysqld: Shutdown Complete

040629 09:24:26 mysqld ended

040629 09:32:10 mysqld started
040629 9:32:10 InnoDB: Started
040629 9:32:10 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
040629 9:32:10 Aborting

040629 9:32:10 InnoDB: Starting shutdown...
040629 9:32:13 InnoDB: Shutdown completed
040629 9:32:13 /usr/libexec/mysqld: Shutdown Complete

040629 09:32:13 mysqld ended

040629 09:45:29 mysqld started
040629 9:45:29 InnoDB: Started
040629 9:45:29 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040629 9:45:29 Aborting

040629 9:45:29 InnoDB: Starting shutdown...
040629 9:45:31 InnoDB: Shutdown completed
040629 9:45:31 /usr/libexec/mysqld: Shutdown Complete

040629 09:45:31 mysqld ended

040629 13:24:36 mysqld started
040629 13:24:37 InnoDB: Started
040629 13:24:37 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040629 13:24:37 Aborting

040629 13:24:38 InnoDB: Starting shutdown...
040629 13:24:40 InnoDB: Shutdown completed
040629 13:24:40 /usr/libexec/mysqld: Shutdown Complete

040629 13:24:40 mysqld ended


Last edited by Kyl3; 06-29-2004 at 04:29 PM.
 
Old 06-29-2004, 04:35 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Are you sure you did mysql_install_db ? If in doubt, redo it.
 
Old 06-29-2004, 04:44 PM   #10
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
Positive. Apache and PHP work fine tho.
 
Old 06-29-2004, 04:46 PM   #11
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
the .err files are your error logs from mysql. They may give you a better idea about what is going on.

As a side note, 040629 is not an error number; it's the date. 06/29/2004.

Apache and PHP don't need MySQL to work. I'm thinking that keefaz is right. As root, run the commands I gave earlier again. Then restart mysql and see what the new messages are in the .err file.

Last edited by shilo; 06-29-2004 at 04:50 PM.
 
Old 06-29-2004, 04:54 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Can you put the output of ls /var/lib/mysql ? There should be a mysql subdirectory showing that mysql_install_db was executed fine.
 
Old 06-29-2004, 04:56 PM   #13
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
root@kyl3whatoneone:~# cd /var/lib/mysql;ls
ib_arch_log_0000000000 ib_logfile0 ib_logfile1 ibdata1 kyl3whatoneone.err mysql/ test/
root@kyl3whatoneone:/var/lib/mysql#
 
Old 06-29-2004, 05:00 PM   #14
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
OMG! IT WORKS NOW!! *High fives Shilo and keefaz*
 
Old 06-29-2004, 06:02 PM   #15
Kyl3
Member
 
Registered: Apr 2004
Distribution: SUSE 9.3 Pro
Posts: 110

Original Poster
Rep: Reputation: 15
One more question: Anyone know any links on how to set up phpMyAdmin on your OWN server?
 
  


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
Several questions about slack 10 and X hasbeen Slackware 2 02-06-2005 04:13 AM
Some Questions about Slack 10 Gerardoj Slackware 6 11-05-2004 12:28 AM
a few questions about slack ChopSueyX Slackware 9 11-24-2003 03:14 PM
Slack 9.1-questions nightweaver Slackware 6 10-14-2003 10:48 AM
slack questions gui10 Linux - Distributions 3 01-07-2002 08:23 PM

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

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration