MySQL
MySQL is the world's most popular open-source database, known for its performance and ease of use.
Implementation Details
- Image:
mysql:8.0 - Port:
3306 - Default User:
laravel
🔐 Security & Initialization
LaraKube provides a hardened MySQL setup:
- Application User: Instead of using the
rootaccount, LaraKube creates a dedicatedlaraveluser with scoped permissions. - Secure Passwords: All credentials are managed via Kubernetes
Secretresources, ensuring they are never stored in plain text. - Readiness Probes: Uses
mysqladmin pingto ensure the database is fully ready to handle connections before your application starts.
🔌 Connection
To connect a GUI client to your local MySQL instance:
- Open a tunnel:
larakube tunnel mysql
- Use the credentials:
- Host:
127.0.0.1 - User:
laravel - Database:
laravel
- Host: