Re: [Release] Database Management Plugin
ok i've fixed it and mailed the new version to rickard
$index[$kname] = array();
should be
if (!isset($index[$kname]))
$index[$kname] = array();
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → [Release] Database Management Plugin
ok i've fixed it and mailed the new version to rickard
$index[$kname] = array();
should be
if (!isset($index[$kname]))
$index[$kname] = array();
Verry nice Plugin Connorhd
Working fine for me on free.fr host.
Just a question:
can you added a protected : (Enclose table and field names with backquotes) ?
or is not required ?
Thank again for this good plug.
sorry i don't understand what you mean
sorry i don't understand what you mean
Protected backup
DROP TABLE IF EXISTS `forum_groups`;
CREATE TABLE `forum_groups` (
`g_id` int(10) unsigned NOT NULL auto_increment,
`g_title` varchar(50) NOT NULL default '',
`g_user_title` varchar(50) default NULL,
INSERT INTO `forum_groups` (`g_id`, `g_title`, `g_user_title`, `g_read_board`, `g_post_replies`, `g_post_topics`, `g_post_polls`, `g_edit_posts`, `g_delete_posts`, `g_delete_topics`, `g_set_title`, `g_search`, `g_search_users`, `g_edit_subjects_interval`, `g_post_flood`, `g_search_flood`) VALUES .....
`forum_groups` `g_id`, `g_title`, ext....
Your db backup
DROP TABLE IF EXISTS forum_groups;
CREATE TABLE forum_groups(
g_id int(10) unsigned NOT NULL auto_increment,
g_title varchar(50) NOT NULL,
g_user_title varchar(50),
INSERT INTO forum_groups (g_id, g_title, g_user_title, g_read_board, g_post_replies, g_post_topics, g_post_polls, g_edit_posts, g_delete_posts, g_delete_topics, g_set_title, g_search, g_search_users, g_edit_subjects_interval, g_post_flood, g_search_flood) VALUES.....
that thing prevent the restore table error.
?no
oh, well i dunno but no one has reported any problems so...
ok
if no return error
is cool
bye
lol sorry is again me just a small bug when i restore the db backup
the size of administrator is completly elarge lol
What is this ? :S
have u idea to fix this ?
lol i have fixed the problem for me with just replace the div when return the resulte of backup
i add the div with this -> <div class="postmsg">
?>
<div class="block">
<h2><span>Debug info</span></h2>
<div class="box">
<div class="inbox">
<div class="postmsg">
<p>
<?php
}
$sql_count = count($pieces);
for($i = 0; $i < $sql_count; $i++)
{
$sql = trim($pieces[$i]);
if(!empty($sql))
{
if(defined('PUN_DEBUG'))
{
echo "Executing: $sql\n<br>";
flush();
}
$result = $db->query($sql);
if(!$result)
{
message('Error imported backup file, the database probably has not been restored');
}
}
}
if(defined('PUN_DEBUG'))
{
?>
</p>
</div>
</div>
</div>
</div>
<?php
is ok now bye bye
I just downloaded the plugin, I tried different types of backup, and I got an error message: Zero Sized Reply, anyone had the same problem with the plugin, and solved it somehow?
Does this plugin also recount posts and recheck last post name and date within topics? I am in the process of moving my old self-built forum to PunBB and it would be great to have an automatic reindexer (other than the search reindexer found under Maintenance).
No
I think you would want this
Cool - thanks! Connorhd might want to change the description in the first post of that plugin, because it does a lot more than what it says there!
one problem with this mod: visitors cant login with their old forum passwords! Plz help, thank you
Err, what does that have to do with this plugin?
one problem with this mod: visitors cant login with their old forum passwords! Plz help! I really don't know what 2 do!!!
Read my post and answer
First of all superb plugin Connorhd. It is a useful tool indeed.
I was able to create dumpfiles using the plugin without any problems.
However, I get the following error when attmepting to restore to a new database using the plugin:
DB Management Error wrote:
No file was uploaed or the upload failed, the database was not restored
I was able to restore using phpmyadmin. But eventually I may need to move to a site where I will not have phpmyadmin access to the database.
Any help would be appreciated.
Version info follows:
PunBB version PunBB 1.2.11
Environment Operating system: Linux
PHP: 5.1.2 - Show info
Accelerator: N/A Database MySQL 5.0.18
were you trying to upload a file larger than what's allowed to upload?
(in the phpinfo page, check the variables I've mention in the docs for the attachment mod, chapter 1.6, so the uploaded file isn't too large)
I don't think so. We don't allow attachment uploads to the database (yet) so there are none of those in there. The DB should be pretty small as it's a new site with no more than 500 text only posts.
- Putty
That's not what I'm talking about, I'm talking about the variables in the PHP settings I've mentioned in the documentation. There's 3 variables that will affect how large files you can send to PHP, and you need to send a file to PHP when reading the dump ...
There's three things that will affect how large files you may allow, everything are PHP settings (the php.ini file).
The most important PHP setting is called "upload_max_filesize" and is default "2M". This value can either be per directory or per system. While you're in the php.ini file, make sure "file_uploads" is "1".
To further complicate things, there's two more things in the php.ini file that needs consideration (and that may not be per folder, so it's global). The settings "post_max_size" must be greater than "upload_max_filesize", and "memory_limit" should be larger than "post_max_size". So it's not just to up one value to handle large files.
check those three settings that I've made bold.
Hello,
My forum www.brokeneden.com/forums/ got hacked by Snakeq3i.
The error it gives is: Unable to fetch user information.I have a backup which i made with the backup plugin i downloaded form the mainpage (called backup not DB manangement).
Becouse it was on the official site i thought this plugin would be good.My problem now is i cant restore it.
When i use the backup in the other plugin (DB manangement) its loading so i waited toll it saud done.
After checking nothing changed, structure hasnt changed and i still dont have posts.
I also tried restoring the backup i had with phpMyadmin but that also wouldnt work...What did i do wrong?
And even more how can i fix my forum?
Thanks,Tim Lolkema
Why the double post?
dont werking foor me I dedent see anething
Hi Connor,
Your code works great, thanks.
Except it prunes all newlines ! Annoying. Do you have any idea ?
Exemple:
xxxx
yyyy
becomes
xxxx
yyyy
Er, 'Loading of the plugin 'AP_DB_management.php' failed.'
Try reuploading?
Really nice plugin. I like it because I missed the functions of it in PunBB
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → [Release] Database Management Plugin
Powered by PunBB, supported by Informer Technologies, Inc.