![]() |
|
Can't connect to Database after Update - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Can't connect to Database after Update (/thread-13965.html) |
Can't connect to Database after Update - NHTEC - 31-07-2024 Hi, I recently updated my Zenphoto to version 1.6.4. Since the update the setup can't access the database anymore. Even if I install a new instance and running the setup I get the error ' Access denied for user 'test1'@'localhost' (using password: YES)'. I am using PHP 8.2.3 and MySQL 8.0.27. My older Zenphoto Version (1.5.x) was working fine. Thanks for your help Can't connect to Database after Update - acrylian - 01-08-2024 Please check that you really are using the right credentials for your database and that you filled in all fields available in the config file. On basically all webhosts i know "localhost" does not work as the database server name. Can't connect to Database after Update - NHTEC - 01-08-2024 The credentials are 100% correct - because they worked in the previous working. Also I tested the credentials through a second way..... Can't connect to Database after Update - acrylian - 01-08-2024 A few things changed since 1.5.x regarding credentials to comply with PHP 8+ ways so not all sadly may work as they did previously. Is that the full error message from the debug log? Can't connect to Database after Update - acrylian - 01-08-2024 Just to note to be sure the db fields are in 1.6.x these:
Can't connect to Database after Update - NHTEC - 01-08-2024 Thanks for the response. I filled out all the above fields, but it was not working. However, I change my database password and with the new password it was working. As I said the password was correct (and it tested it), but somehow Zenphoto was not able to use it. Anyway, I got it working. Can't connect to Database after Update - acrylian - 01-08-2024 We had a issue and fix in some 1.6.x version - don't remember offhand which - regarding some chars that were not working due to some PHP internals and needed escaping. Did the passwort contain any special chars like accents, umlauts or similar? Can't connect to Database after Update - NHTEC - 01-08-2024 This was the log file: Can't connect to Database after Update - acrylian - 01-08-2024 That doesn't answer my question if the password contained any special chars. Can't connect to Database after Update - NHTEC - 01-08-2024 Sorry, I forgot to answer. It contained #!$ |