Kód: Vybrat vše
General Error
SQL ERROR [ mysqli ]
Too many connections [1040]Nasel jsem na to odpoved na anglickem foru. Muze to nekdo trochu prelozit. Umim anglicky, ale ne zas tak dobre a nechci to podrbat. Diky.
It worked for us and the same error never came back.
Please note I am writing this article in a hurry and haven't tested the below steps (we changed on our forums long time ago).
I do not take any responsibility for any data loss although with a proper back up you should be OK. I'll try to improve this post as time allows.
1) Make your forum read only
2) Do a FULL back up in ACP
3) make a copy of the backed up file in your /store/ folder in a safe place outside your phpbb code folder
4) gunzip/untar your file in the /store/ folder so it's ending with .sql only (if you used compression e.g. sql.gz in ACP backup you'll need to gunzip i.e. uncompress YOUR_FILE.sql.gz)
5) edit the uncompressed .sql file in a UTF-8 editor and find/replace 'MyISAM' to 'InnoDB' (to dbl check spelling find ENGINE= entry in CREATE TABLE SQL statements. Please note, too large files might cause problems when opening and I used vim)
6) drop all your phpbb tables (an article at http://davss.com/forum/viewtopic.php?f= ... 20b00669f2 )
7) change all capitals and run this command (your DB connection details should be in config.php file)
Kód: Vybrat vše
mysql -u DB_USERNAME -pDB_PASSWORD DB_NAME < YOUR_SQL_FILE.sql8) go to ACP Maintenance section and restore from the backup file again (this will preserve your special characters that usually get messed up when importing phpbb tables via command line)
Turn back on your forum. If anything goes wrong just move the .sql file and copy back the original file (3) and restore in ACP
Make sure you keep your phpbb_posts table as MyISAM otherwise you won't be able to recreate your indexes later on.
Some useful stuff to read:
http://dev.mysql.com/doc/refman/5.0/en/ ... nnodb.html
http://dev.mysql.com/doc/refman/5.0/en/ ... tions.html
Good luck,
David