Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysqladmin --user=root --password=test_pass stop-slave
- mysqladmin --user=root --password stop-slave
- $ & ! [ ] < > `
- mysql --password=pa$$word # does not work
- mysql --password='pa$$word' # works
- mysql --password=pa$$word # works, but slightly unclear what's going on at first glance
- mysql --password="like'this" # password has a single quote in the middle
- mysql --password='like"this' # password with a double quote in the middle
- $ echo foo$bar
- foo # literal 'foo' plus the (empty) shell variable $bar
- $ echo foo$bar
- foo$bar # backslash prevents expansion of $bar as a variable
- $ echo "foo$$bar" # weaker double quote doesn't prevent expansion so
- foo9691bar # the $$ expands to the unix process id (pid) of the current shell
- $ echo 'foo$$bar'
- foo$$bar # "stronger" single quote prevents shell expansion
- $ echo "foo'bar"
- foo'bar # double quote allows single quote within the literal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement