• Resolved libinwebster

    (@libinwebster)


    Hey, I tried to use a plugin to connect to a database, but it said “Couldn’t connect to the OpenCart database.” displaying the error. I verified the OpenCart database information twice. It appears the same. but I continue to get this problem.

    I’ve attached the error message which I’m getting.

    === START test_database 2023-06-15 11:16:22 ===
    [ERROR] Couldn’t connect to the OpenCart database. Please check your parameters. And be sure the WordPress server can access the OpenCart database.

    SQLSTATE[HY000] [2002] No such file or directory

Viewing 1 replies (of 1 total)
  • Plugin Author Kerfred

    (@kerfred)

    If OpenCart and WordPress are not installed on the same host, you can do this:

    • export the OpenCart database to a SQL file (with phpMyAdmin for example)
    • import this SQL file on the same database as WordPress
    • run the migration by using WordPress database credentials (host, user, password, database) instead of the OpenCart ones in the plugin settings. You can find the WordPress credentials in the wp-config.php file.
Viewing 1 replies (of 1 total)
  • The topic ‘[ERROR] Couldn’t connect to the OpenCart database.’ is closed to new replies.