Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/web-scripts/packages.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-11 16:48:09 +0200
committerErich Eckner <git@eckner.net>2018-04-11 16:48:09 +0200
commit7e8a1abfd39586cdaecdfeacd9a7349115b45247 (patch)
treebef3ff66104457ab7056e73bf4698bb7b9cb35ea /web-scripts/packages.php
parent044f83dea8fa8a4d3ca4fe7c0dfa54b64c1c382c (diff)
web-scripts: unify mysql user (http -> webserver)
Diffstat (limited to 'web-scripts/packages.php')
-rw-r--r--web-scripts/packages.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-scripts/packages.php b/web-scripts/packages.php
index b8b5dda..b7c0196 100644
--- a/web-scripts/packages.php
+++ b/web-scripts/packages.php
@@ -1,11 +1,11 @@
<?php
- $mysql = new mysqli("localhost", "http", "http");
+ $mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
if ($mysql->connect_error) {
die("Connection to mysql database failed: " . $mysql->connect_error);
}
- $result = $mysql -> query("SELECT * FROM buildmaster.binary_packages");
+ $result = $mysql -> query("SELECT * FROM `binary_packages`");
if ($result -> num_rows > 0) {
while($row = $result->fetch_assoc()) {
foreach ($row as $key => $val) {