This file contains 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
#! /bin/bash | |
newUser='' | |
newDbPassword='' | |
newDb='' | |
host=localhost | |
#host='%' | |
commands="CREATE DATABASE \`${newDb}\`;CREATE USER '${newUser}'@'${host}' IDENTIFIED BY '${newDbPassword}';GRANT USAGE ON *.* TO '${newUser}'@'${host}' IDENTIFIED BY '${newDbPassword}';GRANT ALL privileges ON \`${newDb}\`.* | |
TO '${newUser}'@'${host}';FLUSH PRIVILEGES;" |
This file contains 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 | |
/** | |
* Compare Two Domain Name Values | |
* | |
* @author Edwin Velez (https://edwinvelez.net) | |
* @link https://edwinvelez.net/compare-two-domain-name-values/ | |
*/ | |
// The domain name or host you want to compare. Can also be a host i.e. http://localhost |