Phpmyadmin export VIEW without DATABASE_NAME or ALGORITHM

后端 未结 7 1916
忘了有多久
忘了有多久 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:18

    It's only taken 8 years but phpmyadmin now includes an option to prevent this issue:-

    Exclude definition of current user

    This appears under the CREATE VIEW section, select this and you will get a properly working extract.

提交回复
热议问题