
This is to separate the configurations and make them more understandable. One thing to keep in mind is that the configuration file may include other configuration files. On the other hand, if you use CentOS, the path is as follows: /etc/my.cnf If you use Ubuntu, you can find the MySQL configuration file in the following path: /etc/mysql/my.cnf The my.cnf file is the file where all MySQL configurations are defined. In Unix family systems, services are configured through text files. Where is the MySQL configuration file (my.cnf)? Normally the location is as follows: /var/lib/mysql/įinally, if you want to know where all the installed MySQL files are located, you can run the following command: On the other hand, it is good to know where the databases are stored in the system.

Normally, MySQL binaries are in the following locations: /usr/bin Generally, each Linux distribution has its way of unpacking each of the programs we install. On both systems (Ubuntu & CentOS), if you want to check if MySQL is correctly installed, you can show the version its version using the following command: $ mysql -versionīy showing the current version of MySQL, that means MySQL is correctly installed and ready to use. So it is a good idea to check if MySQL is installed or not. It is possible that during the installation on both systems that something went wrong.
LINUX MYSQL WEB GUI INSTALL
Just type the following command: $ yum install mysql-community-server First, switch to the root user and then add the repository. However, it is easy to add the MySQL repository to install it.

On the other hand, CentOS does not include MySQL by default in its repositories.
LINUX MYSQL WEB GUI DOWNLOAD
Then, after typing the user’s password, it will start the download and subsequent installation. So if you use Ubuntu, you can install MySQL by typing this command in a terminal session: $ sudo apt install mysql-server On the other hand, CentOS was born as a clone of Red Hat Enterprise Linux, and it has always been used in the servers area as its main objective. Recently, Canonical, the company behind the development of Ubuntu, has been profiling Ubuntu to be used on servers. In the case of Ubuntu, it is quite popular among novices who come from other operating systems like Windows. Ubuntu and CentOS are two of the most used Linux distributions.

The first step to use MySQL on Linux is obviously to install it in our system.
