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:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.