Member
Member
JimBrown   2013-12-30, 19:44
#1

If:

You can't get MySQLi to work.

And:

The database credentials you are using were created on an older version of MySQL (not sure how old, but most likely prior to MySQL 5.)

Then:

Your database password may need to be updated to use the newer authentication scheme.

There are instructions on how to do that out there. Here is one example: http://code.openark.org/blog/mysql/upgrading-passwords-from-old_passwords-to-new-passwords

Or, if you're lazy like me, just create a new user and password and assign it to the database. Don't forget to apply the appropriate permissions to the new user. Then use that new user and password for ZenPhoto.

...jim

Member
Member
sbillard   2013-12-30, 20:39
#2

Thanks for this information. It is not something we were aware of.

Member
Member
JimBrown   2013-12-31, 03:29
#3

You're welcome.

Took me six hours to figure it out. All ZenPhoto setup (on my web host) was saying was that it could not connect to the DB when MySQLi was selected. This bugged me because it worked fine on my WAMP. Could not find any errors logged anywhere on my host. Finally wrote a small test script to just connect to the DB via MySQLi. That's when I got the error message from MySQL concerning the password. The error message was quite explanatory.

Perhaps ZenPhoto setup could capture the error being returned from the connection attempt and display it?

Regards,
...jim

Member
Member
sbillard   2014-01-01, 02:17
#4

Normally setup would report the error. But I suspect that since there was once a successful install maybe the path it takes omits that part of the reporting. We will take a look.

Member
Member
JimBrown   2014-01-01, 21:31
#5

Yes, this occurred during an upgrade/reinstall. Prior to the upgrade/reinstall, the site had been working using MySQL, not MySQLi.

Regards,
...jim

Member
Member
sbillard   2014-01-02, 00:38
#6

Just curious. What was the error message? Of course, obscure any personal information if you post it here. I did find the path, so from now on the message should get displayed.

Member
Member
JimBrown   2014-01-02, 15:43
#7

The error message shown in the setup page under "Database credentials in configuration file" was:

MySQLi reported: MySQLi not connected

Setup.log showed the same.

Regards,
...jim

Member
Member
JimBrown   2014-01-02, 15:51
#8

Tried out the updated db function php files. Setup is now reporting the actual error message returned by MySQL, onscreen and in setup.log.

Thanks,
...jim

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