Re: Broken mysql, cannot use, remove, reinstall, fix
Show Variables Like ... is a command to be issued in the mysql client program, invoked in Linux in the terminal program with ...
sudo mysql -uYOUR_USERNAME -pYOUR_PSWD
The data folder is where mysql databases live on disk. Each db is a subfolder of the datadir. If someone adds non-mysql files to such a subfolder, mysql can't drop the database by deleting the folder.
Read about Show Variables and the data folder in the mysql manual.
If it's me with your stated unfamiliarity with MySQL basics and I'm working with health-related data, I'll want to hire a local DBA with MySQL experience for a bit to help avoid disasters till I know more.
Edited 1 time(s). Last edit at 04/18/2019 01:43PM by Peter Brawley.