Let's assume you are a developer and want to save your application data in a MySQL database. As a first step, you have to establish a connection between your application and MySQL, which we will cover in this recipe.
Integrating MySQL and Go
Getting ready...
Verify whether MySQL is installed and running locally on port 3306 by executing the following command:
$ ps -ef | grep 3306
This should return the following response:
Also, log into the MySQL database and create a mydb database, executing the commands as shown in the following screenshot:
How to do it...
- Install...