![]() |
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? |
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.
|
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.
|
Quote:
|
Quote:
Yep, this error is very common. If the MySQL details are correct, then make sure that that setup file is being included ryan |
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. |
it says: Using password: NO
check how did u setup ur pass... |
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? |
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