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
# create user | |
CREATE USER 'myuser'@'%' IDENTIFIED BY 'password'; | |
# grant user all rights on database | |
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION; | |
# create database with UTF8 character set | |
create database databasename DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; | |
# To dump a Mysql database and gzip it: |
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
function debug($msg, $exit=true) { | |
if($_SERVER['REMOTE_ADDR'] == '192.168.0.0') { // only for my ip | |
echo "<pre>"; | |
var_dump($msg); | |
echo "</pre>"; | |
if ($exit) { | |
exit; | |
} | |
} |
NewerOlder