MySQL

From Chorke Wiki
Revision as of 21:12, 31 March 2024 by Shahed (talk | contribs) (Created page with "{| |valign="top"| '''MySQL » Auth » Unix''' <syntaxhighlight lang="sql"> cat << DDL | mysql -- CREATE DATABASE IF NOT EXISTS shahed; CREATE USER 'chorke'@'localhost' IDENTIFIED VIA unix_socket; GRANT ALL PRIVILEGES ON *.* TO 'chorke'@'localhost' WITH GRANT OPTION; DDL </syntaxhighlight> |valign="top"| '''MySQL » Auth » Local''' <syntaxhighlight lang="sql"> cat << DDL | mysql CREATE DATABASE IF NOT EXISTS chorke_orgwiki; CREATE USER 'chorke_orgwiki'@'localhost' IDENT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MySQL » Auth » Unix

cat << DDL | mysql
-- CREATE DATABASE IF NOT EXISTS shahed;
CREATE USER 'chorke'@'localhost' IDENTIFIED VIA unix_socket;
GRANT ALL PRIVILEGES ON *.* TO 'chorke'@'localhost' WITH GRANT OPTION;
DDL

MySQL » Auth » Local

cat << DDL | mysql
CREATE DATABASE IF NOT EXISTS chorke_orgwiki;
CREATE USER 'chorke_orgwiki'@'localhost' IDENTIFIED BY 'sadaqah!';
GRANT ALL PRIVILEGES ON chorke_orgwiki.* TO 'chorke_orgwiki'@'localhost';
DDL

MySQL » Auth » Remote

cat << DDL | mysql
CREATE DATABASE IF NOT EXISTS chorke_orgwiki;
CREATE USER 'chorke_orgwiki'@'%' IDENTIFIED BY 'sadaqah!';
GRANT ALL PRIVILEGES ON chorke_orgwiki.* TO 'chorke_orgwiki'@'%';
DDL