Sun Java System Application Server 9.1 Update 1 Installation Guide

ProcedureTo Start or Stop MySQL

Before You Begin

On Solaris, Linux, or Mac OS, ensure that you have completed the steps at To Set Up MySQL. Ensure that you read this option file and change values as appropriate and as documented at http://www.mysql.com, prior to server startup.

  1. To start MySQL:

    • On Solaris, Linux, or Mac OS, use the following command: Start: ./bin/mysqld_safe --defaults-file=install-dir/mysql/mysql.ini --user=user

    • On Windows, you can do one of the following:

      • Click Programs > Sun Microsystems > Sun Java SystemApplication Server 9.1 Update 1 with MySQL Community Server > Start MySQL 5.0 Database.

      • If you created a Windows service, start the ASMySQL service through the Control Panel.

  2. To stop MySQL:

    • On Solaris, Linux, or Mac OS, use the following command: Stop: bin/mysqladmin -u root shutdown -p

    • On Windows, you can do one of the following:

      • Click Programs > Sun Microsystems > Sun Java SystemApplication Server 9.1 Update 1 with MySQL Community Server > Stop MySQL 5.0 Database.

      • If you created a Windows service, stop the ASMySQL service through the Control Panel.