Ergebnis 1 bis 2 von 2
  1. #1
    Alkmene
    Themenstarter

    Registriert
    07.2009
    Beiträge
    33

    per Terminal auf MySQL connecten

    Hallo,

    ich hab zurzeit bei Evanzo Webspace incl MySQL Datenbanken gemietet. Zur Verwaltung der Datenbanken bin ich bis jetzt immer über PHPMyAdmin gegangen, aber mich würde intressieren, ob es auch möglich ist sich per Terminal auf den MySQL Server zu verbinden und somit per Console die Datenbank zu verändern?

    Grüße

  2. #2
    Apfel der Erkenntnis Avatar von Irgendein Held
    Registriert
    06.2007
    Ort
    bei Bonn
    Beiträge
    731
    man mysql

    NAME
    mysql - the MySQL command-line tool

    SYNOPSIS
    mysql [options] db_name

    DESCRIPTION
    mysql is a simple SQL shell (with GNU readline capabilities). It supports interactive and non-interactive use. When used interactively, query results are presented in an ASCII-table format. When
    used non-interactively (for example, as a filter), the result is presented in tab-separated format. The output format can be changed using command options.

    If you have problems due to insufficient memory for large result sets, use the --quick option. This forces mysql to retrieve results from the server a row at a time rather than retrieving the
    entire result set and buffering it in memory before displaying it. This is done by returning the result set using the mysql_use_result() C API function in the client/server library rather than
    mysql_store_result().

    Using mysql is very easy. Invoke it from the prompt of your command interpreter as follows:

    shell> mysql db_name

    Or:

    shell> mysql --user=user_name --password=your_password db_name

    Then type an SQL statement, end it with “;”, \g, or \G and press Enter.
    [...]
    Viel Spass!
    52 2E 54 2E 46 2E 4D 21 0A 44 65 6E 6E 1F 73 69 65 1F 77 69 73 73 65 6E 1F 6E 69 63 68 74 2C 1F 77 61 73 1F 73 69 65 1F 74 75 6E 21

    Make it idiot-proof, and they'll make a better idiot.

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •