Installing MySQL on Gentoo Linux

Ask a question
A database management system is an essential part of computing, and one of the most widely is MySQL. The MySQL server comes from the house of Oracle and can be installed in the Gentoo distribution of Linux. Firstly, the user has to download packages that are required to download this open source database. For this one has to run a custom command. By default MySQL is placed in the start up through the process of installation. It can be removed and put in the run command and for that, again specific commands have to be keyed in the Gentoo distribution of Linux systems.

Installing MySQL on Gentoo distribution is made up of very easy and simple steps:
  • Run the command
    • emerge dev-db/mysql

This command allows the downloading of packages required to install MySQL and the installing of them.
  • Run the command
    • emerge --config =dev-db/mysql-[version]
  • This version allows you to start configuring the server and MySQL installed initialising root password.
    • Starting or stopping the server can be done via the command:
    • /etc/init.d/mysql start/stop
  • By default installation places the MySQL server at startup. To remove it run the command
    • rc-update -del mysql
  • To put it in the run mode:
    • rc-update -add mysql 
Jean-François Pillou

Jean-François Pillou - Founder of CCM
Better known as Jeff, Jean-François Pillou is the founder of He is also CEO of CCM Benchmark and digital director at the Figaro Group.

Learn more about the CCM team