Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active January 27, 2021 10:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
remoteのサーバの状態をpushするためのデータベース及びテーブルを作成するためのSQL文
-- See https://pandanote.info/?p=7242 for details.
drop database if exists serverstatus;
create database serverstatus;
grant all privileges on serverstatus.* to 'serverstatus'@'%' identified by 'Some password to store the status of the remote server.';
grant all privileges on serverstatus.* to 'serverstatus'@'localhost' identified by 'Some password to store the status of the remote server.';
use serverstatus;
drop table if exists serverstatus;
create table serverstatus (
id int not null auto_increment,
status int not null,
updated_at timestamp not null,
primary key(id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment