TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.79k stars 2.08k forks source link

How to solve the problem as shown in the picture? #685

Closed TARS-Question closed 3 years ago

TARS-Question commented 4 years ago

MySQL is reinstalled, and the command line can be connected.

#685

TARS-Answer commented 4 years ago

There may be many cases of failure to connect. It may be that during the installation of the Tars framework, the root account password is incorrectly filled in and the tars user cannot be created, or the mysql user may not have the corresponding host permission. You can check whether it is added in the user table in the mysql database. Corresponding permissions.

TARS-Answer commented 4 years ago

无法连接的情况可能有很多,可能在Tars框架安装过程中,root账号密码填错导致无法创建tars用户,也可能没有开mysql用户对应host的权限,可以在mysql数据库中的user表查看是否添加了对应权限。