Ensure your MySQL database is active and accessible from the machine running Databrain.
Accessibility is dependent on your MySQL user privileges and network settings. The easiest way to verify if Databrain can connect to your MySQL database is via the check connection tool in the UI. For detailed setup and permissions, refer to the MySQL documentation.
Read Access on Tables and information_schema: Grant read access permissions to the tables within MySQL as well as the information_schema schema. This allows Databrain to retrieve necessary information and replicate data accurately. You can assign appropriate permissions to the user or role accessing MySQL to enable reading from tables and accessing metadata stored in the information_schema.
–- Grant SELECT permission on all tables in the specified schema
GRANT SELECT ON schema_name.table_name TO ;
This is a custom name you decide for identification within Databrain. Choose a name that is relevant to your MySQL setup.
Host
For remote servers, it would be the IP address or domain name of the machine where MySQL is running.
If you have access to the MySQL shell, you can also use the command SHOW VARIABLES WHERE Variable_name = 'hostname'; to retrieve the hostname.
Port
The default port for MySQL is 3306. However, this can be customized. If you’re in the MySQL shell, you can use the command SHOW VARIABLES WHERE Variable_name = 'port'; to check the port MySQL is running on.
Username
The username is the one you use to log in to the MySQL shell. If you’re logged in, you can use the command SELECT USER(); to display the current user.
Password
The password is associated with your MySQL username. MySQL does not provide a direct method to view passwords due to security reasons. If you’ve forgotten the password, you’ll need to reset it or consult your database administrator.