当前位置:网站首页>NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist
NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist
2022-07-26 05:15:00 【csdn_ aspnet】
Because the project is developed and used in the local LAN , Sometimes external deployment display is required , So migrate the project to the Internet server , Install mysql(8.x) database 、iis etc. , Publish the server to iis, Import database related data tables 、 View 、 Function structure , Modify project related configuration files , Start the test project , There are some interface prompts in the process of requesting interfaces :
"message": "The user specified as a definer ('admin'@'%') does not exist"
What the hell is this ? So I began to find the cause of the problem , Searching for some information means that the permission is insufficient , Check the user permissions :

Basic permissions are added, deleted, modified, and checked , So open the external network port of the database , Local connection code test , Breakpoint tracking is all right , Some interface calls always prompt :
The user specified as a definer ('admin'@'%') does not exist
Start looking for reasons in the code , No specific code problem has been found .
After silence , Is it a database problem , Start printing now sql Execute... In the database , The result database is the same prompt , Start using SELECT Query a single table in the Association , Sure enough, this error is prompted in a view :

The original definer who created the view was not admin user , Finally found the cause of the problem , Export the view script , Re execute the extranet platform database , Sure enough OK 了 .
Try to be consistent when creating database users , Avoid this problem , For a long time , Drink a cup of coffee slowly (●'◡'●).
边栏推荐
- Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
- A material of machine learning
- BigDecimal 的 4 个坑,你踩过几个?
- kubernetes install completed
- CMD operation command
- When AQS wakes up the thread, I understand why it traverses from the back to the front
- 【ACWing】2983. 玩具
- Excel vba: saving multiple worksheets as new files
- Compilation method of flood control evaluation report and flood modeling under the new guidelines
- Full analysis of domain name resolution process means better text understanding
猜你喜欢

517. 超级洗衣机

MySQL master-slave synchronization and master-slave synchronization delay solution

Getaverse,走向Web3的远方桥梁

Simulation of future air pollution changes
![[pytorch] install torch 1.8.1 and check whether torch version and GPU are available](/img/97/078c72729a29675939a84895b5ab86.png)
[pytorch] install torch 1.8.1 and check whether torch version and GPU are available

【ACWing】2983. 玩具

mysql如果计算本月变动/本月增幅/同比变动/同比增幅?

一次线上事故,我顿悟了异步的精髓

SAP报表开发步骤

Ansible中常用的模块
随机推荐
Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
kubernetes install completed
Shell的read 读取控制台输入、read的使用
Mathematical modeling and optimization analysis based on general optimization software gams
提高shuffle操作中的reduce并行度
Textfield and password input box that are more flexible and easy to use in compose
Improve reduce parallelism in shuffle operation
C language force buckle question 42 of rain. Four methods - violence, dynamic planning, stack, double pointer
NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist
嵌入式分享合集21
Reason for pilot importerror: cannot import name 'pilot_ Version 'from' PIL ', how to install pilot < 7.0.0
mysql如果计算本月变动/本月增幅/同比变动/同比增幅?
Security permission management details
Leetcode linked list problem - 206. reverse linked list (learn linked list by one question and one article)
Use flutter to adjust a color filter for the picture of my little sister
基于遥感解译与GIS技术环境影响评价图件制作
Black eat black? The man cracked the loopholes in the gambling website and "collected wool" for more than 100000 yuan per month
没背景、没学历?专科测试员进入互联网大厂是不是真的没希望?
Ansible tutorial
普林斯顿微积分读本02第一章--函数的复合、奇偶函数、函数图像