MySQL Credential - Database Connection
What is a MySQL Credential
Section titled “What is a MySQL Credential”A MySQL credential allows your workflows to execute SQL queries, read and write data in MySQL and MariaDB databases. It is used with SQL query nodes.
Configuration Fields
Section titled “Configuration Fields”| Field | Description | Example |
|---|---|---|
| Host | Database server address | db.example.com or localhost |
| User | Database username | root |
| Password | User password | my_password |
| Database | Database name | my_database |
| Port | Connection port (default: 3306) | 3306 |
How to Get Connection Details
Section titled “How to Get Connection Details”Local Database (XAMPP, WAMP, MAMP)
Section titled “Local Database (XAMPP, WAMP, MAMP)”Host: localhost or 127.0.0.1Port: 3306User: rootPassword: (empty by default in XAMPP, or what you configured)Database: your database nameShared Hosting (cPanel)
Section titled “Shared Hosting (cPanel)”- Access cPanel
- Go to MySQL Databases
- Create a database and user if they don’t exist
- Assign the user to the database with the necessary permissions
- The host is usually
localhostor shown in the database details
Cloud Services
Section titled “Cloud Services”Amazon RDS (MySQL):
- Go to AWS Console > RDS > Your instance
- Copy the Endpoint
- Default port: 3306
PlanetScale:
- Go to your database on planetscale.com
- Click Connect
- Copy the connection details
DigitalOcean Managed Database:
- Go to your database cluster
- Download or copy the connection parameters
Troubleshooting
Section titled “Troubleshooting”Connection Error
Section titled “Connection Error”- Verify the host and port are correct
- Make sure MySQL accepts remote connections (check
bind-addressinmy.cnf) - Check that the firewall allows connections to port 3306
Access Denied
Section titled “Access Denied”- Verify username and password
- Make sure the user has permission to connect from the Floogos host
- In MySQL you can check with:
SELECT user, host FROM mysql.user;
Database Not Found
Section titled “Database Not Found”- Verify the database name is correct (case-sensitive on Linux)
- Make sure the database exists:
SHOW DATABASES;