How to auto start MySQL server on Opensolaris after rebooting the machine?


 
Thread Tools Search this Thread
Operating Systems Solaris How to auto start MySQL server on Opensolaris after rebooting the machine?
# 1  
Old 04-20-2011
How to auto start MySQL server on Opensolaris after rebooting the machine?

Hi,

In Linux, I will do it by editing the /etc/rc.d/rc.local . However, I can't find a rc.local file in Opensolaris. So, how can I do it in Opensolaris? I am new to opensolaris, so please teach me step by step. Thanks in advance.
# 2  
Old 04-20-2011
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 04-21-2011
Hi,

it results:
# svcadm enable mysql
svcadm: Pattern 'mysql' matches multiple instances:
svc:/application/database/mysql:version_51
svc:/application/database/mysql:version_50

and neither these two is the one I am using because I am not using the package manager to install it. I installed the tar.gz file.
# 4  
Old 04-21-2011
Then why are you asking how to do it on OpenSolaris if you aren't using the OpenSolaris way to do it ?

As you use a tarball with no Solaris SMF integration, you can use the SVR4 legacy init.d scripts, which is, by the way, more common with linux distributions than the BSD way you are referring to with /etc/rc.d/rc.local.

Put the mysql init script in /etc/init.d/mysql and create (sym)links to it in /etc/rc0.d/K90mysql, /etc/rc1.d/K90mysql, /etc/rc2.d/K90mysql and /etc/rc3.d/S10mysql.

Last edited by jlliagre; 04-23-2011 at 10:05 AM.. Reason: typo rd3.D vs rc3.d)
This User Gave Thanks to jlliagre For This Post:
# 5  
Old 04-23-2011
Works!! Thanks very much
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Solaris

Rebooting Windows machine leads to continue sync reset on UNIX

Hello, We have Windows 10 machine connected to Sparc T5440 server via serial cable. We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix. We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies

3. Red Hat

Disable xen machine to auto start on reboot

Hello Guys - I need to disable xen server not to start when the server is rebooted. 1) What is the parameter to be used to do this..below is the entry in my config file... on_reboot = "restart" 2) What is the default behaviors of the xen on reboot ? in case we comment this line from config... (0 Replies)
Discussion started by: saurabh84g
0 Replies

4. Solaris

How to auto start a service on rebooting a Solaris 5.10 x86 machine?

Hi all, How to auto start a snmpd deamon on rebooting a Solaris 5.10 x86 machine. snmpd's path: /opt/download/net-snmp/sbin Thank you in advance. (6 Replies)
Discussion started by: ziosnim
6 Replies

5. Shell Programming and Scripting

Machine rebooting when shell script is killed

I am trying to kill a shell script by grepping it, but the machine is being shutdown totally when i kill it Below is the code kill `ps -ef |grep test.sh| grep -v grep` stat=$? if # check the return code then echo " script killed at $(date +%D@%T) " else echo " script... (5 Replies)
Discussion started by: venu
5 Replies

6. UNIX and Linux Applications

MySQL Daemon failed to start - no mysql.sock file

After doing a yum install mysql mysql-server on Fedora 14 I wasn't able to fully install the packages correctly. It installed MySQL 5.1. I was getting the following error when running the: mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)... (3 Replies)
Discussion started by: jastanle84
3 Replies

7. Linux

mysql server start issue

Hi, I have installed mysql in linux box as mysql-5.0.77-4.el5_6.6.. I would like to start the server. But there is no mysql file in this location /etc/init.d/ Please advice how to start the server now !! Thnaks, Mani (5 Replies)
Discussion started by: Mani_apr08
5 Replies

8. UNIX for Advanced & Expert Users

mysql would not start: missing mysql.sock

I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql: #... (2 Replies)
Discussion started by: xnightcrawl
2 Replies
Login or Register to Ask a Question