Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Am un UCP si cand il accesez imi zice ca '' Ne se poate face conexiunea MYSQL'' cum pot face conexiunea ?

4 answers to this question

Recommended Posts

  • 0
Posted

Vezi ca trebuie sa ai un fisier de config. gen config.php si acolo trebuie sa treci datele tale de la sv de mysql

aNnsL.png

  • 0
Posted
<?php
$server	= "CHANGE"; // Hostname
$dbuser	= "CHANGE"; //User
$dbpass	= "CHANGE"; //Parola
$dbname	= "CHANGE"; //Nume baza de date
$connect = mysql_connect($server,$dbuser,$dbpass) or die(mysql_error());
$select	= mysql_select_db($dbname,$connect) or die(mysql_error());
?>

 

  • 0
Posted

Am un UCP si cand il accesez imi zice ca '' Ne se poate face conexiunea MYSQL'' cum pot face conexiunea ?

Daca ai panel-ul respect gaming(asemanator bugged),datele bazei de date le pui in "/includes/connection.php" .Pui asta acolo si introduci detaliile bazei de date:

<?php
$link = mysql_connect('HOST_MYSQL', 'USER_MYSQL', 'PASS_MYSQL') or die("Nu se poate efectua conexiunea MYSQL.");
mysql_select_db('BAZA_MYSQL', $link);
?>

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.