mirror of https://git.envs.net/envs/help.git
prevent some misstakes
This commit is contained in:
parent
844b0ece3a
commit
a9103b3ca6
|
@ -17,18 +17,18 @@ on `localhost` port `3306`
|
|||
- database user: `username`
|
||||
- password: *see you welcome email*
|
||||
|
||||
*do not store password change to history:*<br />
|
||||
*`export MYSQL_HISTFILE=/dev/null`*
|
||||
|
||||
connecting to mysql:<br />
|
||||
`mysql -u username -p`
|
||||
|
||||
change your password:<br />
|
||||
`SET PASSWORD = PASSWORD('your-password-here');`
|
||||
|
||||
use database:<br />
|
||||
`use username`
|
||||
|
||||
change your password:<br />
|
||||
*do not store password change to history:*<br />
|
||||
*`export MYSQL_HISTFILE=/dev/null`*
|
||||
|
||||
`SET PASSWORD = PASSWORD('your-password-here');`
|
||||
|
||||
### database backup & restore
|
||||
simple backup:<br />
|
||||
`mysqldump "$USER" -p > ~/backup/dump_"$USER".sql`
|
||||
|
|
Loading…
Reference in New Issue