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

MAZICJA

New member
Registered
Joined
Mar 1, 2018
Messages
3
Points
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
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
Sounds like you do not have proper login credentials to your database
 

hostens

Well-known member
Hosting Provider
Registered
Joined
Jan 18, 2017
Messages
215
Points
28
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".
 

HostechSupport

Active member
Registered
Joined
Jan 19, 2013
Messages
68
Points
8
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
117
Replies
0
Views
65
Replies
0
Views
57
Replies
1
Views
87
Recommended Threads
Replies
12
Views
4,226
Replies
4
Views
2,461
Replies
1
Views
2,331

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

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