SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.