Search the web
Sign In
New User? Sign Up
linux-slackware · Slackware Linux Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Thanks Pat :)   Message List  
Reply | Forward Message #2515 of 2579 |
Re: mysql slackware 12.0



Hi Jude,

This is most likely a permission error. I've always found the default
mysql install script rarely worked 100% according to plan and always
needed a few helpful nudges to get it in working order:

After installing the package:

1) make sure the mysql user and group have been added and the mysql user
is assigned to the mysql group:

grep mysql /etc/passwd
grep mysql /etc/group

if not, add either or both manually (I like to make the GID and UID
the same value as the TCP/IP port):

groupadd -g 3306 sql
useradd -u 3306 -g mysql mysql

2) make sure the mysql directory is owned by the mysql user/group

chown -R mysql:mysql /var/lib/mysql

3) make the init script executable

chmod 0744 /etc/rc.d/rc.mysqld

4) initialize the mysql database:

su - mysql
/usr/bin/mysql_install_db
exit

6) make sure the proper .cnf file has been copied over to /etc/my.cnf:

cp /etc/my-medium.cnf /etc/my.cnf

7) start the mysql daemon and check to make sure you can connect to it

/etc/rc.d/rc.mysqld start

8) verify the process launched successfully:

ps waux | grep mysql
ls -l /var/run/mysql

9) set the root user password

/usr/bin/mysqladmin -u root password '**************'

10) log in to mysql and set the root privileges:

mysql -u root -p
grant ALL privilegeS ON *.* TO 'root'@'localhost' IDENTIFIED BY
'**************';

You should now be able to create your working databases and your
unprivileged user.

Hope this helps,


Jason

--- In linux-slackware@yahoogroups.com, Jude DaShiell <jdashiel@...>
wrote:
>
> My installation procedure no longer works. mysql can't find a
host.frm
> file so can't start up. I figure to be running all of this on a
localhost
> without network interaction and the program is still looking for
> mysql.sock even though I told it to skip networking in the my.cnf
file.
> I understand getting mysql to start up and get running gets even
harder in
> slackware 12.1 if the changelogs are to be believed. Has anyone
got
> around these obstacles and can share the missing installation steps?
>




Thu May 22, 2008 3:28 am

njamn8or
Offline Offline
Send Email Send Email

Forward
Message #2515 of 2579 |
Expand Messages Author Sort by Date

It was sure nice to see 12.1 released. I've been seeding and haven't stopped long enough to install 12.1 on my machines. Have any of you installed it yet? I...
Michael Endsley
mealaskan
Offline Send Email
May 4, 2008
2:45 pm

Hi Jude, This is most likely a permission error. I've always found the default mysql install script rarely worked 100% according to plan and always needed a...
Jason Armstrong
njamn8or
Offline Send Email
May 22, 2008
3:28 am

let's see, mysqladmin can't run because mysql.sock is missing. How should that file get created?...
Jude DaShiell
dashielljt54
Offline Send Email
May 24, 2008
12:54 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help