I seguenti comandi, servono per configurare un utente mysql e installare il noto database:

Creazione gruppo e utente:

shell> groupadd mysql
shell> useradd -d /export/home/mysql -g mysql mysql
shell> mkdir -p /export/home/mysql
shell> chown -R mysql:mysql /export/home/mysql

Preparazione del software:

shell> cd /usr/local
shell> gunzip < /path/to/mysql-*VERSIONE*.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-*VERSIONE* mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .

Installazione:

shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data

Avvio mysql:

shell> bin/mysqld_safe --user=mysql &