Database Setup
Prerequisites
Create Database and User
mysql -u root -p
CREATE DATABASE pteroca;
CREATE USER 'pterocauser'@'127.0.0.1' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON pteroca.* TO 'pterocauser'@'127.0.0.1';
FLUSH PRIVILEGES;
EXIT;What These Commands Do
Configure Database Connection
Run the Configuration Command
Follow the Interactive Prompts
1. Configure Database
2. Set Database Credentials
3. Run Migrations
Verify Database Setup
Check Database Tables
Check .env File
Troubleshooting
Connection Refused
Access Denied
Migration Errors
Security Best Practices
Next Steps
Related Guides
Last updated