Skip to content

Instantly share code, notes, and snippets.

View mikemiller891's full-sized avatar

Mike Miller mikemiller891

View GitHub Profile
@paul1522
paul1522 / get_adminer.sh
Last active January 21, 2021 23:31
Bash script to download the latest version of adminer from https://www.adminer.org/
#!/bin/bash
## Figure out what the latest version is and download it, if needed.
CURVER=`wget -qO- https://www.adminer.org/ | perl -ne 'if (m/adminer-([0-9\.]+)\.php/s) { print "$1\n"; exit }'`
[ -f adminer-$CURVER.php ] || wget https://github.com/vrana/adminer/releases/download/v$CURVER/adminer-$CURVER.php
## Symlink index.php to it.
ln -sf adminer-$CURVER.php index.php
## Get the theme switcher too.
@francois-blanchard
francois-blanchard / add_user_mysql.md
Created December 11, 2014 10:11
Add user MySQL

Add user MySQL

> CREATE DATABASE name_database;
> CREATE USER 'name_user'@'ip_or_localhost' IDENTIFIED BY 'choose_password';
> GRANT ALL PRIVILEGES ON name_database.* TO 'name_user'@'ip_or_localhost';
> FLUSH PRIVILEGES;

Delete user