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.

TXT-Daten in MYSQL

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

habe ein txt File nit Daten aus einer Datenbank, gut datenbank kann man das ja nicht unbedingt nennen..habe diese Daten aus Works. habe den datensatz von Works in eine txt-File gespeichert. Nun möchte ich diese Daten in meine sql-Datenbank (mySQL) reinspielen bzw übertragen. Ist das möglich?? Was muss ich beachten. Verwende php.

Liebe Grüsse Azubi-Tigerente

Hi,

wenn die Daten in eine Tabelle sollen und einigermaßen strukturiert, etwa als csv Datei vorliegen, kannst du sie mit phpMyAdmin importieren.

Klicke auf die Tabelle und dann unten auf den link."Insert data from a textfile into table" dort musst du dann die Datei und ein paar Einstellungen angeben und kannst loslegen.

Wenn die Daten komplizierter sind hilft nur selber nen Parser proggen und über gebastelte insert Statements die Daten einzufügen.

Gruß Jaraz

danbke für antwort.

aber wo kann ich hinklicken

kann alles nür über dosebene mit befehlen machen!! also nicht mausklick

Hm,

es gibt ein in php geschriebenes Admin Tool das phpMyAdmin heißt. http://www.phpmyadmin.net/home_page/

Du hast doch gesagt du verwendest php, also wird ja auch irgendwo ein Webserver laufen. Installiere dort phpMyAdmin und connecte dich zur Datenbank. Macht vieles leichter.

Gruß Jaraz

hallo jaraz,

der webserver läuft bei mir local. es handelt sich um einen apache.

entpacke ich das zip-file auf verzeichnis und öffne das dann dort??

bin auf diesem gebiet beginner. :)

Hi,

wie jedes Standardtool besitzt auch dieses eine Installationsanleitung bzw eine Dokumentation.

In diesem Fall gibts die sogar zumindest teilweise in deutsch.

http://www.phpmyadmin.net/home_page/docs.php

Gruß Jaraz

danke für die supper schnelle hilfe.

das hilft mir sehr weiter....ich werde das ganze mal studieren und dann wenn es probleme geben sollte werde ich mich einfach wieder an dich wenden!!

kann man phpmyadmin auch mit einem passwort schützen??

habe gerade in die config.inc.php mein password eingetragen sonst könnte ich nicht per phpadmin zugreifen.

aber wenn ich das mal auf einen server spielen würde könnte ja jeder an den tabellen rumspielen verändern und löschen.

wie kann ich das schützen??

Original geschrieben von azubi-tigerente

aber wenn ich das mal auf einen server spielen würde könnte ja jeder an den tabellen rumspielen verändern und löschen.

wie kann ich das schützen??

Username und Passwort wieder rausnehmen und $cfg['Servers'][$i]['auth_type'] auf http oder cookie setzten

$cfg['Servers'][$i]['auth_type'] string ['http'|'cookie'|'config']

Whether config or cookie or http authentication should be used for this server.

* 'config' authentication ($auth_type = 'config') is the plain old way: username and password are stored in config.inc.php.

* 'cookie' authentication mode ($auth_type = 'cookie') as introduced in 2.2.3 allows you to log in as any valid MySQL user with the help of cookies. Log name and password are stored in cookies during the session and password is deleted when it ends. This can also allow you to login in arbitrary server if $cfg['AllowArbitraryServer'] enabled.

* 'http' authentication (was called 'advanced' in older versions) ($auth_type = 'http') as introduced in 1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.

Please see the install section on "Using authentication modes" for more information.

$cfg['Servers'][$i]['user'] string

$cfg['Servers'][$i]['password'] string

The user/password-pair which phpMyAdmin will use to connect to this MySQL-server. This user/password pair is not needed when HTTP or cookie authentication is used, and should be empty.

http://www.phpmyadmin.net/documentation/

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.