User Account Setup Guide
Creating Your MySQL User
- Connect to MySQL as root or an admin user
- Create a new user with the following command:
Configuring Permissions
Grant the necessary permissions to your new user:Required Permissions
At minimum, the user account needs:- SELECT privilege on required tables
- SHOW VIEW privilege (if using views)
- SHOW DATABASES privilege
Network Configuration
Firewall Settings
Ensure your MySQL server accepts connections from Index’s IP addresses:- Configure your firewall rules
- Update MySQL’s
bind-address
if needed - Verify port 3306 is accessible
SSL/TLS Configuration
If using SSL/TLS encryption:- Enable SSL in your MySQL server
- Provide the CA certificate if required
- Configure SSL mode in connection settings
Common Issues
Connection Timeout
If you encounter connection timeouts:- Verify the host and port are correct
- Check firewall rules
- Confirm network connectivity
Access Denied
If you see “Access Denied” errors:- Verify username and password
- Check user permissions
- Confirm the user’s host matching pattern
SSL/TLS Issues
For SSL-related errors:- Verify SSL is properly configured
- Check certificate validity
- Confirm SSL requirements match server configuration