{"id":1418,"date":"2019-02-08T10:36:03","date_gmt":"2019-02-08T10:36:03","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583557-what-is-the-database-socket-path-at-hostinger\/"},"modified":"2019-02-08T10:36:03","modified_gmt":"2019-02-08T10:36:03","slug":"1583557-what-is-the-database-socket-path-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583557-what-is-the-database-socket-path-at-hostinger\/","title":{"rendered":"What Is the Database Socket Path at Hostinger?"},"content":{"rendered":"<p class=\"no-margin\">A <b>database socket<\/b> is a communication endpoint that allows programs to connect to a database server over a network. Whenever an application wants to interact with a database, it can use a socket to establish a connection, send requests, and receive responses.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">The <b>database socket path<\/b> refers to the location of the socket file within the server. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">The default socket file location on Unix-like systems, including <b>Linux<\/b>, is the following:<\/p><p class=\"no-margin\">\n<\/p><pre><code>\/var\/lib\/mysql\/mysql.sock<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">On <b><a href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS<\/a> <\/b>hosting, the socket path might differ depending on the <b><a href=\"\/support\/1583571-what-are-available-operating-systems-for-vps\" target=\"_blank\" class=\"intercom-content-link\">operating system<\/a><\/b> you have installed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Locating the database socket in Linux hosting environments<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[240],"tags":[],"class_list":["post-1418","post","type-post","status-publish","format-standard","hentry","category-advanced"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583557-what-is-the-database-socket-path-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583557-cual-es-la-ruta-del-socket-de-mi-base-de-datos-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583557-quel-est-le-chemin-du-socket-de-ma-base-de-donnees-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583557-apa-socket-path-database-saya-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583557-qual-e-o-meu-caminho-de-soquete-de-banco-de-dados-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583557-------\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1418"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1418\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}