PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > MySQL
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-23-04, 12:40 PM   #1
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
Deleting tables from database

An expert in the MovableType support forum suggested that I need to remove some entries from my database file in order to resolve a problem I'm having with a MovableType plug-in.

(The MT-Blacklist installation gives me an error: "Table 'mt_ext_bl_group' already exists at mt-bl-load.cgi line 233")

Here's what he wrote:

-----
delete all the MT-Blacklist related files from your database; that is remove the tables that start with mt_ext_bl_xxxxx (usually there are seven of them) and then remove all rows in the mt_plugindata table in your database that mention MT-Blacklist. Once those are gone you can then try installing MT-Blacklist from scratch as a fresh installation (and run mt-bl-load.cgi).
-----

How do I do that? Help!

-=-Joe
joeholmes is offline  
Old 12-23-04, 01:03 PM   #2
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
Okay, let me add that I've gotten as far as logging into my phpmyadmin where I can actually see the tables that the MT guy referred to. I'm hesitating because I don't know if the "drop" command is the same as delete the table.... Any documentation? Or help here? Thanks.
joeholmes is offline  
Old 12-23-04, 01:11 PM   #3
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
And let me add that I read the documentation and see that "drop" a table does equal "delete" a table.

So far so good. This is turning into more of a diary than a question...

-=-Joe
joeholmes is offline  
Old 12-23-04, 01:13 PM   #4
tbonekkt
 
Join Date: Dec 2002
Location: TX
Posts: 12,381
Reputation: 248
You're correct. Dropping a table does delete it.
tbonekkt is offline  
Old 12-23-04, 01:27 PM   #5
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
Damn, now a new hassle. I successfully deleted the tables, had mt-blacklist working for a minute, and then...got this error: "Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/thaw.al) line 363, at /www/s/t/streetnine.com/htdocs/movabletype/lib/MT/PluginData.pm line 28".

Arrgghh! Anybody have a clue???

-=-Joe
joeholmes is offline  
Old 12-23-04, 03:01 PM   #6
joshuamc
 
joshuamc's Avatar
 
Join Date: Oct 2003
Location: Boston, MA
Posts: 2,511
Reputation: 135
The good news: Your database problem is resolved...

The bad news...there is none! The resolution is here:
http://textdrive.com/support/?_a=kno...ndetails&_i=18
joshuamc is offline  
Old 12-23-04, 03:01 PM   #7
joshuamc
 
joshuamc's Avatar
 
Join Date: Oct 2003
Location: Boston, MA
Posts: 2,511
Reputation: 135
I'll go ahead and paste it here for all to see:


Perl 5.8.4 has a default byte order that is different from previous versions.

You need to add the following after line 9 of lib/MT/PluginData.pm

PHP Code:
begin {

$Storable::interwork_56_64bit 1;


joshuamc is offline  
Old 12-23-04, 03:20 PM   #8
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
Thanks for that pointer! I did paste in that extra code, but that produces a new error when I try to run the cgi:

An error occurred: syntax error at /www/s/t/streetnine.com/htdocs/movabletype/lib/MT/PluginData.pm line 17, near "use MT::Object" Compilation failed in require at /www/s/t/streetnine.com/htdocs/movabletype/lib/MT/Plugin.pm line 58. BEGIN failed--compilation aborted at /www/s/t/streetnine.com/htdocs/movabletype/lib/MT/Plugin.pm line 58. Compilation failed in require at lib/Blacklist/Plugin.pm line 14. BEGIN failed--compilation aborted at lib/Blacklist/Plugin.pm line 14. Compilation failed in require at lib/Blacklist/App.pm line 18. BEGIN failed--compilation aborted at lib/Blacklist/App.pm line 18. Compilation failed in require at lib/Blacklist/App/CMS.pm line 17. BEGIN failed--compilation aborted at lib/Blacklist/App/CMS.pm line 17. Compilation failed in require at mt-blacklist.cgi line 39.

Looks to me like I may have pasted at the WRONG line 9 -- no, seriously, I counted nine lines from the top of the doc, but that may not be the official "line 9" of the code. Here's where I pasted:

-----
# Copyright 2001-2004 Six Apart. This code cannot be redistributed without
# permission from www.movabletype.org.
#
# $Id: PluginData.pm,v 1.4 2004/04/29 02:42:57 ezra Exp $

package MT::PluginData;
use strict;

use Storable qw( freeze thaw );

begin {

$Storable::interwork_56_64bit = 1;

}

use MT::Object;
@MT::PluginData::ISA = qw( MT::Object );
__PACKAGE__->install_properties ({
columns => [
'id', 'plugin', 'key', 'data',
],
indexes => {
plugin => 1,
key => 1,
},
datasource => 'plugindata',
primary_key => 'id',
});

sub data {
my $data = shift;
$data->column('data', freeze(shift)) if @_;
thaw($data->column('data'));
}

1;
__END__
-----

Any suggestions?? Thanks again for all the help.

-=-Joe
joeholmes is offline  
Old 12-23-04, 03:35 PM   #9
joeholmes
 
Join Date: Aug 2004
Location: brooklyn, ny
Posts: 39
Reputation: 5
To make sure the subject line matches the latest error, I've started a new thread titled "Byte order is not compatible at blib/lib/Storable" since that's what we're now dealing with, not table deletion.
joeholmes is offline  
Old 7-8-05, 09:42 PM   #10
JimMiles
Registered
 
Join Date: Jun 2003
Location: Armona, CA USA
Posts: 13
Reputation: 5
back to the original question,

I dropped the tables, but they keep re-appearing!
Help!
JimMiles is offline  
Old 7-9-05, 02:51 AM   #11
Croc Hunter
Mod.. with bite..
 
Croc Hunter's Avatar
 
Join Date: Sep 2002
Location: Australia
Posts: 6,630
Reputation: 383
Quote:
Originally Posted by JimMiles
back to the original question,

I dropped the tables, but they keep re-appearing!
Help!
If they are re-appering then I'd say you have not dropped them.

To drop tables:
Login to https://phpmyadmin.powweb.com
Click on the name of your database on left. Wait until all tables are displayed.
On the right, Checkmark each box for table/s you want dropped (To drop all tables scroll to bottom and click "Check all").
Next to "Check All /Uncheck All / Check overheaded" from the drop down box select Drop.
__________________
Croc Hunter MSC :
Croc Hunter is offline  
Old 7-15-05, 11:38 AM   #12
JimMiles
Registered
 
Join Date: Jun 2003
Location: Armona, CA USA
Posts: 13
Reputation: 5
thanks, i fixed it before you could reply. i don't know exactly what i did, but i had to go through about 5-6 steps to finally do it. Intuitive, this is not! Oh well, I guess user-friendliness is a relative term, eh?
JimMiles is offline  
Old 7-15-05, 01:34 PM   #13
fluKe
Resident Ninja
 
fluKe's Avatar
 
Join Date: May 2005
Location: Scotland
Posts: 425
Reputation: 49
If I were you I would give up on Movable Type and switch to something better... like WordPress
fluKe is offline  
Old 7-15-05, 02:00 PM   #14
rbradscott
 
rbradscott's Avatar
 
Join Date: May 2005
Location: USA
Posts: 79
Reputation: 12
Wow, joshuamc, that's some honest-to-goodness, detailed, directed assistance, that you clearly put a little work into! Thanks for helping, I've been working a bit with mySQL tables via phpMyAdmin and find these kinds of details quite valuable. And I like your sense of humor, FWIW.

I love... L.A.!
rbradscott is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:39 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.