How to get a list of MySQL views?

后端 未结 9 1533
清歌不尽
清歌不尽 2020-11-28 20:12

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         


        
9条回答
  •  渐次进展
    2020-11-28 20:40

    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.

提交回复
热议问题