title: Failed to connect to MySQL: Server sent charset unknown to the client. Please, report to the developers - SamplePage.php
body: <p>For some reason, I can't create the <code>employeeTable</code> on the <code>sample</code> database when opening the <code>SamplePage.php</code> on my Chrome browser from the following link:</p>
  <p><a href="http://ec2-13-57-28-240.us-west-1.compute.amazonaws.com/SamplePage.php" rel="nofollow noreferrer">http://ec2-13-57-28-240.us-west-1.compute.amazonaws.com/SamplePage.php</a></p>
  <p>I was able to create my EC2 Instance from the AWS Create an EC2 Instance and Install a Web Server tutorial on the following link:</p>
  <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateWebServer.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateWebServer.html</a></p>
  <p>I get the following error:</p>
  <blockquote>
  <p>Failed to connect to MySQL: Server sent charset unknown to the client.
  Please, report to the developers.</p>
  </blockquote>
  <p>From what I read, the AWS Linux AMI image has a UTF-8 character set by default and I get the output running this command on my EC2 Instance after connecting to my MySQL DB Instance:</p>
  <p><code>SHOW VARIABLES LIKE  'char%';</code></p>
  <pre><code>  Variable_name            | Value                                     
  |+--------------------------+-------------------------------------------+
  | character_set_client     | utf8                                      |
  | character_set_connection | utf8                                      |
  | character_set_database   | utf8mb4                                   |
  | character_set_filesystem | binary                                    |
  | character_set_results    | utf8                                      |
  | character_set_server     | utf8mb4                                   |
  | character_set_system     | utf8                                      |
  | character_sets_dir       | /rdsdbbin/mysql-8.0.17.R1/share/charsets/ |
  </code></pre>
  <p>I also set my Putty <code>/.bash_profile</code> to use the UTF-8 character set, by inputting the configuration as:</p>
  <pre><code>export LC_CTYPE=&quot;en_US.UTF-8&quot;
  </code></pre>
  <p>Not sure what is going on as I as, I believe, I followed the complete tutorial on how to create a DB Instance and link to EC2 Instance from this link:</p>
  <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/TUT_WebAppWithRDS.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/TUT_WebAppWithRDS.html</a></p>