File:
/etc/mysql/mariadb.conf.d/90-mycustom.cnf
Add:
[mariadb]
log_output=FILE
slow_query_log
slow_query_log_file=/var/log/mysql/mariadb-slow.log
long_query_time=0.1
Restart MariaDB:
# systemctl restart mariadbFile:
/etc/mysql/mariadb.conf.d/90-mycustom.cnf
Add:
[mariadb]
log_output=FILE
slow_query_log
slow_query_log_file=/var/log/mysql/mariadb-slow.log
long_query_time=0.1
Restart MariaDB:
# systemctl restart mariadbSoftware / Platforms: Apache Webserver, nginx, MariaDB, PHP 8.3, Plesk, Apache Solr
Give DB User File permission:
mysqldump --user=MyDBUser --password --tab=/tmp/my_export_dir MyDBName
In /etc/mysql/mariadb.conf.d/50-server.cnf
[mysqld]
#my custom changes
innodb_buffer_pool_size = 8G
query_cache_size=256M
Mysql export kann sehr lange dauert, wenn man viele und große Datenbanken hat. Damit man schnell ein Backup von allen DBs erstellen kann:
mysqldump --opt --quick --all-databases > /root/backup/mysql/alldbs.sql
Wenn User login notwendig ist :
mysqldump -u root -p --opt --quick --all-databases > /root/backup/mysql/alldbs.sql
Wie ich alle Datenbanken exportiere und mit GZIP komprimiere:
mysqldump -u myusername -p --all-databases | gzip -c > all-dbs-$(date +%Y-%m-%d-%H%M).sql.gz
Neueste Kommentare
Same problem
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()set-timezone Europe/Berlin
sudo timedatectl set-timezone Europe/BerlinTry this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"nicht?