Jump to content

[SOLVED] Could not connectAccess denied for user 'root'@'localhost' (using password: YES


colap

Recommended Posts

<?php
class cl_ {
    public function fc() {
        $host="localhost";
        $user="root";
        $password="aaaaaaaaa";
        $database_name="a";
        mysql_connect("$host","$user","$database_name")or die('Could not connect: ' . mysql_error());
        mysql_select_db("a");
    }

}
?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.