- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how can i set mysql to start on boot ?
Operating System - HP-UX
1753416
Members
5380
Online
108793
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-31-2001 08:09 AM
тАО07-31-2001 08:09 AM
how can i set mysql to start on boot ?
how can i set mysql to start on boot ?
like the apache etc ?
10x in advance
like the apache etc ?
10x in advance
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2001 08:16 AM
тАО07-31-2001 08:16 AM
Re: how can i set mysql to start on boot ?
Hi:
If you are looking for the guidelines and an understanding of how to write startup and shutdown scripts, see this excellent (relatively short) document:
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
...JRF...
If you are looking for the guidelines and an understanding of how to write startup and shutdown scripts, see this excellent (relatively short) document:
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2001 09:24 AM
тАО07-31-2001 09:24 AM
Re: how can i set mysql to start on boot ?
I'm sure JRF's doc is more complete but v.quickly
1/ cp /sbin/init.d/apache /sbin/init.d/mysql
(or even /sbin/init.d/template)
2/ edit mysql & insert relavent
* start ststement,
* stop statement
* Choose & insert a UNIQUE system variable such as AUTOSTART_MYSQL=1 (say, 1 to start & 0 not to)
3/ vi /etc/rc.config.d/mysql
add in the environment variables from 2
4/ ln -s /sbin/init.d/mysql /sbin/rc2.d/S999mysql
The system goes through all the S??? files in numeric order to start them so S999mysql will be the last & S000??? will be the first
5/ If you want to include a stop statement then make sure /sbin/init.d/mysql has a stop in the case statement.
ln -s /sbin/init.d/mysql /sbin/rc2.d/K999mysql
If you want to test your script without a reboot simply run (as root)
/sbin/init.d/mysql start ## to start
&
/sbin/init.d/mysql stop ## to stop
If either of these do not work then it will not work at boot/shutdown time.
Good Luck
Tim
1/ cp /sbin/init.d/apache /sbin/init.d/mysql
(or even /sbin/init.d/template)
2/ edit mysql & insert relavent
* start ststement,
* stop statement
* Choose & insert a UNIQUE system variable such as AUTOSTART_MYSQL=1 (say, 1 to start & 0 not to)
3/ vi /etc/rc.config.d/mysql
add in the environment variables from 2
4/ ln -s /sbin/init.d/mysql /sbin/rc2.d/S999mysql
The system goes through all the S??? files in numeric order to start them so S999mysql will be the last & S000??? will be the first
5/ If you want to include a stop statement then make sure /sbin/init.d/mysql has a stop in the case statement.
ln -s /sbin/init.d/mysql /sbin/rc2.d/K999mysql
If you want to test your script without a reboot simply run (as root)
/sbin/init.d/mysql start ## to start
&
/sbin/init.d/mysql stop ## to stop
If either of these do not work then it will not work at boot/shutdown time.
Good Luck
Tim
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2001 10:01 PM
тАО07-31-2001 10:01 PM
Re: how can i set mysql to start on boot ?
Here is a fully working startup/shutdown script mysql on hp-ux 11.
copy this to /sbin/init.d and make a symbolic link
ln -s /sbin/rc3.d/Sxyzmysql /sbin/init.d/mysql
copy this to /sbin/init.d and make a symbolic link
ln -s /sbin/rc3.d/Sxyzmysql /sbin/init.d/mysql
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP