Administration » DataBase

ID #1003

Getting mysql started after 9.1 install

Ok, so you`ve just installed mysql from slackware 9.1 and when you try and run it, after typeing `mysql` from the command line you get nothing but problems, probably you`re getting permission denied or can`t find such and such file. Well, here ya go, do this and you`re done... as root: /usr/bin/mysql_install_db cp /etc/my-small.cnf /etc/my.cnf there are a few other sample cnf files in /etc, you could cp one of them as my.cnf if you like chown -R mysql:mysql /var/lib/mysql /usr/share/mysql/mysql.server start /usr/bin/mysqladmin -u root password `new-password` first off, the password is what ever ends up between the ``s So if you typed password `rick` then your password is rick. You have to use the ``s, if you type password rick, it aint gonna work. After you hit enter for this, it`s going to ask you for a password, just press enter cp /usr/share/mysql/mysql.server /etc/rc.d/rc.mysql Now, unless you messed around with, and if /etc/rc.d/rc.mysql is executible(should be), then mysql will run on bootup. If you want to change that, look for the line in /etc/rc.d/rc.M or chmod the file 644. That`s it, now read the many fine tutorials on using mysql in a safe and secure way, also feel happy that many people before me have tried to help people like you with this problem before. More information: http://www.linuxpackages.net/forum/viewtopic.php?t=3512

Last update: 2005-09-16 21:49
Author: Jim
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 4.48 from 5 (33 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry

Comment of ,,/, ,,,/ (2038-01-18 21:14:07):
This got me going, thanks!

Comment of Rurouni Alucard (2038-01-18 21:14:07):
Thank you very much!!!, that info came in handy even in the 10.2 version that I use right now.. xD