Skip to content

Commit fa094d7

Browse files
author
Adrian Matei
committed
few tweaks on the "the alias way to backup a mysql dabatase from command line" post
1 parent fa8db8f commit fa094d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2017-04-03-The-alias-way-to-backup-mysql-database-from-command-line.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags: [mysql, bash, linux]
1010
---
1111

1212
As I have told you [before](http://www.codingpedia.org/ama/a-developers-guide-to-using-aliases/), I am really hooked on bash aliases[^2].
13-
This blog emphasizes this point and shows how to make a MySql database backup via `mysqldump` with only three words, even with three letters, if you may like.
13+
This blog entry emphasizes that point and presents how to make a MySql database backup via `mysqldump` with only three words, even with three letters, if you will.
1414

1515
[^1]: <http://tldp.org/LDP/abs/html/aliases.html>
1616
[^2]: <http://www.codingpedia.org/ama/a-developers-guide-to-using-aliases/>
@@ -23,7 +23,7 @@ $ alias mysql-backup-db_name='mysqldump db_name -u db_user -p -h 127.0.0.1 --por
2323
$ mysql-backup-db_name
2424
```
2525

26-
or, same result with three letters, if you'd like:
26+
or, same with three letters:
2727

2828
```
2929
@@ -35,7 +35,7 @@ $ mbd
3535

3636
The option `-u`, will ask you for the password. The port number is not mandatory (as it defaults to **3306**), but if you are using other port, you need to specify it.
3737

38-
> I personally prefer the longer alias-approach, as the name is more clear, **there is auto complete**. Besides that I can always `alias-grep` it[^1] - (`alias alias-grep='alias | grep'`),
38+
> I personally prefer the whole name approach, as then it is more clear to me. I can start typing `mysql-` and then **there is auto complete**. Besides that I can always `alias-grep` it[^1] - (`alias alias-grep='alias | grep'`),
3939
if I need to see how it looks like - using the alias in this case as sort of documentation...
4040

4141
Below there is a concrete example, where I backup the MySQL keycloak database:

0 commit comments

Comments
 (0)