MySQL is insanely slow on fresh installed Ubuntu 17.10
long_query_time = 1 (or possibly a lower value); this will help get something useful in the slowlog.

With rare exceptions, "You can't tune you way out of a performance problem."

How much RAM?

Find some slow SQL so we can discuss it.  Please provide the corresponding SHOW CREATE TABLE so we know what the table(s) look like.