added www
This commit is contained in:
13
www/test_db.php
Normal file
13
www/test_db.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$link = mysqli_connect("database", "root", $_ENV['MYSQL_ROOT_PASSWORD'], null);
|
||||
|
||||
if (!$link) {
|
||||
echo "Error: Unable to connect to MySQL." . PHP_EOL;
|
||||
echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
|
||||
echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "Success: A proper connection to MySQL was made! The docker database is great." . PHP_EOL;
|
||||
|
||||
mysqli_close($link);
|
||||
Reference in New Issue
Block a user