Some tips around MySQL and SMF on OpenSolaris.
You can enable the MySQL server by starting it through svcadm
% svcadm enable mysql
Although for current builds since the integration on build 79, you need to do this manual stuff first:
% su - % cd /var % mkdir mysql % /usr/sbin/groupadd mysql % /usr/sbin/useradd -g mysql -d /var/mysql mysql % chown mysql:mysql mysql
So if your MySQL service is going into maintenance:
% svcs | grep mysql maintenance 11:03:45 svc:/application/database/mysql:version_50
You could find out more what happened by doing:
% svcs -x svc:/application/database/mysql:version_50 (MySQL RDBMS) State: maintenance since February 15, 2008 2:25:49 PM CET Reason: Restarting too quickly. See: http://sun.com/msg/SMF-8000-L5 See: MySQL 5.0.45(1) See: http://dev.mysql.com/docs See: /var/svc/log/application-database-mysql:version_50.log Impact: This service is …[Read more]