{"id":196,"date":"2012-09-21T21:59:34","date_gmt":"2012-09-21T21:59:34","guid":{"rendered":"http:\/\/blog.chury721.cz\/?p=196"},"modified":"2021-04-04T19:06:28","modified_gmt":"2021-04-04T17:06:28","slug":"vyreseni-error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-varrunmysqldmysqld-sock-2","status":"publish","type":"post","link":"https:\/\/blog.chury721.cz\/?p=196","title":{"rendered":"Vy\u0159e\u0161en\u00ed: ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8218;\/var\/run\/mysqld\/mysqld.sock&#8216; (2)"},"content":{"rendered":"<p>V\u00edce je probl\u00e9m pops\u00e1n zde:\u00a0<a title=\"error 2002\" href=\"http:\/\/ubuntuforums.org\/showthread.php?t=804021&amp;page=5\" target=\"_blank\">http:\/\/ubuntuforums.org\/showthread.php?t=804021&amp;page=5<\/a><\/p>\n<hr \/>\n<p>J\u00e1 se probl\u00e9m vy\u0159e\u0161il jednou \u00fapravou, editoval jsem soubor <strong>my.cnf<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  nano \/etc\/mysql\/my.cnf <\/pre>\n<p>Sta\u010d\u00ed \u00faprava \u0159\u00e1dku:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  bind-address = 127.0.0.1<\/pre>\n<p>a sta\u010d\u00ed p\u0159epsal na Statickou IP, nebo p\u0159id\u011blenou IP DHCP:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  bind-address = 192.168.1.99<\/pre>\n<p>D\u00e1le sta\u010d\u00ed restartovat MySQL Server a zm\u011bnit heslo:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  \/etc\/init.d\/mysql restart<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">  mysql -u root -p<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>V\u00edce je probl\u00e9m pops\u00e1n zde:\u00a0http:\/\/ubuntuforums.org\/showthread.php?t=804021&amp;page=5 J\u00e1 se probl\u00e9m vy\u0159e\u0161il jednou \u00fapravou, editoval jsem soubor my.cnf: Sta\u010d\u00ed \u00faprava \u0159\u00e1dku: a sta\u010d\u00ed p\u0159epsal na Statickou IP, nebo p\u0159id\u011blenou IP DHCP: D\u00e1le sta\u010d\u00ed restartovat MySQL Server a zm\u011bnit heslo:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-linux","category-server"],"_links":{"self":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/196"}],"collection":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=196"}],"version-history":[{"count":6,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":1856,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions\/1856"}],"wp:attachment":[{"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chury721.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}