Search text in fields in every table of a MySQL database

前端 未结 24 1608
梦谈多话
梦谈多话 2020-11-22 06:23

I want to search in all fields from all tables of a MySQL database a given string, possibly using syntax as:

SELECT * FROM * WHERE * LIKE \'%stuff%\'
         


        
24条回答
  •  -上瘾入骨i
    2020-11-22 06:51

    MySQL Workbench

    Here are some instructions.

    Download and install MSQL Workbench.

    https://www.mysql.com/products/workbench/

    When installing, it might require you to install Visual Studio C++ Redistributable. You can get it here:

    https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

    x64: vc_redist.x64.exe (for 64 bit Windows)

    When you open MySQL Workbench, you will have to enter your host name, user and password.

    There is a Schemas tab on the side menu bar, click on the Schemas tab, then double click on a database to select the database you want to search.

    Then go to menu Database - Search Data, and enter the text you are searching for, click on Start Search.

    HeidiSql

    Download and install HeidiSql https://www.heidisql.com/download.php

    Enter your hostname, user and password.

    Hit Ctrl+Shift+F to search text.

提交回复
热议问题