Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 08-10-2008, 09:48 AM   #1
LQ Newbie
Registered: Jul 2002
Posts: 22

Rep: Reputation: 15
Lightbulb Mysql - Howto intall,set up,start and stop in Slackware 12.

Just started to play around with mysql... Since the guides on how to
install,set up,start and stop mysql I've found and used this far has
been more or less useless,I start this thread.This should do the trick
if you got problems to get mysql to run at all:

As root:
1. Run command: killall -9 mysqld mysqld_safe

2. If you want to update mysql,go to step 3.Otherwise
skip to step 4.

3. Remove the old mysql package and install the new one.

Set up:

4. Run command: mysql_install_db

5. Run command: chown -R mysql.mysql /var/lib/mysql

6. Run command: chmod 755 /etc/rc.d/rc.mysqld

7. To start mysql,use the rc.myscld script.Run command:
/etc/rc.d/rc.mysqld start

8. To get back to the command prompt,press Enter.

9. To set mysql root password,run command:
/usr/bin/mysqladmin -u root password new_root_password_here

Working with mysql:

10. In order to be able to log in,switch to "mysql-command-mode"
by running command: su mysql

11. To log in,run command: mysql -p

12. Do your thing.

13. To log out,run command: \q

14 To switch back from "mysql-command-mode",run command: exit

15. To shut down mysql,run command:
/etc/rc.d/rc.mysqld stop

Last edited by matruschka; 08-12-2008 at 04:41 AM.
Old 08-13-2008, 02:52 AM   #2
LQ Newbie
Registered: Nov 2006
Location: The Netherlands
Distribution: Ubuntu 16.10
Posts: 17

Rep: Reputation: 0
I had to set a password for the mysql user, is this normal?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HOWTO Check, Start and Stop Services GNewbie MEPIS 9 08-22-2012 10:09 PM
Help me intall Mysql in Linux tzpow2k2 Linux - Software 6 06-13-2006 06:42 AM
MySQL in Slackware 10 , how to start ? ? ? caovankhanhvn Programming 2 08-13-2004 11:51 AM
Slackware 10 Mysql Won't start codyman Linux - Software 6 07-01-2004 02:30 PM
mysql set up and start on suse 8.2 luap Linux - Distributions 3 01-20-2004 08:01 PM > Forums > Linux Forums > Linux - General > Member Success Stories

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

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