Current time: 03-19-2010, 03:52 PM Hello There, Guest! (LoginRegister)


Post Reply 
Deleted table in MySQL
07-03-2009, 06:39 PM
Post: #1
Exclamation Deleted table in MySQL
I was trying to sort out some stuff on my forum using phpmyadmin, but I accidentally dropped the table called "mybb_banned". Now my forum doesn't work when you log in. I have thought about re-installing but my whole site is implemented into MyBB. For example, my CMS uses the MyBB login system, so now I can't edit my site. Can anyone send me the default settings for the "mybb_banned" table?

Here is the error message:
[Image: mybberror.png]

Thanks in advance for you help!
Find all posts by this user
Quote this message in a reply
07-03-2009, 06:44 PM
Post: #2
RE: Deleted table in MySQL
Just reinstall the file you deleted
Find all posts by this user
Quote this message in a reply
07-03-2009, 06:46 PM
Post: #3
RE: Deleted table in MySQL
I don''t have access to a db now to see the table structure, but if you have a backup file, check the table in question there and recreate it.

[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Find all posts by this user
Quote this message in a reply
07-03-2009, 06:58 PM
Post: #4
RE: Deleted table in MySQL
From install/resources/mysql_db_tables.php:

Code:
$tables[] = "CREATE TABLE mybb_banned (
  uid int unsigned NOT NULL default '0',
  gid int unsigned NOT NULL default '0',
  oldgroup int unsigned NOT NULL default '0',
  oldadditionalgroups text NOT NULL,
  olddisplaygroup int NOT NULL default '0',
  admin int unsigned NOT NULL default '0',
  dateline bigint(30) NOT NULL default '0',
  bantime varchar(50) NOT NULL default '',
  lifted bigint(30) NOT NULL default '0',
  reason varchar(255) NOT NULL default '',
  KEY uid (uid),
  KEY dateline (dateline)
) TYPE=MyISAM;";
Find all posts by this user
Quote this message in a reply
07-03-2009, 08:00 PM
Post: #5
RE: Deleted table in MySQL
Thanks for all your help, but is still not working.
Find all posts by this user
Quote this message in a reply
07-03-2009, 08:06 PM
Post: #6
RE: Deleted table in MySQL
Did you run that query to recreate the table at the SQL box in the phpmyadmin of your forum?

[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Find all posts by this user
Quote this message in a reply
07-03-2009, 08:07 PM
Post: #7
RE: Deleted table in MySQL
Do you still get the same error?
Find all posts by this user
Quote this message in a reply
07-03-2009, 08:22 PM
Post: #8
RE: Deleted table in MySQL
(07-03-2009 08:06 PM)babjusi Wrote:  Did you run that query to recreate the table at the SQL box in the phpmyadmin of your forum?

What query?
Find all posts by this user
Quote this message in a reply
07-03-2009, 08:46 PM (This post was last modified: 07-03-2009 08:54 PM by Imagine.)
Post: #9
RE: Deleted table in MySQL
Open phpmyadmin and select the database you're using for your forum. From there, click the SQL tab. In the textbox, enter this:

Code:
CREATE TABLE mybb_banned (
  uid int unsigned NOT NULL default '0',
  gid int unsigned NOT NULL default '0',
  oldgroup int unsigned NOT NULL default '0',
  oldadditionalgroups text NOT NULL,
  olddisplaygroup int NOT NULL default '0',
  admin int unsigned NOT NULL default '0',
  dateline bigint(30) NOT NULL default '0',
  bantime varchar(50) NOT NULL default '',
  lifted bigint(30) NOT NULL default '0',
  reason varchar(255) NOT NULL default '',
  KEY uid (uid),
  KEY dateline (dateline)
) TYPE=MyISAM;

Click go to finish the process.
Find all posts by this user
Quote this message in a reply
07-03-2009, 09:12 PM
Post: #10
RE: Deleted table in MySQL
That assumes you use mybb_ as the prefix. Make sure you do.

Join MyBB Central for exclusive plugins. Downloads require a paid membership.
Do you need free Mybb Support?
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: