MySQL: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 38: Line 38:
{|
{|
|valign="top"|
|valign="top"|
* [[MySQL/Dump]]
* [https://dev.mysql.com/blog-archive/accessing-the-same-data-through-ldap-and-sql/ MySQL » LDAP Store & Fetch Data]
* [[PostgreSQL]]
* [[MySQL/Dump|MySQL » Dump]]


|valign="top"|
|valign="top"|
Line 50: Line 50:
|-
|-
|valign="top"|
|valign="top"|
* [[PostgreSQL]]


|valign="top"|
|valign="top"|

Revision as of 22:24, 3 April 2024

MySQL » Auth » Unix

sudo su
cat << DDL | mysql
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

References