connect mysql database with a domain

Sergeyzh

New Member
hi, i moved my domain mechanisms.club from godaddy to domeneshop and i cant reconnect database to get it work. Any help would be appreciated.
 

Oscar

Member
Hi. Have you changed the credentials for the DB in your codebase? And remembered to transfer the DB over to domeneshop
 

Sergeyzh

New Member
hi, yes did change everything as i think (host, dbname, pass). Transferred it thru dump.sql code. It looks like it is connected with a domain but the domain points me to domeneshop webpage. Support from domeneshop said i have to use the correct method according to my code to connect to database. I found this file class.dbase.php where i aslo changed all these in red.

function DataBase($prefix = "")
{
$this->logger = &$GLOBALS["logger"];
$this->dblink = null;
$this->basePrefix = $prefix;
if (!$this->connect("host", "dbname", "Brukernavn", "pass")) {
print('connection error');
}
}
 

Sergeyzh

New Member

Sergeyzh

New Member
Without the actual details it's difficult to help you. But you don't want to share the actual details on a forum either. :-§

What details do i need to provide to help me out. I can send a database file without credentials, Would it help?
 

Pong

Jeg selger sʇɥƃıluʍop :)
To check if your database is up and in place, you could try:
  • HeidiSQL - connect to your database @domeneshop and see if the tables and info is there
  • Upload phpmyadmin to your webserver and use that to check
  • Upload https://www.adminer.org and use that to check
When you know it's up and running, it has to be the cms you use.
 
Topp