Answers.Body: <p>We had something similar yesterday. Try the following 2 tweaks:</p>
  
  <p>1.) Delete your storage/runtime folder and then try again</p>
  
  <p>2.) If this does not help, verify the credentials in your .env file and make sure they use a DSN like: <code>DB_DSN="mysql:host=&lt;dbhost&gt;;port=&lt;dbport&gt;;dbname=&lt;dbname&gt;;"</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-15T11:55:57.727Z
Answers.Text: I'm placing a bet on number 1 :) It was a bug and it's now fixed (3.4.19.1)
Answers.UserDisplayName: Oli
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-18T06:44:20.647Z
Answers.Text: Tried both of those, still getting the same issue :(
Answers.UserDisplayName: jeb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-18T15:22:51.360Z
Answers.Text: sorry no more ideas
Answers.UserDisplayName: Matthias Redl-Mann
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-15T11:54:28.760Z
Answers.LastActivityDate: 2020-05-15T11:54:28.760Z
Answers.UserDisplayName: Matthias Redl-Mann
Body: <p>I am attempting to migrate the content from Form Builder for Craft 2 to Form Builder for Craft 3 by Roundhouse, by using the following command in terminal:
  <code>./craft migrate/up --plugin=roundhouse/form-builder</code></p>
  
  <p>However, this is then returning an error telling me my Database credentials are incorrect, despite the fact that I have been and can still access and use the website and its database through every other avenue. The error message given is as follows:</p>
  
  <pre><code>Jamess-iMac:multipaneluk jeb$ ./craft migrate/up --plugin=roundhouse/form-builder
  Password:
  Exception 'craft\errors\DbConnectException' with message 'Craft CMS can’t connect to the database with the credentials in config/db.php.'
  
  in /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/Connection.php:171
  
  Stack trace:
  #0 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(1022): craft\db\Connection-&gt;open()
  #1 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(1009): yii\db\Connection-&gt;getMasterPdo()
  #2 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(406): yii\db\Connection-&gt;getSlavePdo()
  #3 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(430): yii\db\mysql\QueryBuilder-&gt;supportsFractionalSeconds()
  #4 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(59): yii\db\mysql\QueryBuilder-&gt;defaultTimeTypeMap()
  #5 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/mysql/QueryBuilder.php(27): yii\db\mysql\QueryBuilder-&gt;init()
  #6 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\db\mysql\QueryBuilder-&gt;init()
  #7 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/QueryBuilder.php(116): yii\base\BaseObject-&gt;__construct(Array)
  #8 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/mysql/Schema.php(65): yii\db\QueryBuilder-&gt;__construct(Object(craft\db\Connection), Array)
  #9 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Schema.php(248): craft\db\mysql\Schema-&gt;createQueryBuilder()
  #10 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(856): yii\db\Schema-&gt;getQueryBuilder()
  #11 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Query.php(157): yii\db\Connection-&gt;getQueryBuilder()
  #12 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Query.php(302): yii\db\Query-&gt;createCommand(Object(craft\db\Connection))
  #13 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/Query.php(188): yii\db\Query-&gt;scalar(Object(craft\db\Connection))
  #14 [internal function]: craft\db\Query-&gt;scalar(Object(craft\db\Connection))
  #15 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/DbQueryDependency.php(106): call_user_func(Array, Object(craft\db\Connection))
  #16 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/DbQueryDependency.php(85): yii\caching\DbQueryDependency-&gt;executeQuery(Object(craft\db\Query), Object(craft\db\Connection))
  #17 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Dependency.php(86): yii\caching\DbQueryDependency-&gt;generateDependencyData(Object(yii\caching\FileCache))
  #18 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Cache.php(142): yii\caching\Dependency-&gt;isChanged(Object(yii\caching\FileCache))
  #19 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Cache.php(593): yii\caching\Cache-&gt;get('8e0694a5966c89b...')
  #20 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1775): yii\caching\Cache-&gt;getOrSet('projectConfig:i...', Object(Closure), NULL, Object(yii\caching\DbQueryDependency))
  #21 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1625): craft\services\ProjectConfig-&gt;_loadInternalConfigData()
  #22 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1614): craft\services\ProjectConfig-&gt;_getStoredConfig()
  #23 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(399): craft\services\ProjectConfig-&gt;_getLoadedConfig()
  #24 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/base/ApplicationTrait.php(1426): craft\services\ProjectConfig-&gt;get('system.timeZone')
  #25 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/base/ApplicationTrait.php(1384): craft\console\Application-&gt;_setTimeZone()
  #26 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/console/Application.php(57): craft\console\Application-&gt;_preInit()
  #27 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\console\Application-&gt;init()
  #28 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject-&gt;__construct(Array)
  #29 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/console/Application.php(89): yii\base\Application-&gt;__construct(Array)
  #30 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/console/Application.php(48): yii\console\Application-&gt;__construct(Array)
  #31 [internal function]: craft\console\Application-&gt;__construct(Array)
  #32 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass-&gt;newInstanceArgs(Array)
  #33 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container-&gt;build('craft\\console\\A...', Array, Array)
  #34 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container-&gt;get('craft\\console\\A...', Array, Array)
  #35 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/bootstrap/bootstrap.php(245): yii\BaseYii::createObject(Array)
  #36 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/bootstrap/console.php(43): require('/Users/jeb/Site...')
  #37 /Users/jeb/Sites/multipaneluk/craft(21): require('/Users/jeb/Site...')
  #38 {main}
  </code></pre>
  
  <p>I've tried using mysql in both Mamp and running through Homebrew, neither of these worked. .env credentials are 100% correct. Can't think what could be causing this.</p>
  
  <p>Many thanks</p>
  
Tags: <migration><plugin-formbuilder2>
Title: Error trying to run Migrate from terminal on Craft 3.4
ThreadText: # Error trying to run Migrate from terminal on Craft 3.4
  
  (Asked by: username_0 on 2020-05-15)
  
  I am attempting to migrate the content from Form Builder for Craft 2 to Form Builder for Craft 3 by Roundhouse, by using the following command in terminal:
  `./craft migrate/up --plugin=roundhouse/form-builder`
  
  However, this is then returning an error telling me my Database credentials are incorrect, despite the fact that I have been and can still access and use the website and its database through every other avenue. The error message given is as follows:
  
  ```
  Jamess-iMac:multipaneluk jeb$ ./craft migrate/up --plugin=roundhouse/form-builder
  Password:
  Exception 'craft\errors\DbConnectException' with message 'Craft CMS can’t connect to the database with the credentials in config/db.php.'
  
  in /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/Connection.php:171
  
  Stack trace:
  #0 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(1022): craft\db\Connection->open()
  #1 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(1009): yii\db\Connection->getMasterPdo()
  #2 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(406): yii\db\Connection->getSlavePdo()
  #3 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(430): yii\db\mysql\QueryBuilder->supportsFractionalSeconds()
  #4 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(59): yii\db\mysql\QueryBuilder->defaultTimeTypeMap()
  #5 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/mysql/QueryBuilder.php(27): yii\db\mysql\QueryBuilder->init()
  #6 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\db\mysql\QueryBuilder->init()
  #7 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/QueryBuilder.php(116): yii\base\BaseObject->__construct(Array)
  #8 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/mysql/Schema.php(65): yii\db\QueryBuilder->__construct(Object(craft\db\Connection), Array)
  #9 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Schema.php(248): craft\db\mysql\Schema->createQueryBuilder()
  #10 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Connection.php(856): yii\db\Schema->getQueryBuilder()
  #11 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Query.php(157): yii\db\Connection->getQueryBuilder()
  #12 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/db/Query.php(302): yii\db\Query->createCommand(Object(craft\db\Connection))
  #13 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/db/Query.php(188): yii\db\Query->scalar(Object(craft\db\Connection))
  #14 [internal function]: craft\db\Query->scalar(Object(craft\db\Connection))
  #15 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/DbQueryDependency.php(106): call_user_func(Array, Object(craft\db\Connection))
  #16 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/DbQueryDependency.php(85): yii\caching\DbQueryDependency->executeQuery(Object(craft\db\Query), Object(craft\db\Connection))
  #17 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Dependency.php(86): yii\caching\DbQueryDependency->generateDependencyData(Object(yii\caching\FileCache))
  #18 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Cache.php(142): yii\caching\Dependency->isChanged(Object(yii\caching\FileCache))
  #19 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/caching/Cache.php(593): yii\caching\Cache->get('8e0694a5966c89b...')
  #20 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1775): yii\caching\Cache->getOrSet('projectConfig:i...', Object(Closure), NULL, Object(yii\caching\DbQueryDependency))
  #21 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1625): craft\services\ProjectConfig->_loadInternalConfigData()
  #22 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(1614): craft\services\ProjectConfig->_getStoredConfig()
  #23 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/services/ProjectConfig.php(399): craft\services\ProjectConfig->_getLoadedConfig()
  #24 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/base/ApplicationTrait.php(1426): craft\services\ProjectConfig->get('system.timeZone')
  #25 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/base/ApplicationTrait.php(1384): craft\console\Application->_setTimeZone()
  #26 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/console/Application.php(57): craft\console\Application->_preInit()
  #27 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\console\Application->init()
  #28 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)
  #29 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/console/Application.php(89): yii\base\Application->__construct(Array)
  #30 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/src/console/Application.php(48): yii\console\Application->__construct(Array)
  #31 [internal function]: craft\console\Application->__construct(Array)
  #32 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass->newInstanceArgs(Array)
  #33 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('craft\\console\\A...', Array, Array)
  #34 /Users/jeb/Sites/multipaneluk/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('craft\\console\\A...', Array, Array)
  #35 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/bootstrap/bootstrap.php(245): yii\BaseYii::createObject(Array)
  #36 /Users/jeb/Sites/multipaneluk/vendor/craftcms/cms/bootstrap/console.php(43): require('/Users/jeb/Site...')
  #37 /Users/jeb/Sites/multipaneluk/craft(21): require('/Users/jeb/Site...')
  #38 {main}
  
  ```
  
  I've tried using mysql in both Mamp and running through Homebrew, neither of these worked. .env credentials are 100% correct. Can't think what could be causing this.
  
  Many thanks
  
  **Tags:** migration, plugin-formbuilder2
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-05-15. Score: 2
  
  We had something similar yesterday. Try the following 2 tweaks:
  
  1.) Delete your storage/runtime folder and then try again
  
  2.) If this does not help, verify the credentials in your .env file and make sure they use a DSN like: `DB_DSN="mysql:host=<dbhost>;port=<dbport>;dbname=<dbname>;"`
  
  > **Comments:**
  > **username_2**: I'm placing a bet on number 1 :) It was a bug and it's now fixed (3.4.19.1)  
  > **username_0**: Tried both of those, still getting the same issue :(  
  > **username_1**: sorry no more ideas  
  
  ---
  
  