ubuntuにmysqlをインストールする

$sudo apt-get install mysql-server-5.0

途中でパスワードを聞かれるので適当に設定
今回は「root」で設定

インストールが終わったら動作確認

$ mysql -u root -proot

と入力して
※-pの後はスペースを入れずに設定したパスワードを入力

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

と表示されればとりあえずインストールはOK!!