- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: MySQL Auto Start?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:01 AM
11-30-2005 01:01 AM
MySQL Auto Start?
I'm using SUSE Linux Enterprise Server v. 9.0, with MySQL 5.0. How to make mysqld to start automatically with system boot? I make it manually each time restart my box.
10 points for ALL right answers!!!!
Thanks,
Tamer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:34 AM
11-30-2005 01:34 AM
Re: MySQL Auto Start?
Place the script into the /etc/init.d directory, then identify your current runlevel with the runlevel command, then create a symbolic link to the appropiate directory under /etc/init.d/rcX.d or in /etc/init.d/boot.d, for example:
ln -s /etc/init.d/mysqld /etc/init.d/rc5.d/S99mysqld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:47 AM
11-30-2005 01:47 AM
Re: MySQL Auto Start?
If you installed mysql from an rpm or automated package, then it should automatically set up the rc scripts.
If however you compiled it, you need to do this manually.
1) create a startup script in /etc/init.d
This script must have a start and a stop section and can be copied from another script. A script may be delivered with mysql, if so that should be used.
For assumption purposes call the script mysqld
/etc/init.d/mysqld
chkconfig --list | grep mysqld
Check the status of mysqld
chkconfig mysqld on
to set it to auto start if its already a service.
#manual procedure
cd /etc/rc5.d
# run level 5
ln -s /etc/init.d/mysqld S99mysqld
cd /etc/rc4.d
ln -s /etc/init.d/mysqld K01mysqld
This sets mysqld to (S)tart at run level 5 and be (K)illed at run level 4.
That should be sufficient.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 05:06 AM
11-30-2005 05:06 AM
Re: MySQL Auto Start?
I installed MySQL 5.0 from rpm package, and actually there is a script to start and stop it but I noticed that during booting, it fails when trying to start MySQL!!! I want to know why? also I want to know what is meant by k(xy) and s(xy)?
N.B: all point will be assigned just having it fixed. :)
Thanks
Tamer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 05:43 AM
11-30-2005 05:43 AM
Re: MySQL Auto Start?
/etc/init.d/mysql start
Or wherever it is located.
Chech the mysql log, and post the results.
You should verify the contents of the script, chech the start section, and ensure that the command used to start is the command that you are using currently to start it manually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 05:55 AM
11-30-2005 05:55 AM
Re: MySQL Auto Start?
I use
#mysqld --user=root --old_password
to start MySQL with old password hashing algorithm. I use old_password argument because I had an error from MySQL while installing bugzilla server that pain at authentication protocol used by server (although both client & server modules are of version 5.0).
When I tried to run script manually I had filed response. I feel there is somthing in database and I'm afraid because this is the installation of a server in production environment!!!
I tried uninstalling MySQL and reinstalling it many times but with the same results.
Where can I find MySQL log? I searched in /var/log but nothing is found!!!
Tamer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 06:47 AM
11-30-2005 06:47 AM
Re: MySQL Auto Start?
You can also create your own startup script, very easily:
case $1 in
start)
commands to start database
;;
stop)
commands to stop database
;;
status)
commands to verify the status
;;
esac