Help Center> GaussDB(for MySQL)> Troubleshooting> Connection Issues> Failed to Connect to a Database as User root
Updated on 2023-09-15 GMT+08:00

Failed to Connect to a Database as User root

Scenario

A database failed to be connected using the root account.

Possible Causes

  1. View the kernel error.log to check whether any connection denial records exist.
  2. Check the root permissions. There are two root accounts. One of them is allowed to access only hosts whose IP addresses start with 192.

Solution

Contact Huawei Cloud customer service to delete the extra root account.