systemctl status mysql
sudo service mysql status
net start | findstr "MySQL"
sudo cat /var/log/mysql/error.log
C:\Program Files\MySQL\MySQL Server 8.0\data\
SET GLOBAL general_log = 'ON';
SET GLOBAL general_log_file = '/var/log/mysql/mysql.log';
SET GLOBAL general_log_file = 'C:/Program Files/MySQL/MySQL Server 8.0/data/mysql.log';
sudo cat /var/log/mysql/mysql.log
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL slow_query_log_file = '/var/log/mysql/slow.log';
SET GLOBAL slow_query_log_file = 'C:/Program Files/MySQL/MySQL Server 8.0/data/slow.log';
SET GLOBAL long_query_time = 2;
sudo cat /var/log/mysql/slow.log
sudo systemctl start mysql
sudo systemctl stop mysql
net start MySQL
net stop MySQL
find / -name my.cnf
df -h
wmic logicaldisk get size,freespace,caption