{"id":4492,"date":"2018-05-02T12:45:08","date_gmt":"2018-05-02T16:45:08","guid":{"rendered":"http:\/\/wp-p3d2tsa2xh.pairsite.com\/?post_type=ht_kb&#038;p=4492"},"modified":"2025-06-02T13:46:57","modified_gmt":"2025-06-02T17:46:57","slug":"4492","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/4492\/","title":{"rendered":"How to Connect to Your Database with SSH"},"content":{"rendered":"\n<p><span class=\"s1\"><a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/shared-hosting\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">Shared<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/vps\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">VPS<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/qs-dedicated\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px; font-weight:bold; border-radius:3px;\">Dedicated<\/p><\/a><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can use SSH to connect to a database that was created in the <\/span><a href=\"http:\/\/my.pair.com\"><span style=\"font-weight: 400;\">Account Control Center (ACC)<\/span><\/a><span style=\"font-weight: 400;\">. By doing this, you will be able to make changes from the terminal\/command line. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connecting to Your Database with SSH<\/h3>\n\n\n    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<span style=\"font-weight: 400;\">Note that when databases are created, an access level has to be selected. If you have a <\/span><b>local only<\/b><span style=\"font-weight: 400;\"> access level, you will not be able to make remote connections. Be sure that the access level allows the type of connection you are trying to make.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n\n\n\n<ol>\n<li><span style=\"font-weight: 400;\">Connect to your account using SSH. For instructions on connecting to your account with SSH, <\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/connecting-with-ssh\/\"><span style=\"font-weight: 400;\">How to Connect to Your Account with SSH<\/span><\/a><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Once you have logged in to your account, type in the command:<br><\/span>  <pre><span style=\"font-weight: 400;\">mysql -h dbDomain.pair.com -u dbUser -p dbName <\/span><\/pre> <table> <tbody> <tr> <td><b>DBdomain.pair.com<\/b> <\/td> <td><span style=\"font-weight: 400;\">This is your database\u2019s server.<\/span><\/td> <\/tr> <tr> <td> <b>DBuser<\/b><\/td> <td><span style=\"font-weight: 400;\">This is your database\u2019s user. <\/span> <p>&nbsp;<\/p> <p><span style=\"font-weight: 400;\">This user is not the same as your account username. Each database has three different users, each one with different access levels. For more information about the users and their access levels, see our article, <\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/how-to-find-your-database-username\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">How to Find Your Database Username<\/span><\/a><span style=\"font-weight: 400;\">. <\/span><\/p> <\/td> <\/tr> <tr> <td><b>DBName<\/b> <\/td> <td><span style=\"font-weight: 400;\">This is your database\u2019s name.<\/span><\/td> <\/tr> <\/tbody> <\/table> <\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Enter the database password<\/span><\/li>\n<\/ol>\n\n\n\n<p><strong>If you are using the Legacy Interface:<\/strong><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can find this information by going to the <\/span><b>Manage Your Databases<\/b><span style=\"font-weight: 400;\"> interface and clicking the name of your database.<a href=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-4897\" src=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8.png\" alt=\"location image\" width=\"615\" height=\"304\" srcset=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8.png 615w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8-300x148.png 300w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8-50x25.png 50w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8-60x30.png 60w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8-100x49.png 100w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/a><\/span><\/p>\n\n\n\n<p><strong>If you are using the New ACC Interface:<\/strong><\/p>\n\n\n\n<p>You can find this information by going to the Databases interface and clicking the <strong>Details <\/strong>button next to your database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" loading=\"lazy\" width=\"1002\" height=\"437\" src=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH.png\" alt=\"\" class=\"wp-image-9939\" srcset=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH.png 1002w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH-300x131.png 300w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH-768x335.png 768w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH-50x22.png 50w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH-60x26.png 60w, https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2025\/06\/9-Connecting-to-Your-Database-with-SSH-100x44.png 100w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/a><\/figure>\n\n\n\n<p>This will log you into your database. You can make changes from the command line here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use SSH to connect to a database that was created in the Account Control Center (ACC). By doing this, you will be able to make changes from the terminal\/command line. Connecting to Your Database with SSH If you are using the Legacy Interface: You can find this information&#8230;<\/p>\n","protected":false},"author":12,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[23],"ht-kb-tag":[178,176,177],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Connect to Your Database with SSH | mysql Connect SSH<\/title>\n<meta name=\"description\" content=\"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.\" \/>\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.pair.com\/support\/kb\/4492\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Connect to Your Database with SSH | mysql Connect SSH\" \/>\n<meta property=\"og:description\" content=\"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/4492\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - Pair Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pairnetworks\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-02T17:46:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@pairNetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/4492\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/4492\/\",\"name\":\"How to Connect to Your Database with SSH | mysql Connect SSH\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2018-05-02T16:45:08+00:00\",\"dateModified\":\"2025-06-02T17:46:57+00:00\",\"description\":\"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/4492\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/4492\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/4492\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Connect to Your Database with SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"name\":\"Knowledge Base - Pair Networks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\",\"name\":\"Pair Networks\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"contentUrl\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"width\":360,\"height\":360,\"caption\":\"Pair Networks\"},\"image\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pairnetworks\/\",\"https:\/\/twitter.com\/pairNetworks\",\"https:\/\/www.instagram.com\/pairnetworks\/\",\"https:\/\/www.linkedin.com\/company\/2269676\/\",\"https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/\",\"https:\/\/www.youtube.com\/user\/pairnetworks\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Connect to Your Database with SSH | mysql Connect SSH","description":"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.","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.pair.com\/support\/kb\/4492\/","og_locale":"en_US","og_type":"article","og_title":"How to Connect to Your Database with SSH | mysql Connect SSH","og_description":"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.","og_url":"https:\/\/www.pair.com\/support\/kb\/4492\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2025-06-02T17:46:57+00:00","og_image":[{"url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2018\/05\/1-8.png"}],"twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/4492\/","url":"https:\/\/www.pair.com\/support\/kb\/4492\/","name":"How to Connect to Your Database with SSH | mysql Connect SSH","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2018-05-02T16:45:08+00:00","dateModified":"2025-06-02T17:46:57+00:00","description":"Use SSH to connect to a database that was created in the ACC. The SSH database connection then lets you make changes from the terminal\/command line.","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/4492\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/4492\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/4492\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Connect to Your Database with SSH"}]},{"@type":"WebSite","@id":"https:\/\/www.pair.com\/support\/kb\/#website","url":"https:\/\/www.pair.com\/support\/kb\/","name":"Knowledge Base - Pair Networks","description":"","publisher":{"@id":"https:\/\/www.pair.com\/support\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pair.com\/support\/kb\/#organization","name":"Pair Networks","url":"https:\/\/www.pair.com\/support\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","contentUrl":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","width":360,"height":360,"caption":"Pair Networks"},"image":{"@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pairnetworks\/","https:\/\/twitter.com\/pairNetworks","https:\/\/www.instagram.com\/pairnetworks\/","https:\/\/www.linkedin.com\/company\/2269676\/","https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/","https:\/\/www.youtube.com\/user\/pairnetworks"]}]}},"_links":{"self":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4492"}],"collection":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=4492"}],"version-history":[{"count":14,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4492\/revisions"}],"predecessor-version":[{"id":9944,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4492\/revisions\/9944"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=4492"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4492"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}