title: How can i set up my drupal database correctely?
body: <p>I guys I'm getting an error while I'm trying to set up my drupal database.
  the drupal give me this error when i insert the database info, but I'm sure the database info is correct.</p>
  <p><code>Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator-&gt;doValidateForm() (line 261 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object, 'install_settings_form') Drupal\Core\Form\FormValidator-&gt;validateForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;processForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;buildForm('install_settings_form', Object) install_get_form('Drupal\Core\Installer\Form\SiteSettingsForm', Array) install_run_task(Array, Array) install_run_tasks(Array) install_drupal(Object) Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator-&gt;doValidateForm() (line 261 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object, 'install_settings_form') Drupal\Core\Form\FormValidator-&gt;validateForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;processForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;buildForm('install_settings_form', Object) install_get_form('Drupal\Core\Installer\Form\SiteSettingsForm', Array) install_run_task(Array, Array) install_run_tasks(Array) install_drupal(Object) Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator-&gt;doValidateForm() (line 261 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object, 'install_settings_form') Drupal\Core\Form\FormValidator-&gt;validateForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;processForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;buildForm('install_settings_form', Object) install_get_form('Drupal\Core\Installer\Form\SiteSettingsForm', Array) install_run_task(Array, Array) install_run_tasks(Array) install_drupal(Object) Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator-&gt;doValidateForm() (line 261 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object, 'install_settings_form') Drupal\Core\Form\FormValidator-&gt;validateForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;processForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;buildForm('install_settings_form', Object) install_get_form('Drupal\Core\Installer\Form\SiteSettingsForm', Array) install_run_task(Array, Array) install_run_tasks(Array) install_drupal(Object) Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator-&gt;doValidateForm() (line 261 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object) Drupal\Core\Form\FormValidator-&gt;doValidateForm(Array, Object, 'install_settings_form') Drupal\Core\Form\FormValidator-&gt;validateForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;processForm('install_settings_form', Array, Object) Drupal\Core\Form\FormBuilder-&gt;buildForm('install_settings_form', Object) install_get_form('Drupal\Core\Installer\Form\SiteSettingsForm', Array) install_run_task(Array, Array) install_run_tasks(Array) install_drupal(Object) Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider. Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Permission denied. Is the database server running? Does the database exist or does the database user have sufficient privileges to create the database? Have you entered the correct database name? Have you entered the correct username and password? Have you entered the correct database hostname?</code></p>
  <p>I'm trying to set up my database on drupal</p>