迁移失败-使用Drupal 9

时间:2020-07-29 09:43:29

标签: drupal database-migration

我是Drupal的新手,我的老板希望我将所有文章从旧博客迁移到我们的新Drupal网站,所以我使用doc迁移Api创建了一个插件,将数据从旧博客传输到新博客,但是当我无法进行迁移,看来drupal无法到达第二个数据库,但我有此警告和错误:

 [warning] SoapClient::SoapClient(): I/O warning : failed to load external entity "http://www.webservicex.net/globalweather.asmx?WSDL" Soap.php:74
 [error]  Could not retrieve source count from weather_soap: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.webservicex.net/globalweather.asmx?WSDL' : failed to load external entity "http://www.webservicex.net/globalweather.asmx?WSDL"

 [error]  Could not retrieve source count from wine_role_json: Error message: cURL error 6: Could not resolve: jiy-blog2.test (Domain name not found) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at http://jiy-blog2.test/migrate_example_advanced_position?_format=json.

我不理解此错误,我在文件settings.php中连接了两个数据库:

* @code
 * $databases['default']['default'] = [
 *   'database' => 'databasename',
 *   'username' => 'sqlusername',
 *   'password' => 'sqlpassword',
 *   'host' => 'localhost',
 *   'port' => '3306',
 *   'driver' => 'mysql',
 *   'prefix' => '',
 *   'collation' => 'utf8mb4_general_ci',
 * ];
 * $databases = ['migrate']['default'] = [
 *  'database' => 'jiy_old_local',
 *  'username' => 'root',
 *  'password' => 'root',
 *  'prefix' => "",
 *  'host' => 'localhost',
 *  'port' => '3306',
 *  'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
 *  'driver' => 'mysql',
 * ];
 * @endcode

0 个答案:

没有答案