Mysql: unknown variable, can't run any mysql applications, doesn't seem to be to do with my.cnf
assuming that your good configuration file is /etc/my.cnf (which may not be), edit your mysql init file and add --init-file /etc/my.cnf to the mysqld command to make sure that it is indeed reading from the the init file that you think it is reading from.