Skip to content

Instantly share code, notes, and snippets.

View matthiasgutsch's full-sized avatar

Matthias Gutsch matthiasgutsch

View GitHub Profile
@matthiasgutsch
matthiasgutsch / db-connect-test.php
Created January 14, 2017 07:57 — forked from M165437/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");