Why php does not connect to mysql, here’s the code:
$db_hostname = 'localhost'; $db_database = 'publications'; $db_username = 'root'; $db_password = 'pass'; $db_server = mysql_connect($db_hostname, $db_username, $db_password); if (!$db_server) die("Невозможно подключиться к MySQL: " . mysql_error()); mysql_select_db($db_database) or die("Невозможно выбрать базу данных: " . mysql_error()); It does not give an error, but it is impossible to choose anything. For example, if you change the value of $db_username to root2 , then nothing will change
mysql_deprecated since PHP 5.5.0. - Visman