Mercurial > hg > private
comparison db.php @ 2:eec825432669 default tip
parameterise db path
| author | Charlie Root |
|---|---|
| date | Sun, 27 Jan 2019 14:51:23 -0500 |
| parents | 8e907c11207a |
| children |
comparison
equal
deleted
inserted
replaced
| 1:d70fd5290b07 | 2:eec825432669 |
|---|---|
| 1 <?PHP | 1 <?PHP |
| 2 global $link; | 2 global $link; |
| 3 $socket = "/run/mysqld".getenv("TEST_SUFFIX")."/mysqld.sock"; | |
| 3 $link = mysqli_connect("localhost","bookwhac","Wedding2010","bookwhac_books", | 4 $link = mysqli_connect("localhost","bookwhac","Wedding2010","bookwhac_books", |
| 4 null,"/run/mysqld_test/mysqld.sock"); | 5 null,$socket); |
| 5 if (is_bool($link) or is_null($link)) { | 6 if (is_bool($link) or is_null($link)) { |
| 6 include_once "dlog.php"; | 7 include_once "dlog.php"; |
| 7 dl("connect failed: |$link|\n"); | 8 dl("connect failed: |$link| |$socket|\n"); |
| 8 } | 9 } |
| 9 include_once "mq.php"; | 10 include_once "mq.php"; |
| 10 ?> | 11 ?> |
