LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-23-2009, 01:27 PM   #1
elija
Member
 
Registered: Jul 2008
Location: The garden of England. Technically, the compost heap.
Distribution: openSUSE Tumbleweed
Posts: 60

Rep: Reputation: 21
MySQL on Slackware


I am having a problem starting Mysql. I don't get any errors but it doesn't run. A Google shows that I should do the following

Code:
su -
mysql_install_db
There is more but the mysql_install_db results in a command not found.

Where can I get this script?
 
Old 09-23-2009, 01:54 PM   #2
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
That command's location is /usr/bin/mysql_install_db

If you don't have it, then you probably don't have mysql installed, or properly installed.

First step: download the mysql package here
Next, you config it like so:
Code:
mysql_install_db
chown -R mysql:mysql /var/lib/mysql
chmod 755 /etc/rc.d/rc.mysqld
/etc/rc.d/rc.mysqld start
mysqladmin -u root password your_mysql-admin_password_here

Last edited by Slax-Dude; 09-23-2009 at 01:56 PM.
 
Old 09-23-2009, 01:58 PM   #3
elija
Member
 
Registered: Jul 2008
Location: The garden of England. Technically, the compost heap.
Distribution: openSUSE Tumbleweed
Posts: 60

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Slax-Dude View Post
That command's location is /usr/bin/mysql_install_db

If you don't have it, then you probably don't have mysql installed, or properly installed.

First step: download the mysql package here
Next, you config it like so:
Code:
mysql_install_db
chown -R mysql:mysql /var/lib/mysql
chmod 755 /etc/rc.d/rc.mysqld
/etc/rc.d/rc.mysqld start
mysqladmin -u root password your_mysql-admin_password_here
I installed it as part of the setup - I'll have a go with this package though.

Cheers

[edit]
Thanks. That worked brilliantly
[/edit]

Last edited by elija; 09-23-2009 at 02:06 PM.
 
Old 09-23-2009, 02:36 PM   #4
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
YAY! My first "thanks"
Glad it worked out for you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
MySQL in slackware 9.1 upset Linux - Software 1 02-11-2004 06:24 PM
MySQL in SlackWare MaMatO Slackware 10 10-16-2003 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration