ZenphotoCMS Forum
unable to connect to database - 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: unable to connect to database (/thread-13911.html)



unable to connect to database - markdalderup - 26-01-2024

I am not sure if this is a xampp issue or a zenphoto issue but I am unable to connect to the database with a fresh install of zenphoto 1.6.1 using xampp with php 8.1.25

I can connect to the database with phpmyadmin with no problem and no password but somehow the zenphoto script can't.

this is the info in the zenphoto.cfg.php file

$conf['mysql_user'] = "root";
$conf['mysql_pass'] = "";
$conf['mysql_host'] = "localhost";
$conf['mysql_database'] = "zenfoto";
$conf['mysqlprefix'] = "zfwy";
$conf['mysql_port'] = "3306";
$conf['mysql_socket'] = "";

which is correct so I have no idea why zenphoto wont connect and lets me proceed with the install. I use mysqli to connect .Tried the other one too but that wont work either. I get the error

mysqli reported: mysqli not connected

Hope you can help

thanks and greetings

Mark




unable to connect to database - acrylian - 27-01-2024

You need to enter a password. It cannot be that it works wihtout a password. On a XAMPP etc install that is likely also "root" a the user. Of course locally you can access de database via phpmyadmin without entering credentials, a local server is a bit different that a real one here.