mysqli::real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)

 This error occurred !!!!

solved !!!





    1. Go to C drive.

    2. Then open xampp folder.

    3. Inside xampp folder .. you get phpMyAdmin folder and open it.

    4.Inside phpMyAdmin folder ...you get config.inc PHP file.

    5.Open confic.inc php file in notepad.

    6.Then search for $cfg['Servers'][$i]['auth_type'] = 'config';

    7.Replace ------>  $cfg['Servers'][$i]['auth_type'] = 'HTTP';



    8.Then refresh your tab --> http://localhost/phpmyadmin/

    9.It will ask for username and password --> username = root

        and leave the password field empty and click on submit button.






Comments