Mercurial > hg > savane-forge
changeset 310:c087b8f3a3fb
Add a note about typing MySQL password
author | Sylvain Beucler <beuc@beuc.net> |
---|---|
date | Mon, 16 Aug 2010 23:58:12 +0200 |
parents | 33a9bdcc4bdd |
children | 64370a963fc1 |
files | INSTALL |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/INSTALL +++ b/INSTALL @@ -31,7 +31,20 @@ * Install process -You will need to create the mysql user: +MySQL commands: if you defined a password, you can either add '-p' to +each 'mysql' command below (and type your password when prompted), or +you can create a '.my.cnf' file in your home directory, containing the +following: + + [client] + user = root + password = YOURPASS + +Then set its permissions tightly: + + chmod 600 ~/.my.cnf + +Create the mysql user: mysql -e "CREATE DATABASE savane DEFAULT CHARACTER SET utf8;" mysql -e "GRANT ALL PRIVILEGES ON savane.* TO 'savane' IDENTIFIED BY 'yourpass';"