JIYIK CN >

Current Location:Home > Learning > DATABASE > MySQL >

Installing MySQL Client in Linux

Author:JIYIK Last Updated:2025/04/22 Views:

MySQL is an abbreviation for Structured Query Language which is a relational database management system. It is an open source database which is freely available and used for both large and small applications.

The use cases are in school applications, enterprise applications, and e-commerce platforms. Relational databases are easily explained, understood, and used by different people to maintain data.

The MySQL team takes ownership of creating, managing, and operating the database. Their responsibilities include pushing out new features and executing system releases.

There are various operations like create, read, update and delete, also known as CRUD operations in MySQL. Developers need these operations to operate on the database.


Commands to install MySQL client in Linux

Environments like Linux and Unix work as a command line interface and run only with the help of commands. A simple statement executed in Linux environment is as follows.

yum install mysql

Or, more generally, we have the following statement.

yum[options]<command>[package]
  1. Here, options is the optional part of command and other options act as arguments to the keyword.
  2. For this command to work, you need to install yum in your Linux system. The yum keyword is a package management tool and is the acronym for YellowDog Updater Modified.

    It has properties like install, upgrade, remove and add packages to the user's system. It can automatically perform analysis on the metadata in the repository and can perform updates.

    There are some graphical representations, such as PackageKit and the gnome package management application.

  3. The install keyword installs the latest version of a package group. It ensures that all dependencies are satisfied for the package name.
  4. mysql is the package name that can be downloaded and installed from the repository. Download the MySQL Yum repository here.

    You can get the correct repository version from the link as per your system compatibility and requirement. The yum package manager does any upgrade and version management for the repository.

    You can check the MySQL repository based on the required system configuration in the above URL. The above command will download, maintain and install the complete package in Linux environment.


Steps to install and verify MySQL client in Linux

  1. This command can be run in the system's terminal. Press Ctrl+Alt+T and a terminal window will open and pop up on the screen.
  2. Start MySQL installation using command.
    sudo yum install mysql-server
    
  3. Enter your password when prompted on the screen.
  4. Press Y to complete the installation process. It will take some time to download and install the packages.
  5. After the process is completed, check the MySQL version using the command.
    mysql –version
    
  6. To start the MySQL server, use the following command.
    mysql -u root -p
    
  7. Then, use this command to display the database.
    show databases;
    

Previous:Subtraction in MySQL

Next: None

For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.

Article URL:

Related Articles

Subtraction in MySQL

Publish Date:2025/04/21 Views:140 Category:MySQL

MINUS Operator is used in SQL to find unique elements in table A that are not present in table B. Through this tutorial, we will see how to emulate the operator in MySQL MINUS to get the desired result. We will understand it by using NOT IN

INTERSECT Operator in MySQL

Publish Date:2025/04/21 Views:99 Category:MySQL

This article will help you understand INTERSECT the operator. Although MySQL does not support INTERSECT and MINUS / EXCEPT , there are other ways to simulate this functionality. We will see INTERSECT what is , its benefits, and learn variou

Deleting using Join in MySQL

Publish Date:2025/04/21 Views:158 Category:MySQL

This tutorial article will show you how to use MySQL JOIN methods to delete data from multiple tables. This is useful when you are simultaneously deleting records from one table that are related to a specific record in another table. DELETE

MySQL using LIKE in case insensitive search

Publish Date:2025/04/21 Views:131 Category:MySQL

This tutorial article will show you how to use LIKE the operator to search a column. We will show you how to use it correctly to include all results that meet certain criteria, regardless of whether the value is uppercase or lowercase. LIKE

Loop PHP MySQLi Get Array Function

Publish Date:2025/04/21 Views:105 Category:MySQL

MySQLi fetch function is used to access data from the database server. After fetching the data, you can also iterate over it MySQLi with queries. In this article, we will see mysqli_fetch_array() the use of functions and methods to iterate

Generate a random and unique string in MySQL

Publish Date:2025/04/21 Views:78 Category:MySQL

Today, we will learn to use various functions in MySQL to generate random and unique strings. These functions include MD5() , RAND() , , SUBSTR() and UUID() . There is no inbuilt method to generate random string in MySQL, but there are many

Changing MySQL root password on Mac

Publish Date:2025/04/21 Views:161 Category:MySQL

This article teaches you how to change the MySQL user password on OS X. root We will be using XAMPP so that you can change the password using the MySQL console. Installing XAMPP for OSX First, download and install XAMPP for OSX from Apache

Using CURRENT_TIMESTAMP as a default value in MySQL

Publish Date:2025/04/21 Views:196 Category:MySQL

This article teaches you how to use as 5.6.5 in MySQL versions lower than . Thus, you can prevent MySQL error 1293. CURRENT_TIMESTAMP DEFAULT Our approach involves reordering table columns and using DEFAULT 0 and time values. Reproduce the

If ELSE in MySQL

Publish Date:2025/04/11 Views:86 Category:MySQL

In this tutorial, we aim to explore how to use IF ELSE the statement in MySQL. One of the key roles of a data analyst is to gather insights from the data and produce meaningful results. It can be done with the help of several data filtering

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Recommended

Tags

Scan the Code
Easier Access Tutorial