staging.inyokaproject.org

sql-statements auf einem WEBMIN-Frontend eines Servers

Status: Ungelöst | Ubuntu-Version: Ubuntu MATE 19.04 (Disco Dingo)
Antworten |

pregmatch

Avatar von pregmatch

Anmeldungsdatum:
30. Januar 2011

Beiträge: 484

hallo und guten Abend,

Auf einem Webadmin - Frontend will ich die folgenden sql-Statements absetzen - aber keiner der Befehle funktioniert.

1
2
3
USE jo ;
SHOW GLOBAL VARIABLES LIKE 'PORT';

gibt zurück

1
2

Failed to execute SQL : SQL USE jo ; SHOW GLOBAL VARIABLES LIKE 'PORT'; failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SHOW GLOBAL VARIABLES LIKE 'PORT'' at line 1

während :

1
2
USE jo ;
SHOW GRANTS FOR CURRENT_USER;

folgendes zurückgibt:

1
Failed to execute SQL : SQL USE jo ; SHOW GLOBAL VARIABLES LIKE 'PORT'; failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SHOW GLOBAL VARIABLES LIKE 'PORT'' at line 1

Anmerkung: jo - das ist der Name der DB

hier das manual zu diesem sql-commando:

https://beginner-sql-tutorial.com/sql-use-database.htm SQL USE Statement The USE Statement is used to select a database and perform SQL operations into that database. The database remains default until end of session or execution of another USE statement with some other database.

SQL USE DATABASE Statement: The Syntax for the USE Statement is:

USE database_name; database_name - is the name of the database to be selected

USE DATABASE Example:If you want to use database MyDatabase, the statement would be like USE MyDatabase ;

btw es laufen die versionen auf dem Server - MySQL version 5.5.33 - PHP 5.6.39

misterunknown Team-Icon

Ehemalige
Avatar von misterunknown

Anmeldungsdatum:
28. Oktober 2009

Beiträge: 4403

pregmatch schrieb:

1
2
USE jo ;
SHOW GLOBAL VARIABLES LIKE 'PORT';
1
2
USE jo ;
SHOW GRANTS FOR CURRENT_USER;

Weder für das eine noch für das andere Statement musst du mit USE in die Datenbank wechseln.

1
Failed to execute SQL : SQL USE jo ; SHOW GLOBAL VARIABLES LIKE 'PORT'; failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SHOW GLOBAL VARIABLES LIKE 'PORT'' at line 1

während [letzteres] folgendes zurückgibt:

1
Failed to execute SQL : SQL USE jo ; SHOW GLOBAL VARIABLES LIKE 'PORT'; failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SHOW GLOBAL VARIABLES LIKE 'PORT'' at line 1

Copy&Paste-Fehler, das ist zweimal der gleiche Befehl.

Antworten |