mysql8 won't start
Solution 1:
I ran sudo chown -R mysql:mysql /var/lib/mysql
to give the mysql user permission on this folder, but do let me know if I have done the wrong thing.
Solution 2:
For me the issue was caused by the custom values that I had added to my.cnf:
#query_cache_size = 0
#query_cache_type = 0
#query_cache_limit = 2M
#sort_buffer_size = 512K
#read_rnd_buffer_size = 512K
#tmp_table_size = 32M
#max_heap_table_size = 32M
#thread_pool_size = 24M
#innodb_log_file_size = 16M
As soon as those were commended out I didn't have any more issues.