SELECT table_schema "DB Name",
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
GROUP BY table_schema;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use Illuminate\Contracts\Console\Kernel; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
use Illuminate\Foundation\Testing\RefreshDatabaseState; | |
use Symfony\Component\Finder\Finder; | |
/** |
Before working make sure that system has already swap enabled. If there is no swap, you will get output header only.
sudo swapon -s
Lets create a file to use for swap in system of required size. Before making file make sure you have enough free space on disk. Generally, it recommends that swap should be equal to double of installed physical memory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This commit will... | |
- Reason(s): | |
- Change(s): | |
- Reference(s): |
find . -name "*.DS_Store" -type f -delete
open the hosts file
sudo nano /private/etc/hosts
edit and save
flush cache to update
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent --backup-converted --no-host-directories --timestamping --force-html <URL>