. .

    @Mail.ru -

PHP MySQL

» PHP 5 » PHP MySQL

, . .bat, 2. Windows mysql-nt.exe ( ). , Windows 2000, , - .

       Windows

, , . MySQL. : mysql_connect() mysql_pconnect(). 12.1.

12.1. PHP MySQL

‹html›
‹head›
‹title› ‹/title›
‹/head›
‹body›
‹?php
//
$link = mysql_connect("localhost", "root", "");
if (! $link)
{
  echo "He ";
  exit();
}
echo " ";
//
mysql_close($link);
?›
‹/body›
‹/html›

mysql_connect() localhost root . resource, MySQL, - FALSE. , , , . , mysql_close(). : .

mysql_pconnect() , . , , . mysql_close() , mysql_pconnect().