在整个数据库中搜索MySQL中的字符串的方法 [英] way to search entire database for a string in MySQL

查看:158
本文介绍了在整个数据库中搜索MySQL中的字符串的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个巨大的MySQL数据库(大约120个表).我正在尝试使它具有某种意义,如果我可以在所有120个表+列中搜索所需的字符串,这将有很大帮助.

I am working on a MySQL database that is huge (about 120 tables). I am trying to make some sense of it and it will help a great deal if I can search all 120 tables + columns for a string I am looking for.

在MySQL DB上可以做到吗?

Is that possible to do on a MySQL DB?

推荐答案

有一种解决方案,可能不是您想要的.如果将表与数据一起转储到文件(mysqldump)中,则可以从中提取所需的任何信息.

There is one solution, which might not be what you want. If you dumped the table into a file(mysqldump) with the data, then you would be able to grep any information you wanted out of it.

这将消除对费时的搜索查询的需求,这是我能想到的最有效的方法.

It would remove the need for time consuming search queries, and is the most efficient way I can think of.

希望这会有所帮助!

这篇关于在整个数据库中搜索MySQL中的字符串的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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