Member
Member
markdalderup   26-01-2024, 22:18
#1

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

Administrator
Administrator
acrylian   27-01-2024, 10:14
#2

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.