I've been attempting to compress my mysqldump output via 7z using the pipe operator (I have seen this question, but its answer uses xz not 7z). This is what I have tried so far:
mysqldump -u root -p Linux_Wiki | 7z > backup.sql.7z
and:
mysqldump -u root -p Linux_Wiki | 7za > backup.sql.7z
and:
mysqldump -u root -p Linux_Wiki | '7za a' > backup.sql.7z
and:
mysqldump -u root -p Linux_Wiki | `7za a` > backup.sql.7z
All four failed, but I am sure I have p7zip installed, after all the last of these attempts gave this output:
Enter password: bash: 7-Zip: command not found
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect