title: connecing to mysql with Zend Server CE
body: <p>I have recently installed Zend Server Community Edtion on my Opensuse development server and it worked fine.
  The only problem is that it is not connecting to my MySql server!! It keeps throwing in the error:</p>
  
  <pre><code>Message: PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  </code></pre>
  
  <p>Lookud up in /tmp/ and yes there is no mysql.sock. But i still have no clue what to do.. Do i need to change some apache config file? Or change mysql config?</p>
  
  <p>I really need help because I have a big project to work on, I have already searched google but without any luck.</p>
  
  <p>Here is the complete stack trace for your intrest:</p>
  
  <pre><code>#0 /srv/www/zend/apache2/htdocs/zend.athand.eu/library/Doctrine/Connection/Mysql.php(101): Doctrine_Connection-&gt;connect()
  #1 /srv/www/zend/apache2/htdocs/zend.athand.eu/library/Doctrine/Connection.php(1001): Doctrine_Connection_Mysql-&gt;connect()
  #2 /srv/www/zend/apache2/htdocs/zend.athand.eu/library/Doctrine/Query/Abstract.php(976): Doctrine_Connection-&gt;execute('SELECT t.id AS ...', Array)
  #3 /srv/www/zend/apache2/htdocs/zend.athand.eu/library/Doctrine/Query/Abstract.php(1026): Doctrine_Query_Abstract-&gt;_execute(Array)
  #4 /srv/www/zend/apache2/htdocs/zend.athand.eu/application/models/Text.php(25): Doctrine_Query_Abstract-&gt;execute()
  #5 /srv/www/zend/apache2/htdocs/zend.athand.eu/library/App/View/Helper/Text.php(27): Application_Model_Text-&gt;findText('introText')
  #6 [internal function]: App_View_Helper_Text-&gt;Text('introText')
  #7 /srv/www/zend/share/ZendFramework/library/Zend/View/Abstract.php(342): call_user_func_array(Array, Array)
  #8 /srv/www/zend/apache2/htdocs/zend.athand.eu/application/modules/pwc/views/scripts/login/password.phtml(6): Zend_View_Abstract-&gt;__call('text', Array)
  #9 /srv/www/zend/apache2/htdocs/zend.athand.eu/application/modules/pwc/views/scripts/login/password.phtml(6): Zend_View-&gt;text('introText')
  #10 /srv/www/zend/share/ZendFramework/library/Zend/View.php(108): include('/srv/www/zend/a...')
  #11 /srv/www/zend/share/ZendFramework/library/Zend/View/Abstract.php(880): Zend_View-&gt;_run('/srv/www/zend/a...')
  #12 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Action/Helper/ViewRenderer.php(897): Zend_View_Abstract-&gt;render('login/password....')
  #13 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Action/Helper/ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer-&gt;renderScript('login/password....', NULL)
  #14 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Action/Helper/ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer-&gt;render()
  #15 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer-&gt;postDispatch()
  #16 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker-&gt;notifyPostDispatch()
  #17 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action-&gt;dispatch('passwordAction')
  #18 /srv/www/zend/share/ZendFramework/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard-&gt;dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
  #19 /srv/www/zend/share/ZendFramework/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front-&gt;dispatch()
  #20 /srv/www/zend/share/ZendFramework/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap-&gt;run()
  #21 /srv/www/zend/apache2/htdocs/zend.athand.eu/public/pwc/index.php(106): Zend_Application-&gt;run()
  #22 {main}
  </code></pre>
  
  <p>If you need any more information I'd be happy to give you them</p>