Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 422 Bytes

File metadata and controls

20 lines (17 loc) · 422 Bytes

Prepare Database

CREATE DATABASE health;
GRANT ALL PRIVILEGES ON health.* TO health@'%' IDENTIFIED BY 'xxxxxxxxxxxxxxxxxxxxx';
USE health;
CREATE TABLE checks (id VARCHAR(36) PRIMARY KEY, timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP);

Create inc with mysql connect

Edit health.inc:

<?php

$server = "localhost:3306";
$user = "health";
$password = "xxxxxxxxxxxxxxxxxxxxx";
$db = "health";

?>