mysqldump stuck at connecting to localhost



  • System Info:
    mySQL version: Ver 8.0.27 for Win64 on x86_64 (MySQL Community Server - GPL)
    windows 10 version: 20H2 19042.1586

    I am trying to create a backup of a database. When I try to run the following command:

    mysqldump -u root -p -v -P 3306 --quick --single-transaction sakila > sakila.sql
    

    all I see in the terminal is
    -- Connecting to localhost...

    What could I be doing wrong. I am anticipating some kind of error message but nothing happens.

    I believe screenshots are against the rules, but if there is another way to visualize what's happening I can try that



  • Finally figured this out.

    Instead of using Git Bash, I used PowerShell in administrator mode. The computer I'm using is heavily restricted so something must have blocked/prevented the use in Git Bash. Hope this helps someone in the future!




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2