Get the most out of your Centmin Mod LEMP stack
Become a Member

Cant connect to database in whmcs

Discussion in 'Ecommerce / Shopping cart usage' started by aaran p, Dec 27, 2018.

  1. aaran p

    aaran p New Member

    23
    9
    3
    Nov 24, 2016
    Ratings:
    +9
    Local Time:
    11:39 PM
    Hi,

    I have moved all my whmcs from cpanel to my own VPS, i have mved it before with no issue however i have a fresh install of centminmod and everything working well except for some reason after changing the DB in config file for whmcs i get an error that cant connect to DB i dont know why and i have even tried to create a new DB and password and change to that but still no luck is there anything i can do to check that the DB is running and see why i cant connect to it
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,369
    9,287
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,245
    Local Time:
    8:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    how did you create the mysql database name, mysql database user and password ? does the mysql user password contain some non-alphanumeric characters ? tried testing connecting to mysql using that user/pass on ssh command line first ?
    Code (Text):
    mysql -u username -p
    

    when prompted enter the username's passwprd
     
  3. aaran p

    aaran p New Member

    23
    9
    3
    Nov 24, 2016
    Ratings:
    +9
    Local Time:
    11:39 PM
    dont know what the issue was but after a fresh install of centmin on a new machine all is well now, thanks though
     
    • Like Like x 1