ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Can not contact with database(MySQL, PostgreSQL and MariaSQL, what all of if giving)

Open 12dc32d opened this issue 3 months ago • 2 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)

Commit ID

none

Other environment information

Windows wsl CentOS7

Actual behavior

I can connect to MySQL, PostgreSQL, and MariaSQL normally in the terminal and other database operation software (I have tried all of them). However, I cannot connect to the local database using the database name, user name, host, and password in the ragflow Agent.

I turned off the firewall and confirmed that all three databases are running in Task Manager and can be operated normally in the terminal and visualization tool. The error is: Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused).

Of course, I also tried using "localhost" as the host, but the error message was: Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused).

This is my input: Database type MariaSQL

Database ragflow

User name root

Host 127.0.0.1

Port 3306

Password


Expected behavior

Connect to the database after entering the correct parameters

Steps to reproduce

When creating a workflow in the agent, you cannot connect to any of the local databases MySQL, PostgreSQL, or MariaSQL when using a database connection.

Additional information

No response

12dc32d avatar Nov 13 '24 07:11 12dc32d