diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-11-28 12:25:57 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-11-28 10:31:29 +0000 |
commit | a64e9bef105f108a585bf60d4451cdd3f7a3473f (patch) | |
tree | 17e2004300620c0e6a9646572632eff34268d0df /automated/linux/lemp | |
parent | db0522c9538e5f37da6b1577efb9dad82204deed (diff) |
automated: linux: unify mysql password for LAMP and LEMP tests
Change-Id: I1a6d2dd4b16d1a7d2fff88af4c7e98d4e06d2636
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux/lemp')
-rw-r--r-- | automated/linux/lemp/html/add-record.php | 2 | ||||
-rw-r--r-- | automated/linux/lemp/html/connect-db.php | 2 | ||||
-rw-r--r-- | automated/linux/lemp/html/create-db.php | 2 | ||||
-rw-r--r-- | automated/linux/lemp/html/create-table.php | 2 | ||||
-rw-r--r-- | automated/linux/lemp/html/delete-record.php | 2 | ||||
-rw-r--r-- | automated/linux/lemp/html/select-record.php | 2 | ||||
-rwxr-xr-x | automated/linux/lemp/lemp.sh | 6 |
7 files changed, 9 insertions, 9 deletions
diff --git a/automated/linux/lemp/html/add-record.php b/automated/linux/lemp/html/add-record.php index 955652a..f7802ae 100644 --- a/automated/linux/lemp/html/add-record.php +++ b/automated/linux/lemp/html/add-record.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; $dbname = "myDB"; // Create connection diff --git a/automated/linux/lemp/html/connect-db.php b/automated/linux/lemp/html/connect-db.php index 5bcdeed..c43dff7 100644 --- a/automated/linux/lemp/html/connect-db.php +++ b/automated/linux/lemp/html/connect-db.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; // Create connection $conn = new mysqli($servername, $username, $password); diff --git a/automated/linux/lemp/html/create-db.php b/automated/linux/lemp/html/create-db.php index e6bf219..1373709 100644 --- a/automated/linux/lemp/html/create-db.php +++ b/automated/linux/lemp/html/create-db.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; // Create connection $conn = new mysqli($servername, $username, $password); diff --git a/automated/linux/lemp/html/create-table.php b/automated/linux/lemp/html/create-table.php index cf60a50..04eb56e 100644 --- a/automated/linux/lemp/html/create-table.php +++ b/automated/linux/lemp/html/create-table.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; $dbname = "myDB"; // Create connection diff --git a/automated/linux/lemp/html/delete-record.php b/automated/linux/lemp/html/delete-record.php index d011f4e..3556256 100644 --- a/automated/linux/lemp/html/delete-record.php +++ b/automated/linux/lemp/html/delete-record.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; $dbname = "myDB"; // Create connection diff --git a/automated/linux/lemp/html/select-record.php b/automated/linux/lemp/html/select-record.php index d67dc6e..62a4460 100644 --- a/automated/linux/lemp/html/select-record.php +++ b/automated/linux/lemp/html/select-record.php @@ -1,7 +1,7 @@ <?php $servername = "localhost"; $username = "root"; -$password = "lemptest"; +$password = "lxmptest"; $dbname = "myDB"; // Create connection diff --git a/automated/linux/lemp/lemp.sh b/automated/linux/lemp/lemp.sh index e21dbc6..92a4f28 100755 --- a/automated/linux/lemp/lemp.sh +++ b/automated/linux/lemp/lemp.sh @@ -88,8 +88,8 @@ run_test_case "${test_command}" "test-nginx-server" "${skip_list}" # Test MySQL. skip_list="$(echo "${skip_list}" | awk '{ for (i=2; i<=NF; i++) print $i}')" -mysqladmin -u root password lemptest > /dev/null 2>&1 || true -test_command="mysql --user='root' --password='lemptest' -e 'show databases'" +mysqladmin -u root password lxmptest > /dev/null 2>&1 || true +test_command="mysql --user='root' --password='lxmptest' -e 'show databases'" run_test_case "${test_command}" "mysql-show-databases" "${skip_list}" # Test PHP. @@ -135,7 +135,7 @@ run_test_case "${test_command}" "php-delete-record" # Cleanup. # Delete myDB for the next run. -mysql --user='root' --password='lemptest' -e 'DROP DATABASE myDB' +mysql --user='root' --password='lxmptest' -e 'DROP DATABASE myDB' # Restore from backups. rm -rf /usr/share/nginx/html |