I had a main HD with my webserver - Apache, PHP, Mysql - but it gave trouble and could not access anymore. I needed to format a new hard drive and reinstall my environment. The problem is that you did not have time to export the database.
I installed everything in the new HD, and already tried to enter the command line of the old HD to export, but it only runs in Mysql of the new HD.
I opened a CMD with the command below by changing the C: / unit to the old one, gave show databases
but did not work.
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" "-uroot" "-p" "--default-character-set=utf8"
I do not know if I did it right or I was wrong at some stage, but is it possible, through the command line, to save the database that is in another HD?