LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-19-2008, 07:58 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
How to stop mysql server in Suse


Greetings,
currently i'm starting the database server using this command
/usr/local/mysql/bin/mysqld_safe --user=mysql &

However i want to stop the database, what commands do i need to enter?

These are the files inside the /usr/local/mysql/bin

Code:
LinuxCM:/usr/local/mysql/bin # ls
comp_err           mysql_config                mysqlshow
innochecksum       mysql_convert_table_format  mysql_tableinfo
msql2mysql         mysqld_multi                mysqltest
myisamchk          mysqld_safe                 mysqltestmanagerc
myisam_ftdump      mysqldump                   mysqltestmanager-pwgen
myisamlog          mysqldumpslow               mysql_tzinfo_to_sql
myisampack         mysql_explain_log           mysql_upgrade
my_print_defaults  mysql_find_rows             mysql_upgrade_shell
mysql              mysql_fix_extensions        mysql_waitpid
mysqlaccess        mysql_fix_privilege_tables  mysql_zap
mysqladmin         mysqlhotcopy                perror
mysqlbinlog        mysqlimport                 replace
mysqlbug           mysql_install_db            resolveip
mysqlcheck         mysql_secure_installation   resolve_stack_dump
mysql_client_test  mysql_setpermission
Thanks in advance
 
Old 05-19-2008, 08:46 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
One solution to your problem is to setup mysql as a service. In the mysql installation tarball, there should be a script called mysql-server (or something similar). Copy that to /etc/init.d and name it "mysql" (you may need to edit it, so that the mysql user is the same as the one you setup on your system and that the path to mysql is the same as the one on your system). After that do
Code:
#chkconfig --add mysql
#chkconfig mysql on
You can then manage mysql using the "service" command e.g.
Code:
service mysql start
service mysql stop
service mysql status
 
  


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 server installation warning: mysql-server-4.1.10a-2.RHEL4.1.i386.rpm: V Buddhike G Linux - Software 3 09-07-2007 06:50 AM
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 server will not start using OS Suse 8.1 steverino Linux - Software 3 03-06-2003 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:02 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
Open Source Consulting | Domain Registration