
Here’s a quick update to this mini-tutorial. Previous parts can be found here and here.
Installing MySQL
Installing MySQL is so simple that I don’t need to hide it behind the cut. The one in the Ubuntu repositories work just fine:
$ sudo apt-get install mysql-server-5.1
Note that you will be asked to enter a root password somewhere in the installation.
To wrap up the installation run
$ sudo mysql_install_db
to initialize the installed server and
$ sudo mysql_secure_installation
to secure it.
In mysql_secure_installation, you’ll be asked for your root password and then you’ll asked if you want to change it. Just enter “n” since there’s no reason to change it this early. Then you’ll be asked if you want to do some things to secure the database which is, of course, what we want to do so just hit Enter for each question to choose the default answer (“Y”).
Continue reading “Learn how to setup a web server pt3: Installing MySQL and PHP apps (e.g. WordPress)”