How to fix a particular issue I had (read-only mysql table) How to fix a particular issue I had (read-only mysql table)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to fix a particular issue I had (read-only mysql table)

Started by exoxe, February 10, 2004, 02:53:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

exoxe

Now this may not fix your issue, but it did for me. :-)

If you ever have a problem with your album's database, and you get errors such as table is read only or "You don't have permission to access this page" try the following command if you have access to the mysql admin files:

mysqladmin flush-tables

My problem was that when I did a repair, it compacted the database, but needed that command to run in order to reset everything. Good luck!

exoxe

[regarding *nix platforms]

It also helps to have the correct permissions...

"chmod correct-user databasedir/*"

example:

cd /var/db/mysql/exampledb/
chmod mysql *
mysqladmin flush-tables

Hope that helps.