MySQL + SQL · Lesson 1

Mysql Installation

Installing MySQL

There are two easy ways to get MySQL running: install MySQL Server directly, or use XAMPP which bundles MySQL with phpMyAdmin — best for students and PHP projects.

Option 1: XAMPP (Easiest)

  1. Download XAMPP from apachefriends.org.
  2. Install it and open the XAMPP Control Panel.
  3. Click Start next to MySQL (and Apache).
  4. Open http://localhost/phpmyadmin to manage databases visually.

Option 2: MySQL Server

  1. Download MySQL Community Server from dev.mysql.com.
  2. Run the installer; set a root password (remember it!).
  3. Finish setup and verify in a terminal:
mysql -u root -p
Enter your password to open the MySQL prompt.

Verify Installation

mysql --version
mysql Ver 8.0.x for ...

Summary

  • XAMPP is the easiest way (MySQL + phpMyAdmin in one click).
  • Or install MySQL Server directly and set a root password.
  • Verify with mysql --version.
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

\n

💻 Live Code Editor

Is page ki language (MYSQL) mein code likhein aur turant chalाएं — yahीं, bina kuch install kiye.
Powered by OneCompiler. Agar editor na khule to yahान naye tab mein kholein.

💻 Live Code Editor

Is page ke program yahan ready hain — chalाएं, badlें aur seekhें. Bina kuch install kiye.
Powered by OneCompiler. Editor mein code apne aap aa jata hai — Run dabaakर output dekhें. Agar load na ho to naye tab mein kholें.