![]() |
|
MySQL Error on Install - 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: MySQL Error on Install (/thread-2359.html) |
MySQL Error on Install - youthpoint - 2008-03-07 I have been installing ZenPhoto for the first time - looks great However after the db gets created and it sends me to the reset admin password page I get a MySQL error that stops everything: Zenphoto Error I am not sure what the db structure is supposed to be and if the install stopped short of a full db dump or not I have the following tables: and the zp_albums contains: id Any help would be appreciated... thanks PS -- I have tried: MySQL Error on Install - sbillard - 2008-03-07 There are many fields missing from your albums table. I would suggest you download the release again, clean out the zenphoto files and upload the new ones, drop the tables from the database, and run setup again. MySQL Error on Install - youthpoint - 2008-03-07 OK - I have done all that and seem to be getting the same error! I also get an error on the page that creates the db
here is lines 46-54 of setup.php
Is there a SQL dump file I can use rather than the setup? MySQL Error on Install - sbillard - 2008-03-07 What is happening is that the update part of setup is not happening. This may be because of some user rights on the database not allowing table updates. If you wish to not have the above error, you can download the nightly build. That version of setup.php has the following code:
}` But I do not think this has any effect on your problem. This code is just testing to see if it is doing an upgrade or a new install. With the error it thinks it is doing a new install. MySQL Error on Install - oliv76 - 2008-03-23 Hello, I have another question off topic : is there any translation in french of zenphoto? Oliv MySQL Error on Install - sbillard - 2008-03-24 Work is in progress to make zenphoto translatable. It is not there yet. I believe there have been volunteers for French. If not and you are interested, let us know. MySQL Error on Install - oliv76 - 2008-03-24 ok thanks, For the pevious problem, I grant all admin rights to the zenphoto user for the zenphoto db and it's work. Inset, select, update, delete rights are not sufficient, even if previously had create zenphoto db MySQL Error on Install - sbillard - 2008-03-24 The zenphoto admin user rights are different from the MySQL database rights. Which are we talking about here? MySQL Error on Install - oliv76 - 2008-03-26 Before install this code to create zenphoto user who will run the install process gives the previous error: instead this code work : @+Oliv MySQL Error on Install - oliv76 - 2008-03-26 sorry I forget the "update" in the first insert of the previous post, but no mention of the create (maybe that the cause) @+Oliv MySQL Error on Install - sbillard - 2008-03-27 Zenphoto does need create rights. MySQL Error on Install - Guest - 2008-05-23 I hit the exact same error described in the post that started this thread. What misled me is that before first running setup I added the mysql user and password specified in the zp-config.php file to mysql and created an empty mysql database using the name from zp-config.php, but forgot to grant mysql privileges to that database to that user. Setup then gave me the error: "MySQL access rights [unknown] "Your MySQL user must have Create, Drop, Select, Insert, Update, and Delete rights. "The SHOW GRANTS query failed." Being a big believer in least privilege, I then granted the zenphoto mysql user the specified privileges to the zenphoto database: Create, Drop, Select, Insert, Update, and Delete. Rerunning setup after this is when I got the same error message that started this thread. As it turns out, the zenphoto mysql user also needs Alter privileges to the zenphoto database. Perhaps the confusion is that what sbillard calls the "update" part of setup when he writes "What is happening is that the update part of setup is not happening" actually uses mysql "alter table" statements, which requires the mysql user to have Alter privileges which are separate from Update privileges: mysql Update privileges only all a user to change the actual data stored in a table, not to alter the definition of the table or its columns. I'd suggest adding "Alter" to the list of privileges specified as required in line 455 of setup.php (zenphoto-1.1.6):
MySQL Error on Install - sbillard - 2008-05-23 Consider it done. |