Jump to content

MySQL Connect Database


teo_turtle

Recommended Posts

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'teo01234_root'@'216.218.192.170' (using password: YES) in /home1/teo01234/public_html/cine/include/connect.php on line 10

Connect failed: Access denied for user 'teo01234_root'@'216.218.192.170' (using password: YES)

 

How to fixed this error ?

 

thank you :-)

Link to comment
Share on other sites

  • Replies 45
  • Created
  • Last Reply

Top Posters In This Topic

yes.

 

my code is(file connect.php) :

 

<?php

 

$host="cine.heliohost.org";

$username="teo01234_root";

$password="********";

$db_selected="teo01234_cine";

 

 

 

$mysqli=mysqli_connect($host,$username,$password,$db_selected);

 

if(mysqli_connect_errno())

{

 

 

printf("Connect failed: %s\n ",mysqli_connect_error());

exit;

}

 

mysqli_query($mysqli,"set names utf8");

 

?>

Link to comment
Share on other sites

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'teo01234_root'@'216.218.192.170' (using password: YES) in /home1/teo01234/public_html/cine/include/connect.php on line 10

Connect failed: Access denied for user 'teo01234_root'@'216.218.192.170' (using password: YES)

 

How to fixed this error ?

 

thank you :-)

 

i have the same error

 

<br />

<b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'desiree_root'@'johnny.heliohost.org' (using password: YES) in <b>/home/desiree/public_html/test.php</b> on line <b>2</b><br />

Could not connect: Access denied for user 'desiree_root'@'johnny.heliohost.org' (using password: YES)

 

 

i used this script::

 

<?php

$conect = mysql_connect('desiree.heliohost.org', 'desiree_root', '********');

if (!$conect) {

die('Could not connect: ' . mysql_error());

}

echo 'Connected successfully';

mysql_close($conect);

?>

 

 

i created user desiree_root and i allocated to database

 

the same error if i use cPanel user

 

and yes, i have all permission granted to user

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...