vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Undoing Queries (https://vborg.vbsupport.ru/showthread.php?t=93269)

dieselpowered 07-31-2005 06:06 AM

Undoing Queries
 
Hi there everyone...Alright I am going to be doing some changed on my site and would like to remove some hacks. Some of the hacks have altered the tables in the db (see below for example)

Quote:

ALTER TABLE user ADD INDEX (lastactivity)
How do I go about reversing what was changed?

Thanks everyone for the help!

Marco van Herwaarden 07-31-2005 10:12 AM

in this case it would be:
[sql]ALTER TABLE user DROP INDEX (lastactivity);[/sql]
But the reverse will vary with each statement.

dieselpowered 07-31-2005 11:41 PM

Thank you very much...so 'ADD' would be 'DROP' what are some of the others?

Quote:

Originally Posted by MarcoH64
in this case it would be:
[sql]ALTER TABLE user DROP INDEX (lastactivity);[/sql]
But the reverse will vary with each statement.

Alright I am confused...I get an SQL error when I try to run that.

Marco van Herwaarden 08-01-2005 03:42 AM

What is the error you get?

dieselpowered 08-01-2005 03:50 AM

I am getting a syntax error....I cannot duplicate it right now, but it basically says I have something wrong with my SQL syntax??

Marco van Herwaarden 08-01-2005 04:00 AM

Well it is difficult to help without the full error.

dieselpowered 08-01-2005 04:01 AM

I understand...I am sure I will get it as soon as I attempt another one...I will report back. Hey, with that said, do you know the answer to this:

Currently I am running VB 3.0.3 and my server is running 4.1.13 for SQL.

Previously I had a server that was running SQL 4.1.9 it it jacked up my attachments and avatars.

My question is, have they fixed the collation bug in 4.1.13? Can I backup that database without issues or do I have to run those queries first?

Thanks!

Marco van Herwaarden 08-01-2005 04:05 AM

Define 'Those queries', are you talking about the changes posted at vb.com?

And to answer: yes on 3.5 and 3.0.8 the workaround for the MySQL bug is done.

dieselpowered 08-01-2005 04:35 AM

I understand what you are saying. What I wanted to do is make a backup of my curent forums which are 3.0.3 do I need to run those queries from vb.com or will I be ok since I am using sql 4.1.13?

Marco van Herwaarden 08-01-2005 06:16 AM

Since you are running MySQL 4.1, you should run them before making a backup if your board is not on 3.0.8 or 3.5.

PS This assuming that we talk about the same queries from vb.com.


All times are GMT. The time now is 02:42 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.00961 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete