Jump to content

Eroare conectare panel


FeVosFeR

Recommended Posts

Salut! Am luat si eu panelul BigZone 1.21: 

Am conectat la baza de date si imi da eroare cand intru pe site: 'Avem o problema tehnica. Revenim in cel mai scurt timp posibil.

De ex: La host am:

Server/Host: 127.0.0.1

Username: server_1234

Database name: server_1234_da

Parola: 1234567890

La panel am adaugat: 

            'host'         =>    '127.0.0.1',
            'username'     =>     'server_1234',
            'dbname'     =>     'server_1234_da',
            'password'     =>     '1234567890'

Ce este gresit de imi da acea eroare?

 

 

Link to comment
Share on other sites

2 minutes ago, LucaAdv. said:

ai mentenanta.php sau cv de genu, sterge-o si iti merge !

Nu, in config.class este asta: 

	private function __construct() {
		$db['mysql'] = array(
			'host' 		=>	'localhost',
			'username' 	=> 	'root',
			'dbname' 	=> 	'bigzoneultimate',
			'password' 	=> 	''
		);

		try {
			self::$g_con = new PDO('mysql:host='.$db['mysql']['host'].';dbname='.$db['mysql']['dbname'].';charset=utf8',$db['mysql']['username'],$db['mysql']['password']);
			self::$g_con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
			self::$g_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		} catch (PDOException $e) {
			@file_put_contents('error_log',@file_get_contents('error_log') . $e->getMessage() . "\n");
			die('<div class="alert alert-danger"><br />Avem o problema tehnica. Revenim in cel mai scurt timp posibil.</div>');
		}
		self::_getUrl();
		self::arrays();
	}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.