vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   This will work right? (https://vborg.vbsupport.ru/showthread.php?t=312333)

dutchbb 06-22-2014 09:39 AM

This will work right?
 
UPDATE thread
SET title = REPLACE(title, '++++','****')

UPDATE post
SET pagetext = REPLACE(pagetext, '++++','****')

Obviously I want to replace the f-word shown as ++++ here, in the database with asterisks, just wanted to have the query checked to be sure.

Additional question: can I do this without overloading the page for manual queries in ACP? It's an 8 million post database on an owned server with only this one forum running.

Dave 06-22-2014 10:16 AM

That should work yes, but you should always make a backup before doing a risky UPDATE statement.

It's hard to say if the server gets overloaded, it kind of depends on the server specifications and the configuration of the MySQL server.

dutchbb 06-22-2014 10:19 AM

Ok tried it, titles work, posts takes too long (504 error). I've got the backup. Thanks Dave

Dave 06-22-2014 10:22 AM

Quote:

Originally Posted by dutchbb (Post 2503039)
Ok tried it, titles work, posts takes too long (504 error). I've got the backup. Thanks Dave

In case you're on a VPS or dedicated server, login into mysqladmin on the server and execute i t there. That way you will not face a timeout.

dutchbb 06-22-2014 11:52 AM

Yes works, tnx again

webmastersun 06-22-2014 02:39 PM

you can make your forum broken by changing like that :)


All times are GMT. The time now is 07:15 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.02781 seconds
  • Memory Usage 1,711KB
  • 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
  • (6)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