GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL Dilemma (https://gfy.com/showthread.php?t=214447)

Juicy D. Links 12-29-2003 05:58 PM

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?

liquidmoe 12-29-2003 05:59 PM

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.

Babaganoosh 12-29-2003 06:04 PM

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.

JSA Matt 12-29-2003 06:11 PM

Quote:

Originally posted by juicylinks
(Using password: NO)
Apparently, you didn't add the password to the script or messed something up because MySQL is not recieving a password.

pornanza 12-29-2003 06:48 PM

Quote:

Originally posted by JSA Matt


Apparently, you didn't add the password to the script or messed something up because MySQL is not recieving a password.


Yep, this error is very common. If the MySQL details are correct, then make sure that that setup file is being included

ryan

CS-Jay 12-29-2003 06:59 PM

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.

avion 12-29-2003 07:05 PM

it says: Using password: NO

check how did u setup ur pass...

fuzebox 12-29-2003 08:26 PM

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?

Hansm 12-29-2003 11:51 PM

Register_global errors maybe?


All times are GMT -7. The time now is 08:28 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123