Direkt zum Inhalt
Startseite

Main navigation

  • Startseite
  • Neue Frage stellen!
User account menu
  • Anmelden
By Gast (nicht überprüft), 5 Dezember, 2020

MySQL / MariaDB : alle DBs schnell exportieren

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

 

By Gast (nicht überprüft), 24 November, 2020

Webdev PC Install - Software für Webentwickler

  1. Firefox
  2. Chrome
  3. Opera
  4. Vivaldi
  5. PDF Reader
  6. Winrar
  7. Docker
  8. PhpStorm
  9. OpenOffice
  10. 1Password
  11. Box
  12. Cloud Software
  13. FileZilla FTP Client
  14. Eraser
  15. Foldersize
  16. MS Office
  17. Node.js
  18. Postman
  19. Python
  20. Skype
  21. Smart Switch
  22. VeraCrypt / TrueCrypt
  23. Keepass
  24. Teamviewer
  25. WAMP Server / XAMPP
  26. PowerShell
  27. Ubuntu for Windows

 

 

 

By Gast (nicht überprüft), 24 November, 2020

Linux Shell Loop : For (5x), While (endless) - One Line / Multiline

While (endless, stop: CTRL+C)

while : 
 do 
  date
  echo "Hello "
  sleep 5
 done

Alternativ:

while : ; do date; echo "Hello "; sleep 6; done

 

For (5x):

for i in {1..5}
do
   echo "Number is $i "
   sleep 2
done

 Alternativ 1:

for i in {1..5}; do echo "Number is $i "; sleep 2; done

 

 Alternativ 2:

for i in {1..5}; do echo "Number is $i " && sleep 2; done

 

 

By Gast (nicht überprüft), 20 November, 2020

grep big-data | show 20 chars before, 10 chars after

Search for BERLIN in a very big file



cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'

 

By Gast (nicht überprüft), 19 November, 2020

Mit Wget Url aufrufen, Website-Dateien/daten + Logs an /dev/null leiten

 




1 * * * * wget -O /dev/null -o /dev/null my-example-website.com

 

By Gast (nicht überprüft), 16 November, 2020

grep + mv files

  1. Search / Grep  content of files in all-documents/
  2. Move files containing africa to documents-africa/

 

grep -siRlI 'africa' all-documents/ | xargs mv -t documents-africa/

 

By Gast (nicht überprüft), 16 November, 2020

tar - exclude multiple Files / Directories

tar --exclude='./dir2ignore' --exclude='./cache_etc' -zcvf /backup/myarchive.tar.gz .

 

By Gast (nicht überprüft), 16 November, 2020

Drush Cron für nur ein (Drupal) Modul

So geht es:

drush php-eval 'my_custom_module_cron();'

 

By Gast (nicht überprüft), 8 November, 2020

Drupal 8 - Inline Template mit Raw - HTML

Controller könnte so aussehen:

<?php

class myController extends ControllerBase
{
    public function myFunc1()
    {
        $html = " ... ";
        return [
            '#type' => 'inline_template', 
            '#template' => '{{ html|raw }}', 
            '#context' => ['html' => $html]
        ];
    }
}

 

By Gast (nicht überprüft), 3 Oktober, 2020

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

Command 1:

drush sql:dump  | gzip -c > /home/backup/db-$(date +%Y-%m-%d-%H%M).sql.gz

Error:

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

Lösung:

drush sql:dump --extra-dump=--no-tablespaces

 

 

Seitennummerierung

  • First page
  • Vorherige Seite
  • …
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Aktuelle Seite 11
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • …
  • Nächste Seite
  • Last page

Neueste Kommentare

  • Fragen zu Drupal 10 Cache

    3 Tage 12 Stunden ago
    4 Wege um Drupal Cache zu löschen / leeren?
    Read more
  • Solution:
    sudo chmod 777 -R…

    1 Woche 5 Tage ago
    User warning: mkdir(): Permission Denied in FileStorage->createDirectory() (Line 123 in web/core/lib/Drupal/Component/PhpStorage/FileStorage.php).
    Read more
  • Alternativ mit SFTP : 
    sftp…

    1 Woche 5 Tage ago
    Server-to-Server Transfer - Download vie SCP / SSH / SFTP
    Read more
  • Plesk

    4 Wochen 1 Tag ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
  • Das hilft: symfony/phpunit-bridge + chmod 777

    4 Wochen 2 Tage ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
  • Solution ( ~/bash_profile ):…

    1 Monat ago
    Drush Error / PHP Warning: Phar::mapPhar(): open_basedir restriction in effect.
    Read more
  •  
     
    Backup Web & DB:
    drush…

    4 Wochen 1 Tag ago
    Drush 10 - sql:dump & compress backup to .gz file
    Read more
  • Das funktioniert:
    /usr/local…

    3 Monate ago
    phpenv: composer: command not found
    Read more
  • Die Lösung ist:

    # export…

    8 Monate ago
    Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
    Read more
  • IT ist Grundlage der EDV

    7 Monate ago
    Gibts Unterschied zwischen EDV und IT?
    Read more

Tools

  • Cookie settings
  • Inhalt hinzufügen
  • Neuester Inhalt

Fußbereich

  • Allgemeine Geschäftsbedingungen - Datenschutz - Impressum