
That I am going to compile and install the client, so please do not message me and tell me that this can be done using Ubuntu package manager. PHP) can use the libraries to access MySQL Server installed on some other computer. This tutorial only explains how to install theĬlient libraries, so that other software (e.g. NOTE: I am not going to explain how to install MySQL Database Server (DBMS System) in this tutorial. YourĬonfiguration may be different from mine but the installation steps below should work fine for most configurations with little or no change at all (including other Linuxĭistributions and even unixes e.g. I have used a Mac Mini (powerpc/ppc architecture). MySQL Client tools, binaries, and library version 5.0.45. $ mysqladmin -u root -p'oldpass' password 'newpass' (in case the current password is not empty)Īfter MySQL server installation, it is strongly recommend that you create a MySQL user account with appropriate access privileges (instead of logging in as root).This short tutorial shows you how to install MySQL Client tools, binaries, and library on Ubuntu Linux Server. $ mysqladmin -u root password 'newpass' (in case the current password is empty) To set the root password, first install MySQL client (explained below), and run the following command. Thus, make sure to set the root password after installation.

On CentOS, Fedora or RHEL, the default installation of MySQL has no root password set, which means that anyone can log in to the root without entering any password. Install and auto-start MySQL server on boot in Fedora $ sudo yum install mysql-server Install and auto-start MySQL server on boot in CentOS or RHEL $ sudo yum groupinstall "MySQL Database server"

Once installation is completed, MySQL server gets started immediately, and is set to start automatically upon boot.

Install MySQL Server in Linux Install MySQL server in Ubuntu or Debian $ sudo apt-get install mysql-serverĭuring installation, you will be asked to provide the initial root password of the MySQL server. In this tutorial, I will describe how to install MySQL server and client on Linux, by using a given distro's default package manager. MySQL runs in a server-client architecture, where a MySQL server manages persistent databases and provides SQL query interfaces, while MySQL clients query the MySQL server to access MySQL databases. MySQL is the most popular open-source database management system supporting transactional relational databases.

How to install MySQL server and client on Linux
