I sit already 2h browsing internet and i am not able to find a solution. Could you please help me.
Bitnami WAMP, Symfony
1) I am not able to login to MYSQL through console
using command: mysql -u root -p
using command: mysql -h localhost -u root -p
using command: mysql -h localhost -u root -p -P 3006
using command: mysql -h 127.0.0.1 -u root -p
using command: mysql -h 127.0.0.1 -u root -p -P 3006
i am getting the same error in all cases: ERROR 1045 (28000) Access denied for user 'root'@'localho st' (using password: NO)
2) I am not able to login to PhpMyAdmin, using user "root" and empty field for password.
3) I am not able to generate entity from console in Symfony application. I am getting error:[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localho st' (password: NO)
config.inc.php
in folder
C:\Bitnami\wamp stack-5.4.36-0\apps\phpmyadm in\htdocs\confi g.inc.php
contains the following lines:
I also tried 127.0.0.1 instead of localhost.
parameters.yml
in folder
C:\Bitnami\wamp stack-5.4.36-0\sym_prog\mypr oject\app\confi g
contains the following lines:
i also tried "localhost" instead of 127.0.0.1.
How to make user 'root'@'localho st' to be accepted?
Bitnami WAMP, Symfony
1) I am not able to login to MYSQL through console
using command: mysql -u root -p
using command: mysql -h localhost -u root -p
using command: mysql -h localhost -u root -p -P 3006
using command: mysql -h 127.0.0.1 -u root -p
using command: mysql -h 127.0.0.1 -u root -p -P 3006
i am getting the same error in all cases: ERROR 1045 (28000) Access denied for user 'root'@'localho st' (using password: NO)
2) I am not able to login to PhpMyAdmin, using user "root" and empty field for password.
3) I am not able to generate entity from console in Symfony application. I am getting error:[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localho st' (password: NO)
config.inc.php
in folder
C:\Bitnami\wamp stack-5.4.36-0\apps\phpmyadm in\htdocs\confi g.inc.php
contains the following lines:
Code:
$cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['port'] = '3306';
parameters.yml
in folder
C:\Bitnami\wamp stack-5.4.36-0\sym_prog\mypr oject\app\confi g
contains the following lines:
Code:
parameters: database_driver: pdo_mysql database_host: 127.0.0.1 database_port: null database_name: symfony database_user: root database_password: null mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null locale: en secret: 50cbd9b37723fsdfgd9202880589f27baa6df5b3dd
How to make user 'root'@'localho st' to be accepted?
Comment