No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_db.php 462B

1234567891011121314
  1. <?php
  2. $link = mysqli_connect("mysql", "root", "tiger", null);
  3. if (!$link) {
  4. echo "Error: Unable to connect to MySQL." . PHP_EOL;
  5. echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
  6. echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
  7. exit;
  8. }
  9. echo "Success: A proper connection to MySQL was made! The docker database is great." . PHP_EOL;
  10. echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL;
  11. mysqli_close($link);