Prerequisites
Connection Methods
Choose the connection method that best fits your security requirements and infrastructure setup.
Database Connection Form
Connect directly using your database credentials with SSL encryption.
Connection String
Use a MariaDB connection string with SSL encryption.
SSH Tunnel
Connect through an SSH tunnel for maximum security.
Connection Guide
Step 1: Access MariaDB Integration
Navigate to Integrations in Datapad and select MariaDB:
Step 2: Fill Connection String
Enter your MariaDB database connection string:
Required Fields:
- Connection Name
- Connection String
- Database Schema
Step 3: Fill Connection Details
Enter your MariaDB database connection details:
Required Fields:
- Database Host
- Port (default: 3306)
- Database Name
- Username
- Password
- SSL Mode
Create Read-Only User (Recommended)
For security, create a dedicated user with read-only permissions:
-- Create a new user for Datapad
CREATE USER 'datapad_readonly'@'%' IDENTIFIED BY 'secure_password';
-- Grant connect permission to the database
GRANT USAGE ON *.* TO 'datapad_readonly'@'%';
-- Grant select permissions on specific database
GRANT SELECT ON your_database.* TO 'datapad_readonly'@'%';
-- Apply the changes
FLUSH PRIVILEGES;
Example Queries
Here are some example questions you can ask once your MariaDB data is connected:
💬 Natural Language Tips
Behind the Scenes
Datapad automatically converts your natural language questions into optimized MariaDB SQL queries. You can always view the generated SQL to learn and verify the results, including MariaDB-specific functions and performance optimizations.
Troubleshooting
Connection timeout
If the connection times out:
- Check firewall settings and whitelist Datapad IPs
- Verify the host and port are correct
- Ensure MariaDB is accepting connections
- Test connectivity from your network
Authentication failed
If authentication fails:
- Verify username and password are correct
- Check if the user has access to the database
- Ensure user can connect from external hosts ('%' wildcard)
- Try connecting with the same credentials using mariadb client
SSL connection issues
If SSL connection fails:
- Verify SSL is enabled on your MariaDB server
- Check if you have valid SSL certificates
- Try different SSL modes (REQUIRED, PREFERRED, DISABLED)
- Contact support for help with certificate issues