Upgrade from 5.0.2 to 6.0.0 (AWS Cloud STANDARD) - Step 6 - sql_upgrade.php gives message 'Check that mysqld is running'

Situation
I am following the 5.0.2 to 6.0.0 upgrade instructions here (don’t ask me to do docker.compose up because I have tried that 3 times and each time the EC2 instance became unresponsive to webserver messages):
https://www.open-emr.org/wiki/index.php/Linux_Upgrade_5.0.2_to_6.0.0

Here are the steps given:

Upgrade

  1. Move current (5.0.2) /openemr directory to a backup directory openemr_bk
  2. Unpackage 6.0.0 openemr into web directory and rename the directory to openemr
  3. Copy following directory from old 5.0.2 version to /openemr directory:

openemr_bk/sites/default/documents (COPY TO) => openemr/sites/default/documents

  1. Copy the openemr/sites/default/sqlconf.php file from your old 5.0.2 version into the new openemr version
  2. In the openemr/sites/default/sqlconf.php file, set the $config variable (found near bottom of file within bunch of slashes) to 1 ($config = 1;)
  3. Open openemr/sql_upgrade.php (http://localhost/openemr/sql_upgrade.php) in web browser, choose 5.0.2 and click ‘Upgrade Database’
  4. Configure optional settings in openemr/sites/default/config.php files

Of note, in step 5, $config=1; is set already
In step 6, the sql_upgrade.php generates an error as follows:

Check that mysqld is running.

Note that the MySQL server is running on a separate AWS instance, not locally. Is there another method for upgrading the MySQL database from 5.0.2p5 to 6.0.0 (and eventually will be patched to patch 1 etc.).

OpenEMR Version
I’m using OpenEMR version 5.0.2 patch 5 upgrading to version 6.0.0 patch 1.
–RBL