PostgreSQL/PgLoader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
EXE | EXE | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Migration== | |||
{| | |||
|valign='top'| | |||
<syntaxhighlight lang="bash"> | |||
cat << DDL | mysql | |||
CREATE DATABASE IF NOT EXISTS academia; | |||
CREATE USER 'chorke'@'%' IDENTIFIED BY 'sadaqah!'; | |||
GRANT ALL PRIVILEGES ON academia.* TO 'chorke'@'%'; | |||
FLUSH PRIVILEGES; | |||
DDL | |||
</syntaxhighlight> | |||
|valign='top'| | |||
|- | |||
|colspan='3'| | |||
---- | |||
|- | |||
|valign='top'| | |||
|valign='top'| | |||
|} | |||
==Playground== | ==Playground== | ||
{| | {| | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang="bash"> | |||
pgloader -h | |||
pgloader -V | |||
</syntaxhighlight> | |||
|valign='top'| | |valign='top'| |
Revision as of 06:35, 3 December 2024
cat << EXE | sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y pgloader
EXE
Migration
cat << DDL | mysql
CREATE DATABASE IF NOT EXISTS academia;
CREATE USER 'chorke'@'%' IDENTIFIED BY 'sadaqah!';
GRANT ALL PRIVILEGES ON academia.* TO 'chorke'@'%';
FLUSH PRIVILEGES;
DDL
|
||
| ||
Playground
pgloader -h
pgloader -V
|
||
| ||
References
| ||