List the services with:
svcs

Or lookup for mysql or mariadb or perconadb.
# svcs | egrep 'mysql|maria|percona'

Find the service config with:
# svcprop -p config/entities percona
file:///opt/local/etc/my.cnf

You can also find the service startup command:
# svcprop -p start/exec percona
/opt/local/lib/svc/method/mysqld\ start


On Mon, Feb 15, 2016 at 9:43 AM, 许若辰 <[email protected]> wrote:

> Hi friends, I want to use mysql in smartos
> zone c540b62c-beb2-11e5-8512-8b1694a57f84
> But I find that the default path /opt/local/my.cnf is useless, also I’ve
> tried /etc/my.cnf /etc/mysql/my.cnf /opt/local/mysql/my.cnf, but none of
> them work.
> So how can I configure my mysql?
>
> [mysqld]
> wait_timeout = 14400
>
> mysql> SHOW VARIABLES LIKE 'wait_timeout';
> +---------------+-------+
> | Variable_name | Value |
> +---------------+-------+
> | wait_timeout  | 28800 |
> +---------------+-------+
> 1 row in set (0.00 sec)
> Thanks.
>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25253051-d319687c> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to