Installing Mysql on Ubuntu linux
In this post, we’ll see how to setup it and it’s connector on Ubuntu.
During the process, the software center had some fever:
Setup Mysql on Ubuntu
Installed mysql server using command
sudo apt-get install mysql-server
Gave password (and forgot):
And/Or from UI using
sudo apt-get install mysql-workbench
Setting up Mysql connector
Go here to download the connector. Select
.NET & Mono platform and initiate download process.
Extract the downloaded file and move it to your directory of preference.
An inside view of the directory will look like this:
cd to the directory and ensure that
MySql.Data.dll indeed exists by using
ls command. I went to
v4.5 to make sure that I have all the new patches.
sudo gacutil /i MySql.Data.dll to register it to Global Assembly Cache (GAC)
To confirm registration:
- Go to directory
/usr/lib/mono/gacby using command
- List it’s contents by using command
You will find
MySql.Data if the registration has been successful.