Jump to content
php.lv forumi

Hostings !


foxc

Recommended Posts

Iegadaajos domeenu un hostingu.. Vissu saliku.. Izveidoju datubazi un visu pareejo.. kad iet lapaa radaas:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

 

kas tas ir un kaa to izlabot?

Edited by foxc
Link to comment
Share on other sites

Nu nomainiju configa failaa:

 

 

$username="logins";

$password="parole";

$database="db";

$timesbildes="";

 

@mysql_connect("localhost", "$username", "$password") or die(mysql_error());

@mysql_select_db("$database") or die("Nevar atver $database datubazi");

 

uz sito

 

 

$username="logins";

$password="parole";

$database="db";

$timesbildes="";

 

@mysql_connect("127.0.0.1", "$username", "$password") or die(mysql_error());

@mysql_select_db("$database") or die("Nevar atver $database datubazi");

 

Itkaa viens draugs teica ka taa vajagot.. Bet tagad uzmetas errors : Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Link to comment
Share on other sites

localhost un 127.0.0.1 ir viens un tas pats. Drīzāk aizraksti savam hostētājam par savām problēmām. Viņš tomēr labāk zinās kā viņam ir MySQL serveris nokonfigurēts. Mēs te tikai varam tējas biezumos zīlēt un minēt...

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.

Loading...
×
×
  • Create New...