AKZN Notes

Archives for My Lazy and Forgetful Mind

Tag: Terminal

How to import big table using mysql command on terminal

Understanding the MySQL Import Command with Custom Parameters When importing large SQL dump files into MySQL, it is often necessary to adjust MySQL’s configuration parameters to handle large queries and improve performance. The following command is an example of importing a database dump while customizing MySQL’s memory settings and disabling foreign key checks: "D:\xampp\mysql\bin\mysql" –max_allowed_packet=512M […]

Keep Processes Running After Ending SSH Session

Problem Let’s say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine? Solution 1. Using built-in bash command For new task nohup nohup long-running-command & It was made specifically for this, it even logs stdout to nohup.log. […]