How to install mysql on ubuntu

Granted, installing mysql on any Linux box these days is a no brainer. But installing mysql on ubuntu isn't an exception. It's a couple of steps. Nothing more:

Open a terminal window, and type:

sudo apt-get install mysql-server

That's the only gotcha! Typing "sudo apt-get install mysql" doesn't work. It needs to be" mysql-server".

Also, if you are running PHP - and you almost certainly are - you may also need to install the php module for mysql 5:

sudo apt-get install php5-mysql

There endeth the lesson!

No comments:

Post a Comment