Ubuntu cannot dump the server's database in WinSCP

If you are already logged into your server with WinSCP, do not try to login again (using ssh) from its Console window. Use mysqldump directly:

mysqldump -u root -pmcc | gzip -9 > dblocal.sql.gz