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.
I installed mySQL in the initial installation. When I boot it starts but then in a few seconds stops. An error log indicates that it "Can't open privelege tables: 'mysql.host' doesn't exist.
Where should it be, where can I find it?
I eventually want to use a C++ API to connect to and interact with the DataBase.
Looking at other threads, Iwent and installed an initial DataBase, while got me half a step further. But now the log says /usr/libexec/mysqld: Can't find file './mysql/host.frm'
My database is in /var/lib/mysql and in that directory is a directory mysql which has the database files. 'host.frm' is there along with host.MY1 and host.MYD. The access rights seem to be OK, why can't it be seen.
You're using slackware? In versions 10.0 and 10.1 (can't speak for other versions):
Check the file /etc/rc.mysqld to check where it expects the database.
Code:
# Start mysqld:
mysqld_start() {
if [ -x /usr/bin/mysqld_safe ]; then
# If there is an old PID file (no mysqld running), clean it up:
if [ -r /var/run/mysql/mysql.pid ]; then
if ! ps axc | grep mysqld 1> /dev/null 2> /dev/null ; then
echo "Cleaning up old /var/run/mysql/mysql.pid."
rm -f /var/run/mysql/mysql.pid
fi
fi
/usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid $SKIP &
fi
}
Correct if necessary. Restart mysql server so changes take effect.
It is not enough to install the mysql package.
After installation you have to run as root a certain script from that package which creates the system tables.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.