今天服務器Mysql版本在5.7升級到8.0+之后,部分網站(老的)訪問視圖出現The user specified as a definer ('root'@'%') does not exist問題
百度了之后,大部分人都說執行
權限問題,授權 給 root 所有sql 權限 mysql> grant all privileges on *.* to root@"%" identified by "."; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) ———————————————— 版權聲明:本文為CSDN博主「廢城死撐」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/qq_41570658/article/details/90846867
我使用上面命令出現語法錯誤。
后台在:https://blog.51cto.com/12906823/2103942 這個博主中看到了解決方案
特此保留紀念