Access denied for user ''@'localhost' (using password: NO

MAZICJA

New member
Joined
Mar 1, 2018
Messages
3
Best answers
0
Points
1
#1
Hello Friends, PLEASE I need your help. My php website just went berserk and I do not know why and what happened. On the home Page I get this message
- Access denied for user ''@'localhost' (using password: NO). -

And since then I cannot log into the admin side of the website and most of the website contents are not displaying again. The site is written in php and is a b2b marketplace.

Please how do I rectify this.

Thanks for your help in advance
 

RDO Servers

Well-known member
Joined
Apr 3, 2015
Messages
1,027
Best answers
1
Ratings
416 3
Points
83
#2
Sounds like you do not have proper login credentials to your database
 

hostens

Well-known member
Joined
Jan 18, 2017
Messages
173
Best answers
2
Ratings
62 7
Points
28
#3
I agree with the RDO Servers. You need to login into the File Manager or FTP and edit the website configuration file, where database login credentials are provided and correct them into valid ones. The lines usually are displayed: "DB_USER", "DB_NAME", "DB_PASSWORD", "DB_HOST".
 
Joined
Jan 19, 2013
Messages
17
Best answers
0
Ratings
3
Points
3
#4
It seems you have changed your database password or user name. Please update your config file with the proper database user and password details.

step 1. Log on to your cPanel.

step 2. Select MySQL Database Wizard below the Databases heading tab.

step 3. Besides New Database enter a name for the database and go to Next Step.

step 4. Enter a username. Choose Password, Confirm your Password and then click Create User.

step 5. On the next page, you'll assign privileges for the user to the database. Check the box next to All Privileges and then click Next Step

go to the your config file then change server,username,password,database

define('DB_SERVER', 'xyz');
define('DB_USERNAME', 'xyz');
define('DB_PASSWORD', 'xyz');
define('DB_DATABASE', 'xyz');
 
Last edited:
Latest Threads
Replies
0
Views
5
Replies
0
Views
8
Replies
9
Views
50
fwh

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top