XAMPP, SQL BASIC COMMANDS

 Microsoft Windows [Version 10.0.19042.867]

(c) 2020 Microsoft Corporation. All rights reserved.


C:\Users\darul Haram>../..

'..' is not recognized as an internal or external command,

operable program or batch file.


C:\Users\darul Haram>cd../..


C:\>xampp

'xampp' is not recognized as an internal or external command,

operable program or batch file.


C:\>cd xampp


C:\xampp>cd mysql


C:\xampp\mysql>cd bin


C:\xampp\mysql\bin>../

'..' is not recognized as an internal or external command,

operable program or batch file.


C:\xampp\mysql\bin>cd .//


C:\xampp\mysql\bin>cd ../


C:\xampp\mysql> -u root -p -h localhost

'-u' is not recognized as an internal or external command,

operable program or batch file.


C:\xampp\mysql>cd bin


C:\xampp\mysql\bin>cd mysql

The system cannot find the path specified.


C:\xampp\mysql\bin>mysql -u root -p -h localhost

Enter password:

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 8

Server version: 10.4.18-MariaDB mariadb.org binary distribution


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


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


MariaDB [(none)]> show database

    -> Bye

Ctrl-C -- exit!


C:\xampp\mysql\bin>mysql -u root -p -h localhost

Enter password:

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 9

Server version: 10.4.18-MariaDB mariadb.org binary distribution


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


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


MariaDB [(none)]> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| phpmyadmin         |

| test               |

+--------------------+

5 rows in set (0.015 sec)


MariaDB [(none)]>  create database Ar-rahman

    -> create database Ar-rahman;

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 '-rahman

create database Ar-rahman' at line 1

MariaDB [(none)]> create database Ar-rahman;

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 '-rahman' at line 1

MariaDB [(none)]> crate database Arrahman;

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 'crate database Arrahman' at line 1

MariaDB [(none)]> create database Arrahman;

Query OK, 1 row affected (0.008 sec)


MariaDB [(none)]> show databases;

+--------------------+

| Database           |

+--------------------+

| arrahman           |

| information_schema |

| mysql              |

| performance_schema |

| phpmyadmin         |

| test               |

+--------------------+

6 rows in set (0.002 sec)


MariaDB [(none)]> drop database Arrahman;

Query OK, 0 rows affected (0.006 sec)


MariaDB [(none)]> show databases;

+--------------------+

| Database           |

+--------------------+

| almerciful         |

| information_schema |

| mysql              |

| performance_schema |

| phpmyadmin         |

| test               |

+--------------------+

6 rows in set (0.001 sec)


MariaDB [(none)]> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| phpmyadmin         |

| test               |

+--------------------+

5 rows in set (0.002 sec)


MariaDB [(none)]> create database Arrahman;

Query OK, 1 row affected (0.002 sec)


MariaDB [(none)]> use Arrahman;

Database changed

MariaDB [Arrahman]>

MariaDB [Arrahman]> select database();

+------------+

| database() |

+------------+

| arrahman   |

+------------+

1 row in set (0.001 sec)


MariaDB [Arrahman]>

Comments

Popular posts from this blog

The Minion Game Hackerrank Solution

Arrays - DS | HackerRank Solutions