Linux · Programming
MySQL
MySQL is an open‑source relational database server that stores and retrieves data using SQL.
- License
- GPL-2.0
- Latest version
- 26.10.0
What is MySQL?
MySQL, originally created in 1995, has grown into one of the most widely used database engines for web and enterprise applications. It is maintained by Oracle Corporation but remains community‑driven through the MySQL Community Edition. The server runs on Linux, Windows, and macOS, but its Linux packages are the most mature.
MySQL is aimed at developers, system administrators, and data analysts who need a reliable, high‑performance database. It supports standard SQL, ACID transactions, and a variety of storage engines, making it suitable for both small projects and large, mission‑critical deployments.
Compared with Windows‑based SQL Server, MySQL feels lighter and more flexible. It integrates easily with the Linux ecosystem, uses native package managers, and offers a straightforward command‑line interface. However, it lacks some of the advanced analytics and business‑intelligence tooling that SQL Server provides out of the box.
Best for: Developers and sysadmins needing a lightweight, open‑source database for web or application back‑ends.
Key features of MySQL
- Standard SQL support
- ACID‑compliant transactions
- Multiple storage engines (InnoDB, MyISAM)
- Replication and clustering
- Stored procedures and triggers
- Full‑text search and indexing
Pros
- Free and open source
- Large community and documentation
- Cross‑platform compatibility
- High performance for read‑heavy workloads
- Good support for web applications
Cons
- Limited built‑in GUI tools compared to SQL Server
- Less advanced analytics features
- Requires manual configuration for complex replication
- License changes by Oracle can affect enterprise use
Windows programs MySQL replaces
How to install MySQL on Linux
sudo apt install mysql-8.0sudo dnf install mysql8.0Tips for Windows users
When moving from SQL Server to MySQL, export your databases with sqlcmd -Q "BACKUP DATABASE..." and import into MySQL with mysqlimport or mysqldump. Table and column names are case‑sensitive on Linux, so adjust scripts accordingly. MySQL uses Ctrl+C to cancel queries, and the default port is 3306. Replace SSMS scripts with MySQL Workbench or the command line for administration.
MySQL: frequently asked questions
Is MySQL still actively maintained?
Yes, the community edition receives regular updates and security patches.
Can I use MySQL on Ubuntu?
Absolutely. Install it with sudo apt install mysql-server and follow the setup wizard.
Does MySQL support stored procedures?
Yes, MySQL supports stored procedures, triggers, and events, though syntax differs slightly from SQL Server.
How do I enable replication?
Configure my.cnf with server-id, set up a master and slave, and use CHANGE MASTER TO commands.
Updated