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)
- Download XAMPP from apachefriends.org.
- Install it and open the XAMPP Control Panel.
- Click Start next to MySQL (and Apache).
- Open
http://localhost/phpmyadminto manage databases visually.
Option 2: MySQL Server
- Download MySQL Community Server from dev.mysql.com.
- Run the installer; set a root password (remember it!).
- Finish setup and verify in a terminal:
mysql -u root -pEnter your password to open the MySQL prompt.
Verify Installation
mysql --versionmysql 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.
💻 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ें.