LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org 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.

Notices



Reply
 
Search this Thread
Old 08-10-2008, 10:48 AM   #1
matruschka
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 05:41 AM.
 
Old 08-13-2008, 03:52 AM   #2
meikitsu
LQ Newbie
 
Registered: Nov 2006
Location: The Netherlands
Distribution: Slackware 12.1
Posts: 13

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


Reply


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 11:09 PM
Help me intall Mysql in Linux tzpow2k2 Linux - Software 6 06-13-2006 07:42 AM
MySQL in Slackware 10 , how to start ? ? ? caovankhanhvn Programming 2 08-13-2004 12:51 PM
Slackware 10 Mysql Won't start codyman Linux - Software 6 07-01-2004 03:30 PM
mysql set up and start on suse 8.2 luap Linux - Distributions 3 01-20-2004 09:01 PM


All times are GMT -5. The time now is 03:59 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration