Skip to content

emka.web.id

writing knowledge, recording civilization

Menu
  • Home
  • Tutorial
  • Search
Menu

Cara Install MariaDB di Ubuntu 24.04

Posted on June 6, 2024

MariaDB, sebagai software database open-source yang populer, kerap menjadi pilihan untuk menyimpan dan mengelola data aplikasi. Ingin menggunakan MariaDB di Ubuntu 24.04? Ikuti panduan lengkap berikut ini!

Persiapan Sebelum Instalasi:

  • Terminal: Buka jendela terminal dengan menekan Ctrl + Alt + T pada keyboard Anda. Terminal adalah antarmuka yang digunakan untuk menjalankan perintah di Linux.
  • Koneksi Internet: Proses instalasi membutuhkan koneksi internet agar sistem dapat mengunduh paket MariaDB terbaru.

Langkah-langkah Instalasi MariaDB:

  1. Update Sistem Ubuntu: Sebelum instalasi, disarankan untuk memperbarui daftar paket dan software di Ubuntu. Ini memastikan Anda mendapatkan versi terbaru dan teraman dari MariaDB. Ketik perintah berikut di terminal dan tekan enter:
   sudo apt update && sudo apt upgrade -y
  • sudo: Menjalankan perintah dengan akses administrator.
  • apt: Package manager bawaan Ubuntu untuk mengelola software.
  • update: Memperbarui daftar paket yang tersedia.
  • upgrade: Memperbarui software yang sudah terinstall ke versi terbaru.
  • -y: Opsi ini secara otomatis menjawab “ya” untuk konfirmasi instalasi. Proses update mungkin memakan waktu beberapa menit tergantung kecepatan internet Anda.
  1. Instalasi MariaDB Server: Setelah update selesai, saatnya menginstall MariaDB server. Ketik perintah berikut dan tekan enter:
   sudo apt install mariadb-server

Perintah ini akan mengunduh dan menginstall paket mariadb-server yang berisi server MariaDB. Terminal akan menampilkan informasi mengenai paket yang akan diinstall dan ukurannya. Tekan y dan enter untuk melanjutkan proses instalasi. Tunggu beberapa saat sampai proses instalasi selesai.

  1. Memverifikasi Status MariaDB: Setelah instalasi selesai, pastikan service MariaDB berjalan dengan baik. Ketik perintah berikut dan tekan enter:
   sudo systemctl status mariadb

Perintah ini akan menampilkan status service MariaDB. Jika service berjalan dengan baik, Anda akan melihat output seperti “active (running)”.

Catatan:

  • Jika service MariaDB tidak berjalan, Anda dapat mengaktifkannya secara otomatis saat system boot dan merestart service tersebut dengan menjalankan perintah berikut secara berurutan: sudo systemctl enable mariadb sudo systemctl restart mariadb Selamat! MariaDB server sudah terinstall dan berjalan di Ubuntu 24.04 Anda. Namun, langkah selanjutnya adalah mengamankan MariaDB untuk penggunaan produksi.

Langkah Tambahan: Mengamankan MariaDB

Setelah instalasi, disarankan untuk mengamankan MariaDB dengan langkah-langkah berikut:

  1. Menjalankan Skrip Keamanan MariaDB: MariaDB menyediakan skrip bernama mysql_secure_installation yang membantu Anda mengatur password root dan opsi keamanan lainnya. Jalankan skrip ini dengan perintah berikut dan tekan enter:
   sudo mysql_secure_installation

Ikuti petunjuk pada terminal untuk mengatur password root yang kuat dan opsi keamanan lainnya.

  1. Membuat Pengguna dan Database Baru: Biasanya, Anda tidak akan menggunakan user root untuk mengakses MariaDB secara langsung. Lebih baik membuat user baru dengan hak akses terbatas ke database tertentu. Anda dapat mempelajarinya di dokumentasi resmi MariaDB.

Kesimpulan:

Dengan mengikuti panduan ini, Anda telah berhasil menginstall dan mengamankan MariaDB server di Ubuntu 24.04. MariaDB siap digunakan untuk menyimpan dan mengelola data aplikasi Anda. Selamat mencoba!

Terbaru

  • Why Your Private Subnet is Offline: The DevOps Interview Breakdown
  • The Laravel-ification of Everything: Why Go and Rust are Racing to Steal PHP’s Crown
  • Why Redis is actually fast
  • The Fake 2FA Scandals and Fake AI Apps on Microsoft Store
  • Stop Overengineering Your Infrastructure: Docker Compose vs Kubernetes Resources
  • Traefik 3.8 New Feature: Yaegi v2 and the Gateway API Finally Make Custom Plugins Worth the Effort
  • Raspberry Pi OS: Why the November Update is a Win for Minimalism
  • React Can useState Hook Explained in 60 Seconds
  • How Do You Build an MMO Solo?
  • NixOS 26.11 “Zokor” Might Be the Most Practical Release for Desktop Power Users Yet
  • Why Your AWS Bill Can Just Tripled Overnight?
  • Why Indonesia’s Battle with Google is a Dangerous Game of Chicken
  • SYS010 Malware Explained: How Malvertising on Meta Bypasses MFA and Hijacks Your Digital Identity
  • Linux Mint 27 Adrien: Why This Version Jump is Make Sense?
  • NFS2ROOT: A 12-Year Reminder That Your Linux Kernel Is Never Truly Safe
  • The Death of Browsing and the Rise of the “Answer Engine Economy”
  • What’s new in Proxmox VE 9.3?
  • Why Your Morning Routine Needs an API: The Art of iOS Automation
  • Proof of Work is the New Certification: 5 AWS Projects to Build Before 2027
  • Omarchy is Our first agentic operating system
  • The Death of Popper.js: Why CSS Anchor Positioning is the New Standard for Connected UI
  • Why Your 2027 Cloud Career Depends on Moving Beyond Basic AWS Services
  • Why Discord is Ditching Electron for Rust: Is GPUi Actually the Future?
  • The End of the KDE Era: Why KaOS 2026.11 Is a Bold, Dangerous Gamble
  • The $2 Billion Code: Why GTA 6 is a Technical Miracle and a Hardware Nightmare
  • LibreDB Studio Explained
  • PHP 8.6 Is Officially Out: What’s New, What Breaks, and How We’re Upgrading
  • Rewriting Legacy Apps: 4 Data Migration Strategies That Actually Work
  • How to Install Clean Windows 11 Without Any Bloatware (Step-by-Step Guide)
  • IP Address Rate Limiting is Flawed—Here is the Right Way to Do It
  • Canonical: Ubuntu coming soon to Snapdragon X2 Series platforms
  • Finally, wolfSSL adds post-quantum algorithms!
  • How to Run Gemma Embedding Models Using Docker
  • Deploy Nginx Rootful Container with Podman
  • How to Sandboxing Browser on Linux Desktop with Flatpak
  • Digital Ghetto: People are hacking their own houses with Claude
  • How to Let ChatGPT Control Your Computer From Your Phone (Step-by-Step)
  • Ternary Bonsai 2.5 at 215 TPS! Splash + DFlash2 on Apple M5 Max
  • When to use an MCP server vs CLI with DevTools for agents
  • Your MCP Server Is a Search Result Now

©2026 emka.web.id | Design: Newspaperly WordPress Theme