搜索mysql数据库中所有出现的字符串 [英] Search for all occurrences of a string in a mysql database
本文介绍了搜索mysql数据库中所有出现的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图弄清楚如何在数据库中查找所有出现的url.我想搜索所有表和所有字段.但是我不知道从哪里开始,或者甚至有可能.
I'm trying to figure out how to locate all occurrences of a url in a database. I want to search all tables and all fields. But I have no idea where to start or if it's even possible.
推荐答案
一个简单的解决方案就是这样做:
A simple solution would be doing something like this:
mysqldump -u myuser --no-create-info --extended-insert=FALSE databasename | grep -i "<search string>"
这篇关于搜索mysql数据库中所有出现的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文