Skip to content

Instantly share code, notes, and snippets.

@rano9999
Forked from jzzdog/MySql Tooltips.md
Created October 19, 2021 07:05
Show Gist options
  • Save rano9999/9eb52d3f021fbbb36ec294d5c8236170 to your computer and use it in GitHub Desktop.
Save rano9999/9eb52d3f021fbbb36ec294d5c8236170 to your computer and use it in GitHub Desktop.
MySql Tooltips

MySql Initial settings

$ mysql -u root -p
mysql> CREATE DATABASE azcommunity_production DEFAULT CHARACTER SET utf8;
mysql> GRANT ALL PRIVILEGES ON azcommunity_production.* TO 'deploy'@'localhost' 
       IDENTIFIED BY 'deploy';
mysql> EXIT;

Backup and restore

> mysqldump -u deploy -p[password] azcommunity_production > dump.sql
> mysql -u deploy -p[password] azcommunity_production < community_dump.sql

more info: http://habrahabr.ru/post/105954/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment