@lebrun78 Thank you for the feedback . Your install is suffering from having the database engine for the tables in ISAM format instead of INNODB. We can fix this no problem.
OK now my needs. I want to use your mysql database with many fog clients to record how many queries take long than 1 second to complete. With your slow database it probably will be all of them. I want to do a before and after test to see the improvements and then once we get the improvements the after scan will give us hints how to make the database go even faster.
The following commands will turn on global query logging (note it might even make your database slower so we will only let it run for 30 minutes).
Log into mysql database as root and run these commands.
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL slow_query_log_file = '/var/log/mysql/slowquery.log';
SET GLOBAL log_queries_not_using_indexes = 'ON';
SET GLOBAL long_query_time = 1;
FLUSH LOGS;
Let this run for 30 minutes at the time of day where you would have the most computers on line and pinging the FOG server.
Then after 30 minutes log back into mysql and run this command to turn off logging.
SET GLOBAL slow_query_log = 'OFF';
The last part is to make a report of the log file and post it in this thread or via a file sharing site. From the linux command prompt run this command to make the report
mysqldumpslow -a /var/log/mysql/slowquery.log >/tmp/slowreport.txt
Download the /tmp/slowreport.txt
from the FOG server and post it here, please.