{"id":3381,"date":"2017-03-15T20:17:49","date_gmt":"2017-03-15T20:17:49","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3381"},"modified":"2017-03-15T20:17:49","modified_gmt":"2017-03-15T20:17:49","slug":"mysql-not-start-plesk-update","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/15\/mysql-not-start-plesk-update\/","title":{"rendered":"MySQL does not start after an Plesk update (14-March, 2017)"},"content":{"rendered":"<p>Note: article describes the issue caused by MySQL update from Atomic repository, make sure you have Atomic repository enabled before applying fix:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum repolist\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n* atomic: www4.atomicorp.com\n\n<\/pre>\n<p>After update MySQL cannot be started. In Plesk the following error message is shown:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    Error in Plesk:\n    ERROR: PleskFatalException\n    Unable to connect to database: mysql_connect() &#x5B;&lt;a href=&#039;function.mysql-connect&#039;&gt;function.mysql-connect&lt;\/a&gt;]: No such file or directory\n\n    0: common_func.php3:153\n    psaerror(string &#039;Unable to connect to database: mysql_connect() &#x5B;&lt;a href=&#039;function.mysql-connect&#039;&gt;function.mysql-connect&lt;\/a&gt;]: No such file or directory&#039;)\n    1: auth.php3:116\n\n<\/pre>\n<p>    or<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    ERROR: Zend_Db_Adapter_Exception: SQLSTATE&#x5B;HY000] &#x5B;2002] No such file or directory\n    Additionally, an exception has occurred while trying to report this error: Zend_Exception\n    No entry is registered for key &amp;#039;translate&amp;#039; (Abstract.php:144)\n    Search for related Knowledge Base articles\n    ERROR: Uncaught exception &#039;PDOException&#039; with message &#039;SQLSTATE&#x5B;HY000] &#x5B;2002] No such file or directory&#039; in \/usr\/local\/psa\/admin\/externals\/Zend\/Db\/Adapter\/Pdo\/Abstract.php:129 Stack trace: #0 \/usr\/local\/psa\/admin\/externals\/Zend\/Db\/Adapter\/Pdo\/Abstract.php(129): PDO-&gt;__construct(&#039;mysql:dbname=ps...&#039;, &#039;admin&#039;, &#039;$AES-128-CBC$Zm...&#039;, Array) #1 \/usr\/local\/psa\/admin\/externals\/Zend\/Db\/Adapter\/Pdo\/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract-&gt;_connect() #2 \/usr\/local\/psa\/admin\/externals\/Zend\/Db\/Adapter\/Abstract.php(460): Zend_Db_Adapter_Pdo_Mysql-&gt;_connect() #3 \/usr\/local\/psa\/admin\/externals\/Zend\/Db\/Adapter\/Pdo\/Abstract.php(238): Zend_Db_Adapter_Abstract-&gt;query(&#039;select param, v...&#039;, Array) #4 \/usr\/local\/psa\/admin\/plib\/Db\/Adapter\/Pdo\/Mysql.php(30): Zend_Db_Adapter_Pdo_Abstract-&gt;query(&#039;select param, v...&#039;, Array) #5 \/usr\/local\/psa\/admin\/plib\/db.php(36): Db_Adapter_Pdo_Mysql-&gt;query(&#039;select param, v...&#039;) #6 \/usr\/local\/psa\/admin\/plib\/db.php(212): db_query(&#039;select param, v...&#039;, false) #7 \/usr\/local\/psa\/admin\/plib\/Plesk\/Mode.php(4 (Abstract.php:144)\n\n<\/pre>\n<p>There are no records in \/var\/log\/mysqld.log<\/p>\n<p>Cause<\/p>\n<p>Atomic issued broken mysql package to their repositories. During updates installation mysql package gets updated, but required directory \/var\/lib\/mysql-files is not created.<\/p>\n<p>This issue has been fixed by Atomic in 5.5.54-1199 version of mysql-server package. Update the package to the latest version:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum update mysql-server\n\n<\/pre>\n<p>If no packages are marked for update, clean yum cache:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum clean all\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum update mysql-server\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Note: article describes the issue caused by MySQL update from Atomic repository, make sure you have Atomic repository enabled before applying fix: # yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * atomic: www4.atomicorp.com After update MySQL cannot be started. In Plesk the following error message is shown: Error in Plesk: ERROR: &#8230; <a title=\"MySQL does not start after an Plesk update (14-March, 2017)\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/15\/mysql-not-start-plesk-update\/\" aria-label=\"Read more about MySQL does not start after an Plesk update (14-March, 2017)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-3381","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3381"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3381\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}