Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
SET @table=(SELECT DATABASE()); | |
select @table; | |
SELECT | |
table_schema as `Database`, | |
table_name AS `Table`, | |
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` | |
FROM information_schema.TABLES | |
WHERE table_schema = @table | |
ORDER BY (data_length + index_length) DESC; |
<?php | |
$database_host = "localhost"; | |
$database_user = "username"; | |
$database_password = "password"; | |
$magento_database = "databasename"; | |
$table_prefix = "prefixhere_"; | |
$dryrun = true; // change to false when you want to commit changes | |
$db = mysql_connect($database_host, $database_user, $database_password); |