LinuxQuestions.org
Review your favorite Linux distribution.
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 10-22-2010, 12:22 PM   #1
integrale16
Member
 
Registered: Sep 2009
Posts: 56

Rep: Reputation: 15
mysql configuration


Hello,

do I have to do a basic configuration / initialisation of mysql, like described in the following link, before I can use it?

http://www.basicconfig.com/linuxserv...ysql_slackware

The background is, that I want to use mythtv and therefore I need a working mysql.
When I tried to create the needed database, as described in the file README.SLACKWARE (included in mythtv.Slackbuild package from slackbuilds.org) with the following command, I got an error:
# mysql -u root -p < /usr/share/mythtv/database/mc.sql

The error message was:
ERROR 1146 (42S02) at line 3: Table 'mysql.servers' doesn't exist

--
integrale


PS: I don't remember that I ever did a basic configuration but mysql was already used by joomla, and it worked right out of the box.
 
Old 10-22-2010, 12:41 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
This means you are trying to restore the database which is already exist...
Quote:
# mysql -u root -p < /usr/share/mythtv/database/mc.sql
Before this just check whether the mysql running on server
Quote:
#ps aux | grep mysql
 
Old 10-22-2010, 03:38 PM   #3
integrale16
Member
 
Registered: Sep 2009
Posts: 56

Original Poster
Rep: Reputation: 15
Thanks for your reply, but it doesn't exactly answer my question.

Do I have to do a basic configuration / initialisation of mysql, like described in the link above, before I can use it?


--
integrale

Last edited by integrale16; 10-22-2010 at 03:55 PM.
 
Old 10-22-2010, 03:44 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Read /etc/rc.d/rc.mysqld -- the comments at the top of the file should explain the necessary procedure.
Code:
# ps aux | grep mysql
as suggested by kirukan would tell you if mysql is running or not -- it cannot run unless it has been setup properly in the first place, so if it is running then you likely do not have to set it up beyond 'restoring' the tables from mythtv. If it is not running, then see /etc/rc.d/rc.mysqld, follow those steps, then get mysql running, and then restore the tables for mythtv.
 
Old 10-22-2010, 04:46 PM   #5
lssanjose
LQ Newbie
 
Registered: Aug 2010
Location: Portland, OR
Distribution: Slackware, Gentoo (trying to) on the laptop
Posts: 13

Rep: Reputation: 0
Following those instructions to the letter on that page, has helped me to get mysql running flawlessly.
 
Old 10-22-2010, 04:48 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by integrale16 View Post
Do I have to do a basic configuration / initialisation of mysql, like described in the link above, before I can use it?
Slackware doesn't come with any mysql database installed (not even the default one). You can to install them first before you can create any new databases. As T3slider said, read rc.mysqld

For mythtv, here's what I do.

As root:
Code:
mysql_install_db --user=mysql
/etc/rc.d/rc.mysqld start
mysql_secure_installation
mysql -u root -p # log into mysql server
CREATE DATABASE mythconverg;
GRANT ALL PRIVILEGES ON mythconverg.* TO 'mythtv'@'localhost' IDENTIFIED BY 'mythtv-passwd' WITH GRANT OPTION;

Last edited by tuxrules; 10-22-2010 at 04:52 PM.
 
  


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
mySQL configuration shanu_technical Linux - Newbie 6 03-14-2006 02:52 AM
Mysql configuration klemen *BSD 3 08-19-2005 12:00 AM
MySQL 4.0.13-0 Configuration Help Please Nick2k3 Linux - Software 6 07-02-2003 10:00 PM
MySQL configuration... needamiracle Linux - Software 0 07-22-2002 01:07 PM
MySQL configuration oulevon Linux - General 14 06-26-2001 11:55 PM

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

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