1 (edited by FCKeMo 2011-03-23 16:41)

Topic: I dropped the table :(

Can anybody mail me the CREATE TABLE IF NOT EXISTS 'punbb_users' ?

There went something wrong.. I have dropped the table  sad

Thanks in advance!

2 (edited by Grez 2011-03-23 17:04)

Re: I dropped the table :(

Well, that's quite a big problem big_smile You should ask your hosting provider whether he can give you your database backup (most of them do that for free or just a little money), because otherwise you will lose all your users' accounts. (True, you may change the IDs to the old ones after they register, but that might be kinda hard (depends on size of your forum)).

Anyway, this code should create the table with 2 users - Guest and FCKeMo (with admin rights) and pass 123456

[code=sql]
-- Adminer 3.2.0 MySQL dump

SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = 'SYSTEM';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

DROP TABLE IF EXISTS `punbb_users`;
CREATE TABLE `punbb_users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `group_id` int(10) unsigned NOT NULL DEFAULT '3',
  `username` varchar(200) NOT NULL DEFAULT '',
  `password` varchar(40) NOT NULL DEFAULT '',
  `salt` varchar(12) DEFAULT NULL,
  `email` varchar(80) NOT NULL DEFAULT '',
  `title` varchar(50) DEFAULT NULL,
  `realname` varchar(40) DEFAULT NULL,
  `url` varchar(100) DEFAULT NULL,
  `jabber` varchar(80) DEFAULT NULL,
  `icq` varchar(12) DEFAULT NULL,
  `msn` varchar(80) DEFAULT NULL,
  `aim` varchar(30) DEFAULT NULL,
  `yahoo` varchar(30) DEFAULT NULL,
  `location` varchar(30) DEFAULT NULL,
  `signature` text,
  `disp_topics` tinyint(3) unsigned DEFAULT NULL,
  `disp_posts` tinyint(3) unsigned DEFAULT NULL,
  `email_setting` tinyint(1) NOT NULL DEFAULT '1',
  `notify_with_post` tinyint(1) NOT NULL DEFAULT '0',
  `auto_notify` tinyint(1) NOT NULL DEFAULT '0',
  `show_smilies` tinyint(1) NOT NULL DEFAULT '1',
  `show_img` tinyint(1) NOT NULL DEFAULT '1',
  `show_img_sig` tinyint(1) NOT NULL DEFAULT '1',
  `show_avatars` tinyint(1) NOT NULL DEFAULT '1',
  `show_sig` tinyint(1) NOT NULL DEFAULT '1',
  `access_keys` tinyint(1) NOT NULL DEFAULT '0',
  `timezone` float NOT NULL DEFAULT '0',
  `dst` tinyint(1) NOT NULL DEFAULT '0',
  `time_format` int(10) unsigned NOT NULL DEFAULT '0',
  `date_format` int(10) unsigned NOT NULL DEFAULT '0',
  `language` varchar(25) NOT NULL DEFAULT 'English',
  `style` varchar(25) NOT NULL DEFAULT 'Oxygen',
  `num_posts` int(10) unsigned NOT NULL DEFAULT '0',
  `last_post` int(10) unsigned DEFAULT NULL,
  `last_search` int(10) unsigned DEFAULT NULL,
  `last_email_sent` int(10) unsigned DEFAULT NULL,
  `registered` int(10) unsigned NOT NULL DEFAULT '0',
  `registration_ip` varchar(39) NOT NULL DEFAULT '0.0.0.0',
  `last_visit` int(10) unsigned NOT NULL DEFAULT '0',
  `admin_note` varchar(30) DEFAULT NULL,
  `activate_string` varchar(80) DEFAULT NULL,
  `activate_key` varchar(8) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `punbb_users_registered_idx` (`registered`),
  KEY `punbb_users_username_idx` (`username`(8))
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `punbb_users` (`id`, `group_id`, `username`, `password`, `salt`, `email`, `title`, `realname`, `url`, `jabber`, `icq`, `msn`, `aim`, `yahoo`, `location`, `signature`, `disp_topics`, `disp_posts`, `email_setting`, `notify_with_post`, `auto_notify`, `show_smilies`, `show_img`, `show_img_sig`, `show_avatars`, `show_sig`, `access_keys`, `timezone`, `dst`, `time_format`, `date_format`, `language`, `style`, `num_posts`, `last_post`, `last_search`, `last_email_sent`, `registered`, `registration_ip`, `last_visit`, `admin_note`, `activate_string`, `activate_key`) VALUES
(1,    2,    'Guest',    'Guest',    NULL,    'Guest',    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    NULL,    1,    0,    0,    1,    1,    1,    1,    1,    0,    0,    0,    0,    0,    'English',    'Oxygen',    0,    NULL,    NULL,    NULL,    0,    '0.0.0.0',    0,    NULL,    NULL,    NULL),
(2,    1,    'FCKeMo',    '88e9ab8569f7ace656121665738f87ad888c3cea',    'qL5@N[0z]:|Z',    'grez.cz@gmail.com',    NULL,    NULL,    'http://asdf asdf',    'un %$#gasdf ',    NULL,    '#$@% asfd ',    'fak q32',    'sakdfh adsa',    NULL,    NULL,    NULL,    NULL,    1,    0,    0,    1,    1,    1,    1,    1,    0,    0,    0,    0,    0,    'English',    'Oxygen',    2,    1298762034,    NULL,    NULL,    1298663100,    '127.0.0.1',    1300899655,    NULL,    NULL,    NULL);

-- 2011-03-23 18:01:37[/code]

Eraversum - scifi browser-based online webgame