Forum

SQLSTATE[HY000] [10...
 
Notifications
Retirer tout

SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using passwor

9 Posts
2 Utilisateurs
0 Reactions
10.5 {numéro}K Vu
 Reza
(@rvasighi)
Posts: 12
Active Member
Début du sujet
 
[#5987]

I have an message like below, before i used projector and i solved this problem, but i forgot: i remember for this problem i must chane the attribution file from read only to read and write
but i forgot which file

please help me to solve this issue:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
dsn = mysql:host=127.0.0.1;port=3306


 
Posté : 16/05/2019 6:35 pm
(@babynus)
Posts: 14952
Membre Admin
 

This issue is in parameters.php (location defined in /tool/parametersLocation.php)

It seems DB password is incorrect.


 
Posté : 17/05/2019 3:26 pm
 Reza
(@rvasighi)
Posts: 12
Active Member
Début du sujet
 

Thanks for your quick answer, but my problem is exactly that i have not parameterlocation.php
i have not this file
i check in tool liberary and i didnot find it. last time when i contatct to projeqtor they told me this a problem about unzipping zip file and read only attribution file. i changed attribution to read-write and it works. but this time i have not parameterlocation .php
thanks


 
Posté : 17/05/2019 3:44 pm
(@babynus)
Posts: 14952
Membre Admin
 

If it is a first install, it is normal, this file is not deplyed.
It is created on configuration.
For first install, best is to give write rights to whole propjeqtor folder for php user (www-data on linux/debian like)

If it is migration, this happens if you dont' follow migration procedure : you must overwrite existing code with new one, so parametersLocation.php still exists.


 
Posté : 17/05/2019 4:01 pm
 Reza
(@rvasighi)
Posts: 12
Active Member
Début du sujet
 

this is a first installation after installing my new operation system.
I changed all projeqtor folder from read only to read-write but i saw always the same message about access denied. in first configuration interface i must change anything? about user and password?
Actualy User :root
Pas: mysql


 
Posté : 17/05/2019 4:08 pm
(@babynus)
Posts: 14952
Membre Admin
 

Try without a password (this is default configuration of MySql on windows)


 
Posté : 17/05/2019 4:11 pm
 Reza
(@rvasighi)
Posts: 12
Active Member
Début du sujet
 

ok . but i use mac


 
Posté : 17/05/2019 4:13 pm
(@babynus)
Posts: 14952
Membre Admin
 

whatever the os, try without password.
Otherwise, just use the password you defined on install for root user, or create dedicated user.


 
Posté : 17/05/2019 4:24 pm
 Reza
(@rvasighi)
Posts: 12
Active Member
Début du sujet
 

it works, without password, it's ridiculous!!
thanks for your help


 
Posté : 17/05/2019 4:28 pm
Share:
Retour en haut