Access denied for user 'root'@'localhost'

I need to run an application that requests privileges in phpmyadmin, but how to give these privileges?

Message:
Message: mysqli::real_connect(): Access denied for user ‘user’@‘localhost’ (using password: YES)

Hi,

Have you checked this ?

Hi,

Have you checked this ?

php - Codeigniter error when trying to connect to database using mysqli - Stack Overflow

Unfortunately it didn’t work out. Cyberpanel has this defect, there is no easy way to configure privileged mysql