Community

ERR_CONNECTION_REFUSED Error trying to import database sql on phpmyadmin

FK
Faheem Kiani #1

I am trying to import the database in VPS cyber panel using phymyadmin but its giving me following error.

I cannot import the database.
How to solve this?

jo
josephgodwinke #2

Hello @faheemkiani

Unfortunately, this has nothing to do with cyberpanel. There can be a number of issue causing this:

  1. Bad internet connection
  2. Faulty browser extensions like ad blockers etc
  3. Antivirus, Firewall blocks
  4. Using a VPN connection
  5. Using a proxy connection

You need to check your connection, flush your dns cache and disable the above

FK
Faheem Kiani #6

I tried this method but still not working

jo
josephgodwinke #7

Have you increased your timeout limit ?

FK
Faheem Kiani #8

How much should i increase the timeout limit?

FK
Faheem Kiani #9

I changed the timeout limit but still same

FK
Faheem Kiani #11

Can you tell me how to give full privileges to a user of a database in VPS ?

FK
Faheem Kiani #12

I am getting this error now at terminal because i am trying to import the database using teriminal

“access denied for user ‘root’@‘localhost’ (using password yes)”

Can you guide me how to fix this?

jo
josephgodwinke #13

You can check root mysql password here /usr/local/CyberCP/CyberCP/settings.py

DATABASES = {
...
    'rootdb': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'mysql',
        'USER': 'root',
        'PASSWORD': 'cyberpanel',
        'HOST': 'localhost',
        'PORT': '',
    }
}
FK
Faheem Kiani #14

but at terminal i did not put any password due to which i saw this error

FK
Faheem Kiani #16

Can you tell me how to find this folder at backend of cyberpanel?

FK
Faheem Kiani #18

how can i access via SSh or Terminal then reset the password?

FK
Faheem Kiani #20

i accessed the terminal.
can you tell me the command how to reset the mysql password?

Sign in to reply