Results 1 to 10 of 20
Before I start, get it straight that I'm a Linux noob.
I finished installing Slackware, my first proper Linux install, for permanent and full use.
I installed it as it's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-03-2005 #1Just Joined!
- Join Date
- Mar 2005
- Location
- London, UK
- Posts
- 8
MySQL Problems
Before I start, get it straight that I'm a Linux noob.
I finished installing Slackware, my first proper Linux install, for permanent and full use.
I installed it as it's for a server, so obviously I direct myself towards Apache and MySQL. My friend then tells me of webmin (http://www.webmin.com), so I get that with usermin (same site, different section).
It installs and my mate says it should do everything for itself.
It installs fine and everything is dandy, config pages working, Apache working. Then I try MySQL and it won't start, I find the error log, and it says:
How can I fix this?050303 09:58:49 mysqld started
050303 9:58:51 InnoDB: Started
050303 9:58:51 Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist
050303 9:58:51 Aborting
050303 9:58:51 InnoDB: Starting shutdown...
050303 9:58:53 InnoDB: Shutdown completed
050303 9:58:53 /usr/libexec/mysqld: Shutdown Complete
050303 09:58:53 mysqld ended
- 03-03-2005 #2Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
Did you do
After you installed mysql?Code:#mysql_install_db
If not, do so, because you'll need the initial database structure, where mysql.host among other tables are created
- 03-03-2005 #3Just Joined!
- Join Date
- Mar 2005
- Location
- London, UK
- Posts
- 8
erm....I didn't install mysql? Isn't it like built into Linux?
Anyway where would I enter that?
- 03-03-2005 #4Just Joined!
- Join Date
- Mar 2005
- Posts
- 12
When you do that you will also need to update the mySQL section in webmin after you install.
EDIT:That is if you didn't install mysql. It depends on if you selected to install it during the Slackware install. As root type pkgtool, then go to view and see if you have the mysql package installed.
- 03-03-2005 #5Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
Hmm!
No it is not "built" in Linux, it is a ware as all other apps.
You'll have to do it from a shell, and you have to be "root" as well.
Open you favorit shell
Then you should be able to start mysql.Code:/home/nisan>su - /root#mysql_install_db . . . /root#
If the command fails or not found, try to locate it.
if this fails, doCode:locate mysql_install_db
and retry with the "locate" command!Code:updatedb
If "locate" is a unknown command, install "locate" packet! You'll need it in the future. Helped me tons of times to find files.
- 03-03-2005 #6Just Joined!
- Join Date
- Mar 2005
- Location
- London, UK
- Posts
- 8
omegadot: The point being I can't start it, meaning I can't edit it.
Thanks swemic, I'll try that now.
ok erm su - just gives a random message?
When I boot I get "stopping server from PID file /var/run/mysql/mysql.pid"
How do I get into the shell root stuff? Do I just type #mysql_install_db or mysql_install_db?
I get the same error for just doing mysql_install_db as I do on boot.
For locate I get "warning: locate: could not open database /var/lib/slocate/slocate.db: no such file or directory"
For updatedb I get "warning: updatedb: could not open database /var/lib/slocate/slocate.db: no such file or directory"
Maybe I should just install MySQL by downloading it etc?
- 03-03-2005 #7Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
When you run the command, are you logged in as root or a regular user?
It's kind a important that you are root!
Btw the command should be without the "#"
This goes for all commands I just previous told you about!
- 03-03-2005 #8Just Joined!
- Join Date
- Mar 2005
- Location
- London, UK
- Posts
- 8
I don't have any users, so yes I've done everything in root, and in mysql.
It's not working so I'm just going to download it and install it fresh.
Thanks for trying to help anyway
- 03-03-2005 #9Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
Hold your horses,
since you have the start script for MySQL and the demon is really trying to start up but gives you some errors, that means you have MySQL installed. You just don't have it properly configured yet. Hmm! Remember that there where something odd with the Slackware preconfigured MySQL installation.
I'll check out one of my older servers where I have MySQL and Slackware installed.
I'll be back
- 03-03-2005 #10Linux Enthusiast
- Join Date
- Feb 2005
- Location
- SE, Stockholm
- Posts
- 512
Ok, here we go.
First we'll have to check if you have any kind of MySQL database files at all.
Just do a
This is where Slackware defaults the MySQL databasesCode:ls -l /usr/local/var/
If you have the databases there you should have something like
(Never mind the seagle.pid file, it's mine only)Code:drwx------ 2 root root 4096 Jul 11 2001 mysql/ -rw-r--r-- 1 root root 320300 Jan 9 09:51 seagle.err -rw-rw---- 1 root root 3 Jan 9 09:51 seagle.pid
However, here is where you should have your error file that you got information from at your first posting here.
Or where did you find the error messages?
Now, if you did not have this directory structure, try once again to install the default databases but now with this syntax:
Are still getting errors at your command prompt? Could you then cut and paste them here pleaseCode:/usr/local/bin/mysql_install_db



