Manage Your Remote Database via LightSail’s phpMyAdmin Using PuTTY on Windows 🖥️
Prerequisites:
- LightSail Instance
- PuTTY on Windows
Steps:
Install PuTTY:
- Download and install from PuTTY’s official site.
Generate Private Key:
- Open PuTTYgen.
- Download the default key from your LightSail instance.
- Load the key in PuTTYgen and save the private key (e.g., “mykey”).
Get phpMyAdmin Credentials:
- Connect to your LightSail instance using SSH.
- In the SSH terminal, navigate to the WordPress directory:bash
cd stack/wordpress
- Display the wp-config.php file:bash
cat wp-config.php
- Copy the database username and password.
Configure PuTTY:
- Session: Enter LightSail’s IP and port 22, then save the session.
- SSH > Auth: Browse and select your private key.
- Tunnels: Add a new tunnel with:
- Source Port: 8888
- Destination:
localhost:80
- Data: Set auto-login username to “bitnami”.
Open Terminal:
- In the “Session” category, click “Open” and log in with “bitnami”.
Access phpMyAdmin:
- Open your browser and go to:
http://localhost:8888/phpmyadmin/index.php
- Open your browser and go to:
Log into phpMyAdmin:
- Use the copied username and password to log in 🗝️.
You’re In:
- 🎉 Congratulations, you’re now connected!