Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ mysqldump from terminal
Added by sonik on 29-05-2017 and keywords: [ Print Article ]
If you have an error like this:
[quote]
mysqldump: [Warnings] Using a password on the command line interface can be insecure.

You can create mysqldump like this:
mysqldump --defaults-extra-file=/path/to/config.cnf

create config.cnf:
[client]
user = whatever
password = whatever
host = whatever

Now lets backup a database
mysqldump --defaults-extra-file=/path/to/config.cnf database > /root/export.sql


[warning]
It's not the best practice because the password is in a file and not encrypted!

@All rights reserved with Copyright Webleit.info 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]