{"id":642,"date":"2013-05-14T11:42:16","date_gmt":"2013-05-14T11:42:16","guid":{"rendered":"http:\/\/www.masterlevel.de\/blog\/?p=642"},"modified":"2013-05-14T11:42:16","modified_gmt":"2013-05-14T11:42:16","slug":"1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2","status":"publish","type":"post","link":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/","title":{"rendered":"1und1: Could not connect to database (Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2))"},"content":{"rendered":"<p>Eine Fehlermeldung von PHP, welche bei 1und1 Servern auftreten kann. Gerne bei dem genialen mysql-Dumper.<\/p>\n<p>Die Fehlermeldungen variieren, Beispiele:<\/p>\n<p><em>Could not connect to database (Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2))<\/em><\/p>\n<p>oder<\/p>\n<p><em>Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2)<\/em><\/p>\n<p>Tipp:<\/p>\n<p>In der entsprechenden config.php (je nach Software) und immer wenn man\u00a0\u00a0&#8218;localhost:\/tmp\/mysql5.sock&#8216; als dbHost eingeben soll, einfach den Port (in der Regel steht da 3306)<strong> leer lassen!<\/strong><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n$dbHost = 'localhost:\/tmp\/mysql5.sock';\r\n\r\n$dbPort = '';\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Eine Fehlermeldung von PHP, welche bei 1und1 Servern auftreten kann. Gerne bei dem genialen mysql-Dumper. Die Fehlermeldungen variieren, Beispiele: Could not connect to database (Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2)) oder Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2) Tipp: In der entsprechenden config.php (je nach Software) und immer &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87,86],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-1und1","category-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>1und1: Could not connect to database (Can&#039;t connect to local MySQL server through socket &#039;\/tmp\/mysql5.sock:3306&#039; (2)) - masterlevel<\/title>\n<meta name=\"description\" content=\"&#039;localhost:\/tmp\/mysql5.sock&#039; und der beliebte mySQL-Fehler...so wird gefixt.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"J. Adler\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/\"},\"author\":{\"name\":\"J. Adler\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"headline\":\"1und1: Could not connect to database (Can&#8217;t connect to local MySQL server through socket &#8218;\\\/tmp\\\/mysql5.sock:3306&#8216; (2))\",\"datePublished\":\"2013-05-14T11:42:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/\"},\"wordCount\":106,\"commentCount\":0,\"articleSection\":[\"1und1\",\"MySQL\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/\",\"name\":\"1und1: Could not connect to database (Can't connect to local MySQL server through socket '\\\/tmp\\\/mysql5.sock:3306' (2)) - masterlevel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\"},\"datePublished\":\"2013-05-14T11:42:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"description\":\"'localhost:\\\/tmp\\\/mysql5.sock' und der beliebte mySQL-Fehler...so wird gefixt.\",\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/\",\"name\":\"masterlevel\",\"description\":\"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\",\"name\":\"J. Adler\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"1und1: Could not connect to database (Can't connect to local MySQL server through socket '\/tmp\/mysql5.sock:3306' (2)) - masterlevel","description":"'localhost:\/tmp\/mysql5.sock' und der beliebte mySQL-Fehler...so wird gefixt.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/","twitter_misc":{"Verfasst von":"J. Adler"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/#article","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/"},"author":{"name":"J. Adler","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"headline":"1und1: Could not connect to database (Can&#8217;t connect to local MySQL server through socket &#8218;\/tmp\/mysql5.sock:3306&#8216; (2))","datePublished":"2013-05-14T11:42:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/"},"wordCount":106,"commentCount":0,"articleSection":["1und1","MySQL"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/","url":"https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/","name":"1und1: Could not connect to database (Can't connect to local MySQL server through socket '\/tmp\/mysql5.sock:3306' (2)) - masterlevel","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/#website"},"datePublished":"2013-05-14T11:42:16+00:00","author":{"@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"description":"'localhost:\/tmp\/mysql5.sock' und der beliebte mySQL-Fehler...so wird gefixt.","inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.masterlevel.de\/blog\/1und1-could-not-connect-to-database-cant-connect-to-local-mysql-server-through-socket-tmpmysql5-sock3306-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.masterlevel.de\/blog\/#website","url":"https:\/\/www.masterlevel.de\/blog\/","name":"masterlevel","description":"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.masterlevel.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f","name":"J. Adler","url":"https:\/\/www.masterlevel.de\/blog\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":2,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions\/644"}],"wp:attachment":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}