-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] tarsweb, Access denied for user 'tarsAdmin' error #871
Comments
奇怪, 一直都有这句啊 |
tars-install.sh里是下面这样的,Mysql 8.x的GRANT应该和5.x是一样的才对
|
我用mysql8的镜像试了, 貌似没问题?这样启动mysql8的镜像 |
What version of TARS and what language are you using?
TarsFramework v2.4.7
Mysql 8.0
What operating system (Linux, Windows, ...) and version? [e.g. CentOS 7.8]
CentOS 7.6
What runtime/compiler are you using? [e.g. JDK version or version of gcc]
Describe the bug
通过源码编译后的脚本安装Tars框架服务
./linux-install.sh MYSQL_HOST MYSQL_PASSWORD INET REBUILD(false[default]/true) SLAVE(false[default]/true) MYSQL_USER MYSQL_PORT
访问tars web,http://ip:3000
将会出现SequelizeConnectionError: Access denied for user 'tarsAdmin'@'172.16.105.228' to database 'db_user_system'的错误
原因:Mysql8.0的安全策略引起,linux-install.sh脚本创建的mysql用户tarsAdmin没有权限
登录mysql后,查看mysql.user表可以看出
建议在脚本中兼容Mysql 8.0的情况,设置tarsAdmin的权限
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: