![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
MySQL Dilemma
Ok
I got all the db name , user , pass shit correct but i get this Warning: Access denied for user: 'root@localhost' (Using password: NO) in /usr/........../setup.php on line 3 Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in /usr/home/........./setup.php on line 3 Could not connect I must be all fucked cause of this Nyquil but am I mising something here? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2002
Location: NY
Posts: 4,994
|
Add -p if you are running from command line, otherwise mysql will think you are trying to access the username/db without a password as if there wasnt one on the account.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
If you just added the user or changed the password you may have to reload mysql before the changes will take effect. I forget to reload a lot.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jul 2003
Location: East Village
Posts: 238
|
Quote:
Yep, this error is very common. If the MySQL details are correct, then make sure that that setup file is being included ryan |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
|
use this one:
if(!($dbcon = mysql_pconnect("localhost", "username", "password"))) { print("Failed connection 1 \n"); exit(); } //select db if(!mysql_select_db("dbname", $dbcon)) { print("Failed connection 2 \n"); exit(); } and don't forget to flush privileges. and as a tip, you should not be using root to connect to your db, you should create another user.
__________________
I do stuff - aIm CS_Jay_D |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jan 2003
Location: right next to u
Posts: 1,403
|
it says: Using password: NO
check how did u setup ur pass... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,115
|
I'm guessing you're not passing any of your authentication information to MySQL, since I doubt you meant to connect as root and it thinks you are, plus the no password note.
What are you installing? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jun 2002
Posts: 871
|
Register_global errors maybe?
|
![]() |
![]() ![]() ![]() ![]() ![]() |