-
My goal: Connect Retool to WP-Engine MYSQL
-
Issue: Connection Times Out
-
Steps I've taken to troubleshoot: Spoken to support on WP-Engine
-
Additional info: (Cloud or Self-hosted, Screenshots) Cloud
Used this info to configure connection.
2. Locate Your Database CredentialsYou will need four key pieces of information from your WP Engine dashboard:
Field Description Host Usually [environment].managed-mysql.wpengine.comor a specific IP address provided in your portal.Database Name Found under the "Database" tab (often starts with wp_).Username Your database user (ensure they have "Remote" access permissions). Password The specific password for that database user. 3. Configure the Connection in Retool
Once the IPs are whitelisted and you have your credentials, head back to Retool.
-
Create Resource: Select MySQL as the resource type.
-
Display Name: Something descriptive like
WP_Engine_Prod. -
Host/Port: Enter the host address. The default MySQL port is 3306.
-
Database Name/User/Password: Enter the details gathered in Step 2.
-
SSL: WP Engine usually requires encrypted connections. Toggle Enable SSL on. (In most cases, you don't need to upload a specific CA certificate, as Retool uses standard libraries).
-
Two thoughts on this:
- Did you try to increase the timeout settings in querys or do you get the timeout when you create the ressource?
- Maybe you need to add retools ip-addresses to your database. Its common practice to limit the access for certan ips
Thank you. The timeout is when I create the resource. I have confirmed with WP-Engine I do not need to allow the retool IP addresses and they are not blocked. I have successfully conected to the database using MYSQL workbench with the same settings the only difference is the SSH Username, which can’t be specified in Retool.
I am not a big expert on mysql via tunnel, but one thought is…Maybe you need to use the internal ip address of the database, when using an ssh tunnel
Hi, thankyou
I did try that too.
Thanks
Hi @businessequip,
My hunch is that you may need a CA cert.
Does WP engine require SSH or is that optional?
Hi it is optional
Jim