I try to connect to the database through root, the database user, an error occurs in all cases:
mysql_connect(): Access denied for user 'apache'@'localhost' (using password: NO) Through phpmyadmin everything is OK, what could be the problem?
I try to connect to the database through root, the database user, an error occurs in all cases:
mysql_connect(): Access denied for user 'apache'@'localhost' (using password: NO) Through phpmyadmin everything is OK, what could be the problem?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
Source: https://ru.stackoverflow.com/questions/445665/
All Articles
apache@localhost, and you, judging by the contents of the question, need to change this name toroot@localhost. although I would not recommend to connect as root : it is better to create an unprivileged user who should be given the necessary rights to the database being used. - aleksandr barakin