Member
Member
Jos   2008-02-29, 19:52
#1

hiya,
i'm getting an error msg during my installation proces (ie running setup.php)


mySQL access rights [insufficient]

Your mySQL user must have Select, Insert, Update, and Delete rights.

Grants found:

GRANT USAGE ON . TO 'kaahoo_foto'@'localhost' IDENTIFIED BY PASSWORD '37A63CC314140A4B7FA09711CEA529914FA6838C'

GRANT SELECT, INSERT, UPDATE, DELETE ON kaahoo_zenphoto.* TO 'kaahoo_foto'@'localhost'


i think i did everything right:
i created the database, added the user and given him the rights using cpanel
i also tried giving the user all priveliges, but that didn't work either.

Can someone help me out please?

Administrator
Member
Member
sbillard   2008-02-29, 20:12
#3

What is the name of the database you are using with zenphoto?

(The message is a warning, so you can try ignoring it.)

Member
Member
Jos   2008-03-01, 02:03
#4

ah indeed,
just ignored it and works fine now.
thank you both.

Member
Member
reef   2009-09-25, 15:42
#5

I'm getting the same error with a new install (1.2.6) on the server. However if I ignore it I get an error message while the tables are updated.

The first message is:
Your MySQL user must have Alter, Create, Delete, Drop, Index, Insert, Select and Update rights.

Grants found:

GRANT USAGE ON . TO 'username'@'localhost' IDENTIFIED BY PASSWORD '7c97b920244f50e5'

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX ON username.* TO 'username'@'localhost'

When clicking Go I get the following:

About to update tables...
Zenphoto Error
MySQL Query ( SELECT name, id FROM zp_administrators WHERE user = 'administrators' AND valid=0 ) failed. Error: Unknown column 'valid' in 'where clause'

At this point the installation halts.

I contacted the hosting company to ask about the mysql user rights and they said I should have all the grants mentioned.

Any ideas how to solve this problem?

Thanks!

Bob

Member
Member
sbillard   2009-09-26, 00:12
#6

Please set the DEBUG_ERROR definition to true in functions-basic.php. This will give us some more information on the error.

Member
Member
reef   2009-09-28, 07:32
#7

Sorry for my late reply. I have now set DEBUG_ERROR to true and this is the additional information I get for the MySQL error:

Backtrace:
in query (functions-db.php [103])
in query_single_row (lib-auth.php [105])
in saveAdmin (setup-option-defaults.php [285])
in require (setup.php [1717])

Hope this helps.

regards,

Bob

Member
Member
sbillard   2009-09-28, 15:13
#8

Setup should have created that column befor this point. I suspect that there is some kind of permissions issue with your database. Setup needs to be able to update tables. There may be further information in the setup log found in the zp-data folder.

Member
Member
reef   2009-09-29, 06:50
#9

I just ran the setup again and there is no additional information in the log. However I also dropped all the tables in the database to start fresh. Now I get an additional error message after I press 'go'.

Table creation failure: ALTER command denied to user 'jiri8200'@'localhost' for table 'zp_images'

(And the message on the setup page (see above) seems to say that I have no ALTER permission)

So should I now contact the hosting company?

regards,

Bob

Administrator
Administrator
acrylian   2009-09-29, 08:54
#10

Yes, please do so to be sure it is not a server configuration issue.

Member
Member
sbillard   2009-09-29, 16:35
#11

It is definately a MySQL permissions issue. The user that Zenphoto uses to acces the database must be able to make changes to it.

Member
Member
reef   2009-09-29, 20:49
#12

Just checking before I mail them (I'd like to have a strong case :-): I used phpMyAdmin to check the following:

SHOW GRANTS FOR 'username'@ 'localhost';

And this gives me the following result:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX ON username.* TO 'username'@'localhost'

This means the Alter rights are missing, right?

Thanks for the help!

regards,

Bob

Member
Member
sbillard   2009-09-29, 21:07
#13

Yes, alter is missing. The rights Zenphoto needs are:

'SELECT','CREATE','DROP','INSERT','UPDATE','ALTER','DELETE', and 'INDEX'

Member
Member
reef   2009-10-01, 13:48
#14

Thanks for all the help!

The problem is now fixed. Some of the user rights were indeed incorrect.

kind regards,

Bob

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