vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   problem with my database (https://vborg.vbsupport.ru/showthread.php?t=196624)

lkn 11-18-2008 04:59 PM

problem with my database
 
i have an accident my database was droped one field is IPaddress and now i can't add new users in admincp or member can't finish register at my site.

and here errors message :

Quote:


Database error in vBulletin 3.6.8:

Invalid SQL:
INSERT INTO NNNLSSuser
(salt, passworddate, password, options, adminoptions, usertitle, customtitle, username, email, languageid, homepage, birthday_search, birthday, showbirthday, icq, aim, yahoo, msn, skype, parentemail, referrerid, ipaddress, posts, usergroupid, reputationlevelid, reputation, warnings, infractions, ipoints, pmpopup, autosubscribe, threadedmode, showvbcode, styleid, timezoneoffset, daysprune, joindate, lastactivity, lastpost, membergroupids, displaygroupid, lastvisit, maxposts, startofweek)
VALUES
('6<e', FROM_UNIXTIME(1227034702), '3bb496477b033b4261cf2aff3f4f8e48', 7254, 0, '', 0, 'jen', 'jen@msn.com', 0, '', '', '', 0, '', '', '', '', '', '', 0, '', 0, 2, 5, 10, 0, 0, 0, 1, -1, 0, 2, 0, '0', -1, 1227034620, 1227034620, 0, '', '', 1227034702, -1, -1);

MySQL Error : Unknown column 'ipaddress' in 'field list'
Error Number : 1054
Date : Wednesday, November 19th 2008 @ 01:58:23 AM
Script : http://xxxx/user.php?do=update
Referrer : http://xxxxx/admincp/user.php?do=add
IP Address : xxx.xxx.x.xxx
Username : xxxx
Classname : vb_database


Lynne 11-18-2008 05:23 PM

ipaddress
type - varchar(15)
collation - latin1_swedish_ci
null - Yes

That's the struction for that field in my 3.6.8 database. Just add it back in using phpMyAdmin.

lkn 11-18-2008 11:12 PM

i try with your command and error :

SQL query:

TYPE - varchar( 15 ) COLLATION - latin1_swedish_ci NULL - Yes

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type - varchar(15)
collation - latin1_swedish_ci
null - Yes' at line 1

SEOvB 11-18-2008 11:14 PM

Thats because its not a SQL command to add it back.

Login to phpMyAdmin (or other admin tool) and do it manually by adding the row or table which ever it was.

lkn 11-18-2008 11:47 PM

Many thanks!

it's ok now


All times are GMT. The time now is 08:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete