Phpmyadmin export VIEW without DATABASE_NAME or ALGORITHM

后端 未结 7 1921
忘了有多久
忘了有多久 2021-02-03 11:29

When exporting a sql dump with phpmyadmin it creates the VIEW table like this:

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER 
VIEW `         


        
7条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 12:08

    It creates a VIEW with DEFINER = { user | CURRENT_USER } and with fully qualified table name because during export VIEW PHPMyADMIN executes SHOW CREATE VIEW database_name.view_name; which returns all these values as it is part of SHOW CREATE VIEW result. Refer this.

提交回复
热议问题