Hello,
I'm trying to using PHP 7 on my CentOS system. The Problem is that it's refusing my MySQL user thorugh PDO. I don't know why. I tried the same code on my local system, also running PHP 7, and it's working fine. Also I tried to connect through Navicat and it works too.
And yes I installed php70w-mysql.
Does anyone have a solution for my problem?
German:
Ich habe PHP 7 auf meinem CentOS System laufen. Darauf versuche ich eine MySQL Verbindung mit PDO aufzubauen, der Login wird jedoch verweigert. Habe den selben Code mal auf meinem Rechner probiert, da läuft auch PHP 7, und alles funktioniert problemlos. Dazu habe ich versucht die Verbindung über Navicat aufzubauen und es funktioniert ebenfalls problemlos.
Und ja, php70w-mysql ist installiert.
Hat jemand einen Lösungsvorschlag für mein Problem?
Gruß
Mr.Tr33
/Edit:
Same problem mit PHP 56
I'm trying to using PHP 7 on my CentOS system. The Problem is that it's refusing my MySQL user thorugh PDO. I don't know why. I tried the same code on my local system, also running PHP 7, and it's working fine. Also I tried to connect through Navicat and it works too.
And yes I installed php70w-mysql.
Code:
atal error: Uncaught PDOException: SQLSTATE[28000] [1045] Access denied for user 'root'@'myCoolServer.epvp' (using password: YES) ...
German:
Ich habe PHP 7 auf meinem CentOS System laufen. Darauf versuche ich eine MySQL Verbindung mit PDO aufzubauen, der Login wird jedoch verweigert. Habe den selben Code mal auf meinem Rechner probiert, da läuft auch PHP 7, und alles funktioniert problemlos. Dazu habe ich versucht die Verbindung über Navicat aufzubauen und es funktioniert ebenfalls problemlos.
Und ja, php70w-mysql ist installiert.
Hat jemand einen Lösungsvorschlag für mein Problem?
Gruß
Mr.Tr33
/Edit:
Same problem mit PHP 56