
Installing MySQL |
FreeBSD % vinstall mysql BSD/OS % installmysql-3.22.25
NOTE: If your Virtual
Server was ordered after Nov 22, 1999, you are likely
running FreeBSD. To find out which O/S your Virtual
Server is running, use the uname command: % uname |
These commands will automatically install all the necessary files for you to run MySQL. They will also start the mysql daemon running on your Virtual Server and setup the Virtual Server to restart the mysql daemon whenever your Virtual Server's host server reboots.
| NOTE: After you install MySQL it is not necessary to run the mysql_install_db as described in Section 6.7 of the MySQL manual. |
Starting MySQL
To use the MySQL client type:
% mysql -u root
This command will start the MySQL client as the root user. You can add more users by following the directions in Section 6.8 -- Adding new user privileges in the MySQL users manual.
Should you ever need to restart mysql from the command prompt, you may do so using the following command:
% /usr/local/bin/mysqld &