{"id":1001,"date":"2021-07-23T12:43:11","date_gmt":"2021-07-23T12:43:11","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/manage-mysql-profiles\/"},"modified":"2021-07-23T12:43:11","modified_gmt":"2021-07-23T12:43:11","slug":"manage-mysql-profiles","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/manage-mysql-profiles\/","title":{"rendered":"Manage MySQL\u00ae Profiles"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 88 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>88<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This interface allows you to manage multiple MySQL\u00ae profiles. A profile defines the connection information for a local or remote MySQL server.<\/p>\n<p>You may wish to use a separate MySQL server if, for example, you manage particularly busy servers or servers with large databases. You can offload MySQL-related work to the remote MySQL server.<\/p>\n<p>Remote MySQL servers include other cPanel &#038; WHM servers that run MySQL, a dedicated MySQL server, and the Amazon Relational Database\u2122 Service (RDS).<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>If <strong>both<\/strong> of the following conditions are true, you may introduce a security vulnerability:<\/p>\n<ul>\n<li>The local server runs MySQL 5.7.<\/li>\n<li>The remote server runs MySQL 8.0 and later or Amazon RDS.<\/li>\n<\/ul>\n<ul>\n<li>Upgrade the local cPanel &#038; WHM server to MySQL 8.0.<\/li>\n<li>Add a <code>root<\/code> user to the remote server that is <strong>only<\/strong> allowed to log in from the local server\u2019s IP address.<\/li>\n<\/ul><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>If the remote server runs MySQL 8.0 installed from the community repository and you have authentication issues, read our Troubleshoot MySQL\u00ae Profiles documentation.<\/p>\n<\/p><\/div>\n<\/div>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>This feature <strong>only<\/strong> allows active connections to servers that run the following database versions:<\/p>\n<ul>\n<li>MySQL versions 5.6, 5.7, and 8.0.<\/li>\n<li>MariaDB versions 10.1, 10.2, and 10.3.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>You can use MySQL versions 5.7 or 8.0 on Amazon RDS servers. We do <strong>not<\/strong> support MariaDB or Amazon Aurora (Aurora) on Amazon RDS servers.<\/p>\n<\/li>\n<li>\n<p>A <code>\/root\/.my.cnf<\/code> file <strong>must<\/strong> exist on any remote MySQL servers, and this file <strong>must<\/strong> contain the MySQL <code>root<\/code> user and password.<\/p>\n<\/li>\n<li>\n<p>Amazon RDS uses the plaintext MySQL protocol. For security and performance reasons, we <strong>strongly<\/strong> recommend that only you connect to an Amazon RDS from an EC2\u2122 instance in the same availability zone.<\/p>\n<\/li>\n<li>\n<p>When you suspend a cPanel account, the system will <strong>not<\/strong> suspend any of the account\u2019s Amazon RDS remote databases.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<h2 id=\"remote-mysql-server-information\">Remote MySQL server information<\/h2>\n<p>The <em>Manage MySQL Profiles<\/em> interface configures the remote server to work with your MySQL setup. After you configure the remote server, you <strong>must<\/strong> manually transfer your existing MySQL data to that server and configure your accounts\u2019 applications to use that server. Any new databases that you create will exist on the remote MySQL server.<\/p>\n<p>For example, If you move an existing WordPress\u00ae database to the remote server, you must also update the WordPress server\u2019s configuration files to use the new server.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>Before you set up a remote MySQL server, ensure that you install the <code>openssh-clients<\/code> package on your local cPanel &#038; WHM server. You <strong>cannot<\/strong> set up a remote MySQL server without this package.<\/p>\n<\/li>\n<li>\n<p>We <strong>strongly<\/strong> recommend that you <strong>only<\/strong> connect one cPanel &#038; WHM server to each remote MySQL server. If you connect multiple cPanel &#038; WHM servers to one remote MySQL server, you may experience database and username conflicts.<\/p>\n<\/li>\n<li>\n<p>This feature does <strong>not<\/strong> automatically transfer your MySQL data.<\/p>\n<\/li>\n<li>\n<p>Do <strong>not<\/strong> use the <code>q<\/code> option in your server\u2019s MySQL configuration. This option can cause problems on <strong>any<\/strong> server. It will create <strong>more<\/strong> problems on remote MySQL servers, during account transfers and restorations, and with phpMyAdmin.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<h3 id=\"mysql-profile-information\">MySQL profile information<\/h3>\n<p>The interface displays the following columns for each MySQL profile:<\/p>\n<ul>\n<li>\n<p><em>Profile<\/em> \u2014 The name of the MySQL profile.<\/p>\n<\/li>\n<li>\n<p><em>Host<\/em> \u2014 The MySQL server\u2019s IP address or hostname.<\/p>\n<\/li>\n<li>\n<p><em>Port<\/em> \u2014 The MySQL server\u2019s port number.<\/p>\n<\/li>\n<li>\n<p><em>User<\/em> \u2014 The SSH or MySQL username that you will use to authenticate to this host.<\/p>\n<\/li>\n<li>\n<p><em>Type<\/em>    \u2014 A description of the profile data.<\/p>\n<\/li>\n<li>\n<p><em>Actions<\/em> \u2014  Click one of the following icons to perform the appropriate action:<\/p>\n<ul>\n<li>\n<p><img style=\"width:20px\" src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/managemysqlprofilesvalidate.png\" title=\"managemysqlprofilesvalidate\"> <em>Validate<\/em> \u2014 Test the profile\u2019s MySQL server settings.<\/p>\n<\/li>\n<li>\n<p><img style=\"width:20px\" src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/managemysqlprofilesactivate.png\" title=\"managemysqlprofilesactivate\"> <em>Activate<\/em> \u2014 Set this profile as the active profile. A green lightning bolt icon (<img style=\"width:20px\" src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/managemysqlprofilesbolt.png\" title=\"managemysqlprofilesbolt\">) indicates the currently-active profile. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        You may <strong>only<\/strong> select one active profile at a time.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><img style=\"width:20px\" src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/managemysqlprofilesdelete.png\" title=\"managemysqlprofilesdelete\"> <em>Delete<\/em>  \u2014 Delete the profile. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        You cannot delete the active profile.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><img style=\"width:20px\" src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/managemysqlprofilesarrow.png\" title=\"managemysqlprofilesarrow\"> \u2014 Edit the profile.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"add-profile\">Add profile<\/h2>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If no active profile exists, the system uses the information in the <code>\/root\/.my.cnf<\/code> file to generate an active profile.\n    <\/div>\n<\/div>\n<p>To create a new MySQL profile, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Click <em>Add Profile<\/em>. A new interface will appear.<\/p>\n<\/li>\n<li>\n<p>Enter the desired MySQL profile name in the <em>Profile Name<\/em> text box. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        After you save the MySQL profile name, you cannot change it.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p>Select a method to use to configure the new profile:<\/p>\n<ul>\n<li>\n<p><em>Automatically create a MySQL superuser via SSH<\/em> \u2014 Select this method to create the new profile manually.<\/p>\n<\/li>\n<li>\n<p><em>Manually enter an existing MySQL superuser\u2019s credentials<\/em> \u2014 Select this method to manually enter the new profile\u2019s information. <\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>You <strong>must<\/strong> select this option if you use Amazon RDS.<\/p>\n<\/li>\n<li>\n<p>To create a MySQL superuser, make certain that the user possesses the following privileges:<\/p>\n<\/li>\n<\/ul>\n<div class=\"collapse-wrapper\">\n<p>        Click to view the privilege list&#8230;<\/p>\n<div class=\"collapse\" id=\"click-to-view-the-privilege-list---1626990045484446365\">\n<div class=\"card card-body\">\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 4\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 5\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 6\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 7\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 8\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 9\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">10\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">11\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">12\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">13\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">14\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">15\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">16\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">17\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">18\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">19\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">20\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">21\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">SELECT\nALTER\nALTER ROUTINE\nCREATE\nCREATE ROUTINE\nCREATE TEMPORARY TABLES\nCREATE USER\nCREATE VIEW\nDELETE\nDROP\nEXECUTE\nEVENT\nINDEX\nINSERT\nREFERENCES\nRELOAD\nUPDATE\nSHOW DATABASES\nSHOW VIEW\nTRIGGER\nLOCK TABLES<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div><\/div>\n<\/p><\/div>\n<\/div>\n<ul>\n<li>Amazon RDS does <strong>not<\/strong> allow you to grant the Super privilege to users.<\/li>\n<\/ul><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If you use Amazon RDS, enter the username and password that you configured when you deployed your Amazon RDS instance.\n    <\/div>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Enter the appropriate information for the configuration method that you selected.<\/p>\n<ul>\n<li>\n<p><strong>Automatically create a MySQL superuser via SSH<\/strong><\/p>\n<ul>\n<li>\n<p><em>Host<\/em> \u2014 The MySQL server\u2019s IP address or hostname. <\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n        You can enter a public or private IP address. However, make certain that the MySQL server can resolve the cPanel &#038; WHM server\u2019s IP address to its fully-qualified hostname.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><em>SSH Port<\/em> \u2014 The SSH service\u2019s port number. You <strong>must<\/strong> enter a port number between <code>1<\/code> and <code>65535<\/code>.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If the server resides behind a firewall, you will need to configure the firewall to allow traffic through the port that you select. For more information, read our How to Configure Your Firewall for cPanel &#038; WHM Services documentation.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><em>Username<\/em> \u2014 The username for the SSH connection.<\/p>\n<\/li>\n<li>\n<p><em>Authentication Method<\/em> \u2014 Select the desired authentication method.<\/p>\n<\/li>\n<li>\n<p><em>Password<\/em> \u2014 Use a password to authenticate. Enter your SSH password in the <em>Password<\/em> text box.<\/p>\n<\/li>\n<li>\n<p><em>SSH Key<\/em> \u2014 Use an SSH key to authenticate. Enter your SSH key\u2019s name in the <em>SSH Key<\/em> text box.<\/p>\n<\/li>\n<li>\n<p><em>Password<\/em> \u2014 The password for the SSH connection. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        This setting <strong>only<\/strong> appears when you select the <em>Password for the Authentication Method<\/em> setting.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><em>SSH Key<\/em> \u2014 The name of the SSH key to use to log in to the remote server.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>This setting only appears when you select the <em>SSH Key for the Authentication Method setting<\/em>.<\/li>\n<li>Use WHM\u2019s <em>Manage Root\u2019s SSH Keys<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Security &gt;&gt; Manage Root\u2019s SSH Keys<\/em>) to add SSH keys.<br \/>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Manually enter an existing MySQL superuser\u2019s credentials<\/strong><\/p>\n<ul>\n<li>\n<p><em>Host<\/em> \u2014 The MySQL server\u2019s IP address or hostname. <\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n        You can enter a public or private IP address. However, make <strong>certain<\/strong> that the MySQL server can resolve the cPanel &#038; WHM server\u2019s IP address to its fully-qualified hostname.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><em>Port<\/em> \u2014 The MySQL server\u2019s port number. You <strong>must<\/strong> enter a port number between <code>1<\/code> and <code>65535<\/code>. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If the server resides behind a firewall, you will need to configure the firewall to allow traffic through the port that you select. For more information, read our How to Configure Your Firewall for cPanel &#038; WHM Services documentation.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p><em>Username<\/em> \u2014 The MySQL superuser\u2019s username.<\/p>\n<\/li>\n<li>\n<p><em>Password<\/em> \u2014 The MySQL superuser\u2019s password.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Click <em>Save<\/em>.<\/p>\n<\/li>\n<\/ol>\n<div class=\"callout callout-success\">\n<div class=\"callout-heading\">Remember:<\/div>\n<div class=\"callout-content\">\n<p>For more information, read our Troubleshoot MySQL\u00ae Profiles documentation.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"edit-profile\">Edit profile<\/h2>\n<p>To edit a MySQL profile, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Click the arrow icon next to the profile you wish to edit. A new interface will appear. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        You <strong>cannot<\/strong> change the profile\u2019s name. If you wish to use a different profile name for a connection, you <strong>must<\/strong> delete and recreate the profile with a new name.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p>If you wish to change the hostname, enter the new MySQL server\u2019s IP address or hostname in the Host text box. <\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n        You can enter a public or private IP address. However, make <strong>certain<\/strong> that the MySQL server can resolve the cPanel &#038; WHM server\u2019s IP address to its fully-qualified hostname.\n    <\/div>\n<\/div>\n<p>:<\/li>\n<li>\n<p>If you wish to change the port number, enter the new port number in the <em>Port<\/em> text box. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If the server resides behind a firewall, you will need to configure the firewall to allow traffic through the port that you select. For more information, read our How to Configure Your Firewall for cPanel &#038; WHM Services documentation.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p>If you wish to change the MySQL superuser\u2019s username for the connection, enter the new username in the <em>Username<\/em> text box.<\/p>\n<\/li>\n<li>\n<p>If you wish to change the MySQL superuser\u2019s password for the connection, enter the new password in the <em>Password<\/em> text box.<\/p>\n<\/li>\n<li>\n<p>Click <em>Save<\/em> to save your changes, or click <em>Cancel<\/em> to cancel the changes.<\/p>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 88 through the latest version Version: 82 88 Overview This interface allows you to manage multiple MySQL\u00ae profiles. A profile defines the connection information for a local or remote MySQL server. You may wish to use a separate MySQL server if, for example, you manage particularly busy servers or servers with large &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1002,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/1001"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/1002"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}