Skip to main content
50% off all plans, limited time. Starting at $2.48/mo
MariaDB

MariaDB

MariaDB is a MySQL-compatible relational database. Drop-in replacement, faster on most workloads, with a community-first roadmap and no Oracle dependency. Used at Wikipedia, Booking.com, and the entire Debian/Ubuntu default-MySQL stack.

At a glance

7.8k

GitHub stars

35

Page views

291

Active installs

License GPL-2.0 Version Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

Active installs is sample data (staging preview); real metric wires in before launch.

Verify Installation

mariadb --version

Access MariaDB Shell

As root:

mariadb -u root -p

Password is securely stored in /root/.cloudzy-creds

Connect to a Specific Database as a User

mariadb -u <username> -p -D <database> -h <host> -P <port>
  • -u <username> → Database user
  • -p → Prompt for the user’s password
  • -D <database> → Database name to connect to
  • -h <host> → Hostname of the MariaDB server (e.g., localhost)
  • -P <port> → Port (default: 3306)

Common MySQL Commands

  • SHOW DATABASES;: List all databases
  • USE DB_NAME;: Switch to a database
  • SHOW TABLES;: List tables in the database
  • DESCRIBE TABLE_NAME;: Show table structure
  • SELECT * FROM TABLE_NAME;: View table data
  • EXIT;: Quit MySQL shell

Important Files & Directories

  • /root/.cloudzy-creds → Stored database credentials
  • /etc/mysql/ → MySQL configuration files
  • /var/lib/mysql/ → Database data files
  • /var/log/mysql/ → Log files

Service Management

systemctl status mariadb
systemctl restart mariadb

More in Database Tools

Related apps.

Deploy MariaDB now. From $2.48/mo.