Cov txheej txheem:

Kuv yuav tso tag nrho cov ntxhuav hauv MySQL schema li cas?
Kuv yuav tso tag nrho cov ntxhuav hauv MySQL schema li cas?

Video: Kuv yuav tso tag nrho cov ntxhuav hauv MySQL schema li cas?

Video: Kuv yuav tso tag nrho cov ntxhuav hauv MySQL schema li cas?
Video: koj tuav kuv tes txog txij no xwb - hu cover nuj xeem - original : kab lia vwj 2024, Hlis ntuj nqeg
Anonim

Yuav ua li cas poob tag nrho cov ntxhuav hauv MySQL?

  1. SET FOREIGN_KEY_CHECKS = 0;
  2. SELECT table_name NTAWM information_schema. rooj WHEREtable_schema = db_name;
  3. DROP TABLE YOG TIAS TAB SIS 1; DROP TABLE YOG EXISTSTable2; DROP TABLE YOG TIAS TAB SIS 3;
  4. SET FOREIGN_KEY_CHECKS = 1;
  5. echo "SET FOREIGN_KEY_CHECKS = 0;" >./temp.sql.

Ib yam li ntawd, tib neeg nug, Kuv yuav tshem tawm MySQL database li cas?

Cov kauj ruam

  1. Qhib MySQL Command Line.
  2. Nkag mus rau tus ID nkag mus hais kom ua.
  3. Sau koj tus password thaum raug ceeb toom.
  4. Saib cov npe ntawm koj cov databases.
  5. Nrhiav lub npe ntawm cov ntaub ntawv koj xav rho tawm.
  6. Rho tawm cov database.
  7. Tshawb xyuas koj cov npe tshiab ntawm cov databases.

Tsis tas li ntawd, kuv yuav rho tawm lub rooj hauv MySQL workbench li cas? Ua kom tiav rho tawm tus rooj thiab daim duab, es tsis txhob sim: Right-click> Rho tawm ' rooj '. Incase yog right-click thiab rho tawm tsis ua hauj lwm, Tsuas dragand poob tus rooj los ntawm Catalog Tsob Ntoo mus rau cheeb tsam Tsim. Ces koj yuav pom cov rooj tau ntxig rau ntawd.

Ib yam li ntawd, koj yuav rho tawm lub rooj ntawm database li cas?

Txhawm rau rho tawm ib lub rooj los ntawm database

  1. Hauv Object Explorer, xaiv lub rooj koj xav rho tawm.
  2. Right-click lub rooj thiab xaiv Delete los ntawm shortcutmenu.
  3. Ib lub thawv ntawv qhia koj kom paub meej tias kev tshem tawm. Nyem Yog.

Dab tsi yog truncate hauv MySQL?

Cov TRUNCATE TABLE nqe lus yog siv los tshem tawm tag nrho cov ntaub ntawv los ntawm lub rooj hauv MySQL . Nws ua haujlwm zoo ib yam li DELETE nqe lus tsis muaj WHERE clause.

Pom zoo: