首页 > 代码库 > mysql

mysql

1.mysql的连接问题

// Mysql settings
  $user   = "root";
  $password = "root";
  $database = "study";
  $host   = "localhost"; //如果是ip地址,需要注册
  $connection=mysql_connect($host,$user,$password);
  mysql_select_db($database) or die( "Unable to select database");

 

mysql