Using SMF to manage your MySQL installation
Once installed, you can start and stop your MySQL server using the installed SMF configuration. The
service name is mysql, or if you have multiple versions installed, you should use the full version name,
for example mysql:version_56. To start and enable MySQL to be started at boot time:
shell svcadm enable mysql
To disable MySQL from starting during boot time, and shut the MySQL server down if it is running, use:
shell svcadm disable mysql
To restart MySQL, for example after a configuration file changes, use the restart option:
shell svcadm restart mysql
You can also use SMF to configure the data directory and enable full 64-bit mode. For example, to set
the data directory used by MySQL:
shell svccfg
svc: select mysql:version_56
svc:/application/database/mysql:version_56 setprop mysql/data=/data0/mysql
By default, the 32-bit binaries are used. To enable the 64-bit server on 64-bit platforms, set the
enable_64bit parameter. For example:
svc:/application/database/mysql:version_56 setprop mysql/enable_64bit=1
You need to refresh the SMF after settings these options:
shell svcadm refresh mysql
... zobacz całą notatkę
Komentarze użytkowników (0)