Created
December 17, 2017 01:43
-
-
Save BelRarr/f5f6408395eb439b67b01a24fd157b11 to your computer and use it in GitHub Desktop.
Restauration de BD MySQL en ligne de commande
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
| -- ******** Connexion à ton serveur MySQL ******** | |
| -- syntaxe: | |
| -- mysql -h {nom du serveur MySQL}.mysql.database.azure.com -u {nom d’utilisateur}@{nom du serveur} -p | |
| -- saisi ton mot de passe lorsque demandé | |
| -- tu peux maintenant exécuter tes commandes (requêtes, restauration de BD, etc.) | |
| -- exemple: | |
| mysql -h demomysqlazureserver.mysql.database.azure.com -u tidjani@demomysqlazureserver -p | |
| -- ******** Restaurer une BD depuis son backup ******** | |
| -- syntaxe: | |
| -- use {nom de la BD}; | |
| -- source {nom du fichier de backup}.sql; | |
| -- exemple: | |
| use employees; | |
| source employees.sql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment