error : php bin/console doctrine:database:create : <p>php bin/console doctrine:database:create</p>

<p>In AbstractMySQLDriver.php line 112:</p>

<p>An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused</p>

<p>In PDOConnection.php line 50:</p>

<p>SQLSTATE[HY000] [2002] Connection refused</p>

<p>In PDOConnection.php line 46:</p>

<p>SQLSTATE[HY000] [2002] Connection refused</p>

<p>doctrine:database:create [--shard SHARD] [--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] </p>

<p>amine@amine:/opt/lampp/htdocs/symphart$ sudo service apache2 restart
[sudo] password for amine:
amine@amine:/opt/lampp/htdocs/symphart$ php bin/console doctrine:database:create</p>

<p>In AbstractMySQLDriver.php line 112:</p>

<p>An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused</p>

<p>In PDOConnection.php line 50:</p>

<p>SQLSTATE[HY000] [2002] Connection refused</p>

<p>In PDOConnection.php line 46:</p>

<p>SQLSTATE[HY000] [2002] Connection refused</p>

<p>doctrine:database:create [--shard SHARD] [--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] </p>
