{"id":296,"date":"2010-06-04T04:52:08","date_gmt":"2010-06-04T10:52:08","guid":{"rendered":"http:\/\/blog.supportpro.com\/2010\/06\/mysql-socket-error-in-phpmyadmin\/"},"modified":"2018-10-04T06:53:15","modified_gmt":"2018-10-04T12:53:15","slug":"mysql-socket-error-in-phpmyadmin","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/mysql-socket-error-in-phpmyadmin\/","title":{"rendered":"MySQL Socket Error in phpMyAdmin"},"content":{"rendered":"<p>While accessing phpMyAdmin, you may get the following error.<\/p>\n<p><em>#2002 &#8211; The server is not responding (or the local MySQL server&#8217;s socket is not correctly configured) <\/em><\/p>\n<p>This is due to the missing socket file in the location \/tmp.<\/p>\n<p>The socket path which is specified in the phpMyAdmin configuration file is \/tmp\/mysql.sock.<\/p>\n<p><!--more--><\/p>\n<p>$ vi \/usr\/local\/cpanel\/base\/3rdparty\/phpMyAdmin\/config.inc.php<br \/>\ncfg[&#8216;Server&#8217;][&#8216;socket&#8217;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;\/tmp\/mysql.sock&#8217;;<br \/>\nIf mysql.sock is missing in \/tmp, then create a link to the mysql.sock file in \/var\/lib\/mysql.<br \/>\n$ ln -s \/var\/lib\/mysql\/mysql.sock \/tmp\/mysql.sock<\/p>\n<p>There is also another fix for this issue.<\/p>\n<p>1. Open the phpMyadmin config file &#8220;config.inc.php&#8221;.<\/p>\n<p>vi \/usr\/local\/cpanel\/base\/3rdparty\/phpMyAdmin\/config.inc.php<\/p>\n<p>2.Locate the line:<\/p>\n<p>$cfg[&#8216;Servers&#8217;][$i][&#8216;host&#8217;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;localhost&#8217;;<\/p>\n<p>3.Replace &#8216;localhost&#8217; with &#8216;127.0.0.1&#8217; and save.<\/p>\n<p>$cfg[&#8216;Servers&#8217;][$i][&#8216;host&#8217;]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = &#8216;127.0.0.1&#8217;;<\/p>\n<p>This will also fix the issue.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While accessing phpMyAdmin, you may get the following error. #2002 &#8211; The server is not responding (or the local MySQL server&#8217;s socket is not correctly configured) This is due to&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":6,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":3427,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions\/3427"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}