Please have a look at the FAQ https://wordpress.org/plugins/fg-joomla-to-wordpress/faq/ :
– export the Joomla 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 Joomla ones in the plugin settings.
Hello. I have been having the same problem.
I did export the old database to SQL file and then imported it on the new WordPress database. Which went fine. All the files are shown.
But when I run the migration in Import Joomla (FG), it still gives me the error message:
[fgj2wp] Couldn’t connect to the Joomla database. Please check your parameters. And be sure the WordPress server can access the Joomla database.
SQLSTATE[HY000] [2002] Connection timed out
I tried both, old database I used only for Joomla, and the new WordPress database with imported SQL file. Nothing helps…
Please ask your system administrator. The message “Connection timed out” means that there is an issue on your database server.
Now I am getting this error:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
Is it still a database server?
I asked there, but no quick response.
EDIT:
I also have a warning saying the same and the location of the mistake.
I looked up the location: this is the line that has something wrong in it, according to Import Joomla (FG)
$joomla_db = new PDO(‘mysql:host=’ . $this->plugin_options[‘hostname’] . ‘;port=’ . $this->plugin_options[‘port’] . ‘;dbname=’ . $this->plugin_options[‘database’], $this->plugin_options[‘username’], $this->plugin_options[‘password’], array(PDO::MYSQL_ATTR_INIT_COMMAND => ‘SET NAMES \’UTF8\”));