Install MySQL 5.7 on Ubuntu 16.04 and derivatives

MySQL is a popular database engine in LAMP environments. This guide shows how to install MySQL Server 5.7 on Ubuntu 16.04 and manage its service with systemctl.

MySQL is probably the most popular database engine and, together with Apache and PHP on Linux, forms what is commonly called a LAMP server.

In this post we will see how to set up a MySQL Server 5.7 database server on Ubuntu 16.04. Continue reading “Install MySQL 5.7 on Ubuntu 16.04 and derivatives”

Listing all columns from a PostgreSQL database

In this short post, we are going to learn how to list all columns of every table in a PostgreSQL database.
We want to get the table schema, the name of the table, the name of the column and the data type defined for that column. Continue reading “Listing all columns from a PostgreSQL database”