
Si no mal entiendo entro al mysql.php y pongo los datos de la db?
Código:
<?php
class mysql {
var $link;
var $querycount=0;
var $querylist='';
function connect($host, $username, $password, $db) {
$this->link = mysql_connect($host, $username, $password) or die("Could not connect.");
mysql_select_db($db) or die("Could not find database.");
}
function query($query) {
if (!($result = mysql_query($query))) {
ob_end_clean();
die("SQL Error: ".mysql_error()."<br />Query: $query<br />");
}
$this->querycount++;
$this->querylist.="<br />$query";
return $result;
}
function result($result, $row, $name) {
return mysql_result($result, $row, $name);
}
function numrows($result) {
$numrows = mysql_num_rows($result);
return $numrows;
}
function affectedrows() {
return mysql_affected_rows($this->link);
}
}
?>
Pero me sale este error al ejecutar el installer.php:
Citar
Warning: mysql_connect() [function.mysql-connect]: Access denied for user
Que estoy haciendo mal?
