Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MYSQL Datenbank leeren

Empfohlene Antworten

Hi und hallo,

gibt es die möglichkeit in MYSQL eine Datenbank zu leeren?

Ich dachte da an etwas wie TRUNCATE, aber das funktioniert ja nur für Tabellen oder?

Vielen Dank

jo, truncate geht nur bei tabellen.

soweit ich weiß kann man ganze datenbanken nur löschen, mit drop.

ich geh mal davon aus, dass du alle tabellen der db leeren willst, nicht die ganze db leeren, denn dann könntest du ja einfach die db löschen und neu anlegen.

zum leeren könntest du dir nen php script basteln, dass mit mysql_list_tables

(http://www.php.net/manual/en/function.mysql-list-tables.php) alle tabellen durchgeht und die dann mit truncate leert.

grüße

dennis

Ok, ich danke Dir für Deine Antwort.

Es geht darum über die Linux Konsole ein Mysql-Backup automatisch einzuspielen, da hatte ich ein bisschen Angst davor alles zu löschen, aber dann mach ich vorher einfach nen Dump.

Vielen Dank!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.