General Questions

Can't connect to MySQL Database

Troubleshooting: Can't Connect to MySQL Database During Data Migration

Encountering a "Can't connect to MySQL database" error during your data migration? This typically indicates a problem with accessing your source or target store's database. Here are the common reasons and how to resolve them to ensure a smooth data migration with Cart2Cart:

Possible Causes of MySQL Connection Errors

  • Incorrect Database Credentials: Double-check the database host, username, password, and database name you've entered in the Cart2Cart setup. Even a small typo can prevent a successful connection. Contact your hosting provider or system administrator if you're unsure of the correct credentials.
  • Firewall Restrictions: Your server's firewall might be blocking connections from Cart2Cart's servers. You may need to whitelist our IP addresses in your firewall settings. Please contact our support team via Live chat to obtain a list of IP addresses to whitelist.
  • Remote MySQL Access Disabled: Some hosting providers disable remote MySQL access by default. You'll need to enable it in your hosting control panel (e.g., cPanel, Plesk) or request your hosting provider to enable it for you.
  • Incorrect Configuration File Settings: If you are using a custom configuration file, ensure that the database access details within the file are accurate and up-to-date.
  • Insufficient Permissions: The user account you're using to connect to the database might lack the necessary permissions (e.g., SELECT, CREATE, INSERT, UPDATE, DELETE) on the database. Grant the user account full permissions to the database, or at least the permissions required for the data migration to proceed.
  • MySQL Server Not Running: Verify that your MySQL server is running and accessible. You can usually check this through your hosting control panel or by contacting your hosting provider.
  • Outdated MySQL Version: While Cart2Cart supports a wide range of MySQL versions, using a very old or unsupported version could cause compatibility issues. Consider upgrading your MySQL server to a more recent, stable version.

Troubleshooting Steps for MySQL Connection Issues During Data Migration

  1. Verify Credentials: Carefully review and re-enter your database credentials in the Cart2Cart migration setup.
  2. Check Firewall Settings: Ensure that your firewall is not blocking connections from Cart2Cart's servers.
  3. Enable Remote Access: If remote MySQL access is disabled, enable it in your hosting control panel or contact your hosting provider.
  4. Review Configuration File: Double-check the database access details in your configuration file, if applicable.
  5. Grant Sufficient Permissions: Ensure that the user account has the necessary permissions on the database.
  6. Check MySQL Server Status: Verify that your MySQL server is running and accessible.
  7. Update MySQL Version: Consider upgrading your MySQL server to a more recent, stable version.

If you've tried these steps and are still unable to connect to your MySQL database, please contact our support team via Live chat. They can provide further assistance and help you diagnose the issue.

Ready to migrate your store? Start your free demo with Cart2Cart today!


Do you need help? Contact our support team

Just set up the migration and choose the entities to move – the service will do the rest.

Try It Free

Delegate the job to the highly-skilled migration experts and get the job done.

Choose Package