Specifications

Chapter 5 Working with Open Source Applications 69
Starting MySQL Service
You start MySQL service from Server Admin.
To start MySQL service:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select MySQL.
4 Click Start MySQL (below the Servers list).
The service runs until you stop it and restarts if your server is restarted.
From the command line:
To start mysqld: m
$ sudo /usr/sbin/serveradmin start mysql
For information about serveradmin, see its man page. For the basics of command-line
tool usage, see Introduction to Command-Line Administration.
Checking the Status of MySQL Service
You can use Server Admin to monitor MySQL service.
To check the status of MySQL service:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select MySQL.
4 Click Overview to see if MySQL service is running, the time it started if it is running,
and if network connections are allowed.
From the command line:
To view the status of mysqld: m
$ sudo serveradmin status mysql
or
$ sudo serveradmin settings mysql