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 Abfrage ...

Empfohlene Antworten

Hi weiß jemand ein Skript oder irgendeine Methode wie ich testen kann ob eine eingerichtete SQL Datenbank funktioniert? Stelle mir das so vor:

Ich gebe baseuser password und den Host ein und er checkt ob eine Verbindung zustande kommt.

Danke für jede Hilfe!

MfG

All :bimei

Hi,

mit dem mysql Client kannst du direkt von der shell eine Abfrage absetzen:

mysql -u dein_user -pdein_passwort -D deine_datenbank -e "select * from deine_tabelle"

Gruß Jaraz

ja, aber ich habe momentan keinen Shell Zugriff auf dem Webserver! Ich habe nur einen FTP Client. Was nun :) Die Datenbank hat jemand eingerichtet, aber ich kann nicht so wirklich drauf zugreifen! Sorry bin Noob mit MySQL und Linux :)

Achso,

wenn dein Webspace php unterstützt, kannst du dieses Beispiel anpassen uploaden und aufrufen!

<?php
/* Connecting, selecting database */
$link = mysql_connect("mysql_host", "mysql_user", "mysql_password")
or die("Could not connect : " . mysql_error());
echo "Connected successfully";
mysql_select_db("my_database") or die("Could not select database");

/* Performing SQL query */
$query = "SELECT * FROM my_table";
$result = mysql_query($query) or die("Query failed : " . mysql_error());

/* Printing results in HTML */
echo "<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";

/* Free resultset */
mysql_free_result($result);

/* Closing connection */
mysql_close($link);
?> [/PHP]

Gruß Jaraz

ja danke, ganau das habe ich gesucht!

MfG

ALL :bimei

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.