MySQL On Linux tutorial | Linux Today

MySQL On Linux tutorial

Written By
ME
Mokhtar Ebrahim
Aug 26, 2019

In this post, we will cover many aspects of MySQL on Linux. First of all, how to install it, how to perform basic CRUD operations, how to import & export data, play with the MySQL engine itself such as setting the root user password and much more.

1 Install MySQL on Linux Ubuntu and CentOS
2 Check if MySQL is installed
3 Where does MySQL installed on Linux?
4 Where is the MySQL configuration file (my.cnf)?
5 Start MySQL & enable on startup
6 Check if MySQL is running
7 Check which port MySQL is running
8 Restart MySQL
9 Set root password for MySQL
10 Check MySQL version
11 Create a user on MySQL
12 Grant all privileges
13 List all MySQL databases
14 Create a MySQL table
15 CRUD operations
15.1 Create a new record (Insert)
15.2 Read data from the Table (Select)
15.3 Update data
15.4 Delete a record
16 Import SQL file
17 Export database
18 Backup database
19 Make MySQL case insensitive
20 Where are MySQL logs on Linux?
21 Uninstall MySQL
22 Conclusion

ME

Mokhtar Ebrahim

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.