vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL DB Error (https://vborg.vbsupport.ru/showthread.php?t=61600)

X-Sector 02-15-2004 07:09 PM

MySQL DB Error
 
My forum being hacked, I have a MySQL Database back up and l did restored it via cpanel..

Everything got backed up but when l view my forum.. i got this error :

There seems to have been a slight problem with the Xelation Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

assassingod 02-15-2004 07:13 PM

View the source of that page to see the error. It's very unlikely it is being hacked.

X-Sector 02-15-2004 07:17 PM

It said :

mysql error: Table 'x-sector_vbforums.session' doesn't exist

mysql error number: 1146

Date: Sunday 15th of February 2004 09:19:01 PM
Script: http://www.x-sector.net/forums/
Referer:
IP Address: **.***.***
-->

assassingod 02-15-2004 07:20 PM

Have you done anything recently that may have caused this? It seems your session table has bee deleted.

AN-net 02-15-2004 07:21 PM

i would assume your missing your session table>_>see if its there and has the the prefix "x-sector_vbforums" in front of it

X-Sector 02-15-2004 07:22 PM

hm..

I didn't not deleted it, I just backed it up.. thats al..

assassingod 02-15-2004 07:23 PM

Do you use a table prefix?

X-Sector 02-15-2004 07:26 PM

what do you mean by that?

assassingod 02-15-2004 07:29 PM

There's an option in config.php to use a table prefix, so basically tables in the database such as user and session will have a prefix on them. If you do use one, maybe that might be causing the error.

What else did you do?

X-Sector 02-15-2004 07:32 PM

I looked at my phpmyadmin.. there is no session/user tables in the database..

Awhile ago.. before my forum hacked, I just backed up my forum.. and now.. when my forum got hacked and l tried to restored it.. it has an error.

Hmm.. how do l fix the errors using by table prefix ?

assassingod 02-15-2004 07:39 PM

Quote:

Originally Posted by X-Sector
I looked at my phpmyadmin.. there is no session/user tables in the database..

Awhile ago.. before my forum hacked, I just backed up my forum.. and now.. when my forum got hacked and l tried to restored it.. it has an error.

Hmm.. how do l fix the errors using by table prefix ?

Table prefixes wont help out, I was just wondering since that could cause the problem. Reupload your backup

X-Sector 02-15-2004 07:41 PM

I did reuploaded the back up a lots of times, still got the same error..

AN-net 02-15-2004 07:43 PM

hmmm.... if you have an sql file of your vb db you could manually insert the tables back in with an sql query.

X-Sector 02-15-2004 07:45 PM

Do you mean.. copy the session/user tables and run them in the phpmyadmin ?

AN-net 02-15-2004 07:50 PM

well if you had a .sql file of your db it would contain all the tables and their seperate datas in sql queries, so bascially all you do is copy and paste the sql query for your user and session tables and run them in phpmyadmin's query window;)

X-Sector 02-15-2004 07:53 PM

Thanks for the help..

How did it happened? why did there is no session/user tables ... in the database? just wondering.

AN-net 02-15-2004 08:01 PM

hmm not sure, probably since it was a backup done by cpanel while it was reuploading it skipped over it or it was never backed up in the first place or an error occured when reinserting those tables and it just continued on reuploading , not inserting those 2 tables. i would also go over to vbulletin.com and find the full list of tables your susposed to have(wana make sure your not missing any others)

X-Sector 02-15-2004 08:16 PM

Is there any other way to back up the MySQL database execpt via cpanel?

AN-net 02-15-2004 08:47 PM

yes, via admincp in vbulletin. import & maintenance->backup database
;)

X-Sector 02-15-2004 08:52 PM

Cool, thanks!

X-Sector 02-15-2004 09:55 PM

Oh.. I did what AN-Net said, but i cant restore the database via cpanel cuz the database is too big..

how do l restore the database without the cpanel. thnx

Andreas 02-15-2004 10:00 PM

Do you have shell access?

If so: Upload the file, mysql -uusername -ppassword database < sqlfile.sql

X-Sector 02-15-2004 10:10 PM

Whats shell access? and how to use it?

Andreas 02-15-2004 10:18 PM

You don't have shell access - if you had it you would know for sure.
Sorry, seems you're out of luck.
You could only ask your webhost to give you shell access

X-Sector 02-15-2004 10:47 PM

I dunno, where do you use it? or is it like what a telnet did?

Andreas 02-15-2004 10:53 PM

You can access a shell through telnet, although it is very insecure.
I'd rather use SSH2 if possible.

X-Sector 02-15-2004 11:02 PM

how do you use it? and how do you get it connect to your server.


All times are GMT. The time now is 05:40 AM.

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.01231 seconds
  • Memory Usage 1,758KB
  • 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
  • (27)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