bug #4625 "Insufficient space to save the file" on export SQL to file on server

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
A better fix for bug #4625

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Merge branch 'QA_4_3'