Thanks for the screenshot, @farhan.
You can try making the change below to append the port number in your wp-config.php
:
-
In Local, visit your site and note the port number on the Database tab.
-
Edit your site’s
wp-config.php
file, replacing this line:define( 'DB_HOST', 'localhost' );
With localhost and the port number:
define( 'DB_HOST', 'localhost:[your-port-number-here]' );
For example, assuming 10061 is the port number from the database tab:
define( 'DB_HOST', 'localhost:10061' );
-
Try running
wp db import local.sql
again. (You should not need to append the--ssh
flag.)
2 Likes
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.