CyberPanel 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?

53 replies
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?

FK
Faheem Kiani #21

Do you know how to give full privileges to a user for the database in VPS?
I mean if there any way to Grant full access to user for a specific database in VPS

jo
josephgodwinke #22

You do not need to reset your mysql password when you do not even know it

Run in terminal nano /usr/local/CyberCP/CyberCP/settings.py check for

jo
josephgodwinke #23

Root mysql user has full access or rights to all databases created on your server

FK
Faheem Kiani #26

can you guide me what i am doing wrong here?

jo
josephgodwinke #27

You need to reset the password for the wordpress database user in mysql console

> ALTER USER 'wpuser_wpuser'@'localhost' IDENTIFIED BY 'mynewpassword';
FK
Faheem Kiani #29

Thanks for your support
I successfully imported the database to the PHPMyAdmin

Now my next concern is that i cannot see the litespeed webserver installed on my cyberpanel plan.

How to install litespeed server now?

jo
josephgodwinke #30

Go to https://SERVER_URL:8090/serverstatus/litespeedStatus and get the 15 days trial or add a key for cyberpanel litespeed bundle

WARNING: You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server.

FK
Faheem Kiani #31

Just got an answer back, it seems my cpanel already comes with litespeed webserver (doesn’t require license)

now how to configure it in my VPS Cpanel Plan now?

jo
josephgodwinke #32

CPanel and cyberpanel are two different products that do the same thing. This is the cyberpanel forum

FK
Faheem Kiani #33

Yes…i purchsed cyberpanel…

if there is already available option of litespeed webserver than where to find it in Cyberpanel?

jo
josephgodwinke #34

Did you get a chance to install cyberpanel yourself or it came preinstalled on your server ?

FK
Faheem Kiani #35

i am confused, i cannot check either litespeed is preinstalled or not.

i purchased this VPS plan and install this os " CentOS 7 64bit with CyberPanel".

Do you know either litespeed webserver is installed in it or not?

jo
josephgodwinke #36

You would need to contact hostinger support for this information

jo
josephgodwinke #39

Run in terminal

/usr/local/lsws/bin/lshttpd -v

Post results or screenshot here

jo
josephgodwinke #41

You will need to purchase LiteSpeed license or use the 15 day trial which you cannot go back to OLS once you activate it

FK
Faheem Kiani #43

did my preinstalled litespeed server is not working ?

FK
Faheem Kiani #44

why i need to buy it as i already have the litespeed ?

jo
josephgodwinke #45

Because you should get a result of say Litespeed Web Server Enterprise 5.4.12 not LiteSpeed/1.7 Open

jo
josephgodwinke #47

Choose any plan here Shopping Cart - LiteSpeed Technologies the “most popular” is Web Host Essential with CyberPanel but for me its best because of unlimited RAM and caching is supported . However Web Host Lite with CyberPanel is sufficient is most cases where you are running not so many websites or critical apps

I believe you should still contact Hostinger support about liability for switching to litespeed. You might not get support I believe just ask them

FK
Faheem Kiani #48

you mean my already working litespeed server is enough but i have to purchase the other one for good result.right?

FK
Faheem Kiani #50

ok in short it means OpenLiteSpeed is sufficient for current website…right?

FK
Faheem Kiani #51

but for better result i can change it

FK
Faheem Kiani #54

ok sure i will keep this for now than i will see other options if i needed.

Sign in to reply