# Email campaign mysql error

**URL:** https://forum.mautic.org/t/email-campaign-mysql-error/5703
**Category:** Product Support
**Created:** [March 23, 2016, 11:48am UTC](https://forum.mautic.org/t/email-campaign-mysql-error/5703 "2016-03-23T11:48:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jothi](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jothi](https://forum.mautic.org/u/jothi)
#### Post date: [March 23, 2016, 11:48am UTC](https://forum.mautic.org/t/email-campaign-mysql-error/5703/1 "2016-03-23T11:48:34Z")

</div>

i have created email campaign .after that i got these following error logs .what is the problem .im running mautic in xampp server  
  
  
  
[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
  
[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
  
[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []  
  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []  
  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []  
  
  
  
Thanks advance

---

<div class="post-metadata">

### Author: ![jothi](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jothi](https://forum.mautic.org/u/jothi)
#### Post date: [March 23, 2016, 11:48am UTC](https://forum.mautic.org/t/email-campaign-mysql-error/5703/2 "2016-03-23T11:48:34Z")

</div>

i have created email campaign .after that i got these following error logs .what is the problem .im running mautic in xampp server

[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
[2016-03-23 09:02:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
[2016-03-23 09:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
[2016-03-23 09:32:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
[2016-03-23 09:32:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:leadlists:update` exited with status code 255 [] []  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:leadlists:update` [] []  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:campaigns:update` exited with status code 255 [] []  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:update` [] []  
[2016-03-23 10:02:02] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 255 [] []  
[2016-03-23 10:02:02] mautic.ERROR: PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (uncaught exception) at /opt/lampp/htdocs/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `mautic:campaigns:trigger` [] []

Thanks advance
