Search⌘ K
AI Features

Using MySQL Database

Explore how to set up a MySQL database for backend applications by installing it locally on various operating systems or using Docker with the MariaDB image. Understand the commands to create databases and run the server, enabling you to integrate MySQL with your Go backend projects.

MySQL database setup

There are many ways to set up the MySQL database.

Use MySQL database on a local machine

The MySQL database server can be installed on a local machine directly, depending on the operating system. For Windows users, there are alternatives, like using XAMPP, Laragon, and other local servers that include the MySQL database server.

To install the MySQL database server, be sure to check the MySQL downloads page. After the MySQL database server is installed, run the server and create a new database with the following query.

CREATE DATABASE inventory;

The database is ...