Logging spaces in a database
In this section, we will describe how to create and configure web and database servers to enable logging spaces in a parking lot using vehicle information.
Configuring a MySQL database server
In this section, you will learn how to configure a MySQL server in order to create a database and integrate everything in your dashboard in order to record data in a database.
Installing MySQL
Our Raspberry Pi 3 is being configured like a web server. In this section, we will install a MySQL database server with the following command so we can receive connections from clients, display data stored in the database, and use queries in SQL:
sudo apt-get install mysql-server

It will ask you for the password of the root
user:

Connect to MySQL and type the following command:
mysql –u root -p

Type the following command:
show databases;
Here we can see databases of the system that are now installed on the server:

Installing the MySQL driver for PHP
You need the MySQL driver for PHP to access the...