I\'m looking for a way to list all views in a database.
Initially I found and tried an answer on the MySQL forums:
SELECT table_name FROM information
Try moving that mysql.bak directory out of /var/lib/mysql to say /root/ or something. It seems like mysql is finding that and it may be causing that ERROR 1102 (42000): Incorrect database name 'mysql.bak' error.
mysql.bak
/var/lib/mysql
/root/
ERROR 1102 (42000): Incorrect database name 'mysql.bak'