在 mysql 数据库中搜索所有出现的字符串 [英] Search for all occurrences of a string in a mysql database

查看:40
本文介绍了在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆