LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mysql install problem w/ 13.37.0 (https://www.linuxquestions.org/questions/slackware-14/mysql-install-problem-w-13-37-0-a-933622/)

kgarman 03-09-2012 11:01 AM

Mysql install problem w/ 13.37.0
 
I'm fairly new to Slackware and am trying to install/setup the default MySQL version 5.1.56.

I've created a database, but when I try to start mysql it stalls until I do a carrage return.

When I try to set a password I get
Quote:

error 2002 (hy000) can't connect to local mysql server through socket '/var/run/mysql/mysql.sock'
When I do
Code:

locate mysql.sock
nothing comes up at all.
I have found many other posts on this but none seem to deal w/ 13.37. The changelog for this release says that they changed some of the mysql directories, so fixes for other versions haven't worked.

croxen 03-09-2012 11:56 AM

There's trick in Slackware: the permissions are initially set wrong in the default mysql installation.

Check to be sure the steps in this brief guide have been followed: http://technotalk.tumblr.com/post/79...13-1-and-mysql And then you should be able to proceed with the normal mysql setup as root.

ponce 03-09-2012 12:55 PM

you can also read /etc/rc.d/rc.mysqld for instructions ;)

kgarman 03-09-2012 02:56 PM

Quote:

Originally Posted by croxen (Post 4622881)
There's trick in Slackware: the permissions are initially set wrong in the default mysql installation.

Check to be sure the steps in this brief guide have been followed: http://technotalk.tumblr.com/post/79...13-1-and-mysql And then you should be able to proceed with the normal mysql setup as root.

It seems that I am missing "rc.mysql" can't locate it anywhere.
I do have a rc.mysqld however but I'm pretty sure it's not the same thing.

I tried to continue on in case there was a typo but on the step when I try to enter a password

Quote:

error: 'Access denied for user 'root'@'localhost' (using password: NO)'

kgarman 03-09-2012 03:10 PM

Actually it worked. First time I ran the
Quote:

/usr/bin/mysqladmin -u root password yourpassword
I was just copying and pasting w/out really reading it so the password was set to 'yourpassword'.

Thanks for all your help!


All times are GMT -5. The time now is 10:56 AM.