I have a problem when i run my php code (sometimes it runs successfully, but I need how to avoid it in future) the error appears as :
PHP Fatal error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/myegyme/public_html/Connections/myegy.php on line 9
ve "/home/myegyme/public_html/Connections/myegy.php" içerir:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_myegy = "localhost";
$database_myegy = "mydatabase";
$username_myegy = "myusername";
$password_myegy = "mypassword";
$myegy = mysql_pconnect($hostname_myegy, $username_myegy, $password_myegy) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Bu sorunu nasıl çözebilirim?. Bana yardım edin lütfen!