L0x
02-04-2009, 01:10 AM
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp\www\install.php on line 5
Cannot connect to MySql database
install.php
<?php
//installation file, should be removed from server after install
include("conf.php");
function ConnectMySQL($host, $login, $password){
$connect=mysql_connect($host,$login,$password);
if ($connect===FALSE){
die('Cannot connect to MySql database');}
}
conf.php
<?php
$base1 = "localhost"; // databse host , change this
$base2 = "root"; // database login , change this
$base3 = "toor"; // databse password , change this
$base4 = "mysql"; // database name, change this
$table = "table"; // databse table, will be created automaticaly
?>
whats wrong??
Cannot connect to MySql database
install.php
<?php
//installation file, should be removed from server after install
include("conf.php");
function ConnectMySQL($host, $login, $password){
$connect=mysql_connect($host,$login,$password);
if ($connect===FALSE){
die('Cannot connect to MySql database');}
}
conf.php
<?php
$base1 = "localhost"; // databse host , change this
$base2 = "root"; // database login , change this
$base3 = "toor"; // databse password , change this
$base4 = "mysql"; // database name, change this
$table = "table"; // databse table, will be created automaticaly
?>
whats wrong??