A free and stable version of MySQL is included with Ubuntu. MySQL is also available from www.mysql.com. The software is available in source code, binary, and APT format for Linux. See Chapter 8, “Managing Software,” for the details on adding (or removing) software.
After you have MySQL installed, you need to initialize the grant tables or permissions to access any or all databases and tables and column data within a database. You can do this by issuing
mysql_install_db as root. This command initializes the grant tables and creates a MySQL root user.
The MySQL data directory needs to be owned by the user that owns the MySQL process, most likely
mysql (you might need to change the directory’s owner using the
chown command). ...