Sei sulla pagina 1di 3

Setting environment for using XAMPP for Windows.

WS3@WS3 c:\xampp
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.21-MariaDB mariadb.org binary distribution

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases


-> djgiosdjfog;s
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'djg
iosdjfog' at line 2
->
-> sdgfsdfs
-> sdfsdf
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 's

sdgfsdfs
sdfsdf' at line 1
MariaDB [(none)]>
MariaDB [(none)]>
MariaDB [(none)]>
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| test |
+--------------------+
5 rows in set (0.01 sec)

MariaDB [(none)]> create database


->
->
->
->
->
-> asfasdf
-> asdfas;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'asd
fas' at line 8
MariaDB [(none)]> create database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near '' a
t line 1
MariaDB [(none)]> create database root;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| root |
| test |
+--------------------+
6 rows in set (0.00 sec)

MariaDB [(none)]> create db2019 -u root -p;


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'db2
019 -u root -p' at line 1
MariaDB [(none)]> create database db2019 -u root -p;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near '-u
root -p' at line 1
MariaDB [(none)]> create database db2019 -u root;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near '-u
root' at line 1
MariaDB [(none)]> create database db2019 root;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'roo
t' at line 1
MariaDB [(none)]> create database db2019;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> show databases;


+--------------------+
| Database |
+--------------------+
| db2019 |
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| root |
| test |
+--------------------+
7 rows in set (0.01 sec)

MariaDB [(none)]> use db2019


Database changed
MariaDB [db2019]> CREATE TABLE USER(
-> USERNAME VARCHAR(30) NOT NULL,
-> PASSWORD VARCHAR(30) NOT NULL
-> );
Query OK, 0 rows affected (0.92 sec)

MariaDB [db2019]> INSERT INTO USER(USERNAME, PASSWORD) VALUES (OPAW, OPAW1234)


-> ;
ERROR 1054 (42S22): Unknown column 'OPAW' in 'field list'
MariaDB [db2019]> INSERT INTO USER(USERNAME, PASSWORD) VALUES ("OPAW", "OPAW1234
");
Query OK, 1 row affected (0.28 sec)

MariaDB [db2019]> MODE 1000


-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'MOD
E 1000' at line 1
MariaDB [db2019]>

Potrebbero piacerti anche