Hi Everyone
I tried to access to database from php but i couldn't after some attempts
this is the code
$mysqli = new mysqli("ipAddress(hostname)", "UserName", "Password", "DbName");
if($mysqli->connect_error)
die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error());
else echo "Success";
also this
$dbhandle = mysql_connect("ipAddress(hostname)", "UserName", "Password")
or die("Unable to connect to MySQL");
$selected = mysql_select_db("DbName",$dbhandle)
or die("Could not select Database");
give me error messsage
Access denied for user 'UserName'@'ipAddress' (using password: YES) in ../client.php
but when I use C#
No Error Message
string query = string.Format("Select {0} from information_schema.tables ", "table_name");
MySqlDataAdapter DA = new MySqlDataAdapter(query,"Server=ipAddress;User Id=userName;Password=Password;Database=DbName");
DataSet Ds = new DataSet();
DA.Fill(Ds, "Tables");
plz help me
What I have tried:
I tried to use many different codes in php but i couldn't to access database