This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
onny:notizen [2022/08/16 17:45] – 10.25.0.100 | onny:notizen [2022/09/17 13:39] – [postgresql] 10.25.0.100 | ||
---|---|---|---|
Line 2142: | Line 2142: | ||
# download kernel and stuff from here http:// | # download kernel and stuff from here http:// | ||
qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append " | qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append " | ||
+ | </ | ||
+ | |||
+ | ===== postgresql ===== | ||
+ | |||
+ | dump database | ||
+ | < | ||
+ | pg_dump -U gitlab gitlabhq_production > / | ||
+ | </ | ||
+ | |||
+ | dump all | ||
+ | < | ||
+ | pg_dumpall > / | ||
+ | </ | ||
+ | |||
+ | import database | ||
+ | < | ||
+ | psql# CREATE DATABASE gitlabhq_production; | ||
+ | psql -U gitlab gitlabhq_production < gitlab.pgsql | ||
+ | </ | ||
+ | |||
+ | ===== mysql ===== | ||
+ | |||
+ | Dump database | ||
+ | <code bash> | ||
+ | mysqldump -u root -p Tutorials > tut_backup.sql | ||
+ | </ | ||
+ | |||
+ | Backup everything | ||
+ | <code bash> | ||
+ | mysqldump -u root -p --all-databases > alldb.sql | ||
+ | </ | ||
+ | |||
+ | Import database | ||
+ | < | ||
+ | mysql> CREATE DATABASE wordpress; | ||
+ | sudo mysql -u root wordpress < wordpress.sql | ||
+ | </ | ||
+ | |||
+ | Setup | ||
+ | <code bash> | ||
+ | systemctl stop mysqld | ||
+ | mysql_install_db --user=mysql --basedir=/ | ||
+ | systemctl start mysqld | ||
+ | mysql_secure_installation | ||
</ | </ |