summaryrefslogtreecommitdiff
path: root/automated/linux/lamp/html/select-record.php
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-10-25 16:30:29 +0800
committerChase Qi <chase.qi@linaro.org>2018-04-02 16:47:02 +0800
commit889987ff0d98a04eb1d5fd5d8d76708283f8c88c (patch)
tree6a58b9dc1917219dbe8eeb726f3bd63bfc862ca9 /automated/linux/lamp/html/select-record.php
parent34bd8600ebd15374ce8e05fd3f891a655a12ad78 (diff)
linux: fix lamp test on debian stretch
* Move from mysql to mariadb. * PHP upgraded from v5 to v7. Remove version number from package names. * Since Mariadb v10, it uses unix_socket authentication for root user by default. It breaks the password authentication using for data accessing from PHP code. This patch create a new super user with password authentication and use it for testing. It is possible to disable unix_socket plugin for root, but it is not consistent across distributions and database versions. Note: It is not backwards compatible. Branch erp-17.08 should be used to run this test on Debian Jessie. Change-Id: Id37f2236dcbab621566a85632bd437994c11fef6 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux/lamp/html/select-record.php')
-rw-r--r--automated/linux/lamp/html/select-record.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/automated/linux/lamp/html/select-record.php b/automated/linux/lamp/html/select-record.php
index 62a4460..e153f03 100644
--- a/automated/linux/lamp/html/select-record.php
+++ b/automated/linux/lamp/html/select-record.php
@@ -1,7 +1,7 @@
<?php
$servername = "localhost";
-$username = "root";
-$password = "lxmptest";
+$username = "admin";
+$password = "password";
$dbname = "myDB";
// Create connection