![]() |
![]() ![]() |
![]() |
tudsy |
![]()
Post
#1
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 ![]() |
hI
I am trying to connect to a database but i get this error: Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'ecovibdc'@'localhost' (using password: YES) ?> Attached is the file in question. Thanks in anticipation. Adrian T. Attached File(s) ![]() |
CharlesEF |
![]()
Post
#2
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
That tutorial is dated in 2006. You should find a newer tutorial instead. Also, write your Database connection code by itself so you know if it works. You can always add it into the code later. Not to mention you assembled the code badly.
This post has been edited by CharlesEF: Oct 25 2015, 05:34 AM |
Themeaxe |
![]()
Post
#3
|
Newbie ![]() Group: Members Posts: 10 Joined: 18-July 16 Member No.: 24,423 ![]() |
You can try this code for solving this error:
private $host = "localhost"; private $db_name = "db_dbtest"; // Database name private $username = "db_user"; // your database username private $password = "db_password"; // Your password public $conn; |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 14th June 2024 - 06:11 PM |