CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_all_users_password` AS select `d003_portalusers`.`id` AS `id`,999999 AS `mobile`,`d003_portalusers`.`user_id` AS `email`,`d003_portalusers`.`password` AS `password`,1 AS `user_type` from `d003_portalusers` union select `d003_users`.`id` AS `id`,`d003_users`.`mobile` AS `mobile`,`d003_users`.`user_email` AS `email`,`d003_users`.`user_password` AS `password`,2 AS `user_type` from `d003_users` where (`d003_users`.`user_type` = 'vendor') union select `d003_users`.`id` AS `id`,`d003_users`.`mobile` AS `mobile`,`d003_users`.`user_email` AS `email`,`d003_users`.`user_password` AS `password`,3 AS `user_type` from `d003_users` where (`d003_users`.`user_type` <> 'vendor') ;
我的localhost视图中的已创建,我想在实时服务器中创建相同的视图。 运行此查询时出现此错误 -
1227 - 拒绝访问;您需要(至少一个)此操作的SUPER权限