Quantcast
Channel: MySQL
Viewing all articles
Browse latest Browse all 14

Quickly update all content in mySQL database replacing a string

$
0
0
What?
This is an article on how to replace a string with another in all your joomla articles without modifying other data such as modified date and author.

Why?
I used to have a third-party plugin that would replace my HTML tags <PRE> with <PRE CLASS="brush:php">. Not I want to switch these back.

How?
For demo purposes, I'm searching a column called introtext in a database table called MYTABLE_content. First let me find all the articles that need this change:

Viewing all articles
Browse latest Browse all 14

Trending Articles