You are on page 1of 5

Microsoft Windows [Versión 6.1.

7601]

Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\primeroMayo>mysql -h 127.0.0.1 -u root -p

Enter password:

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

Your MySQL connection id is 2

Server version: 5.7.26 MySQL Community Server (GPL)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

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

mysql> quit

Bye

C:\Users\primeroMayo>mysql -h 127.0.0.1 -u root -p

Enter password:

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

Your MySQL connection id is 3

Server version: 5.7.26 MySQL Community Server (GPL)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

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

mysql> create database miyantzaza

->

-> ;

Query OK, 1 row affected (0.03 sec)

mysql> creates database miyantyayab

-> ;

ERROR 1064 (42000): 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 'creat

es database miyantyayab' at line 1

mysql> create database miyantzaza;

ERROR 1007 (HY000): Can't create database 'miyantzaza'; database exists

mysql> show databases;

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

| Database |

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

| information_schema |

| miyantzaza |

| mysql |

| pagina2021 |

| performance_schema |

| ppersonal |

| rb |

| sys |

| tercero2022 |

| yt |

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

10 rows in set (0.14 sec)


mysql> use miyantzab;

ERROR 1049 (42000): Unknown database 'miyantzab'

mysql> use miyantzaza;

Database changed

mysql> create table alumno(cedula varchar(11),nombres varchar(50),fecha_nac date

,est_civilvarchar(50), cargas_familiares int(5));

ERROR 1064 (42000): 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 '(50),

cargas_familiares int(5))' at line 1

mysql> create table alumno(cedula varchar(11),nombres varchar(50),fecha_nac date

,est_civil varchar(50),cargas_familiares int(5));

Query OK, 0 rows affected (0.06 sec)

mysql> show tables;

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

| Tables_in_miyantzaza |

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

| alumno |

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

1 row in set (0.01 sec)

mysql> describe alumno;

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

| Field | Type | Null | Key | Default | Extra |

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

| cedula | varchar(11) | YES | | NULL | |

| nombres | varchar(50) | YES | | NULL | |

| fecha_nac | date | YES | | NULL | |

| est_civil | varchar(50) | YES | | NULL | |

| cargas_familiares | int(5) | YES | | NULL | |


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

5 rows in set (0.06 sec)

mysql> insert into alumno values("1950056000","Karla Mena",´2005-08-22´,

-> ;

ERROR 1064 (42000): 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 '´2005

-08-22´,' at line 1

mysql> insert into alumno values("1950056000".Karla Mena",´2005-08-22´,"soltera"

,0);

"> "

-> ;

ERROR 1064 (42000): 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 '.Karl

a Mena",´2005-08-22´,"soltera",0);

"' at line 1

mysql> ;insert into alimno valuer("195005600"."Karla Mena",´2005-08-22´,"soltera

",0);

ERROR:

No query specified

ERROR 1064 (42000): 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 'value

r("195005600"."Karla Mena",´2005-08-22´,"soltera",0)' at line 1

mysql> insert into alumno values("195005600","Karla Mena",´2005-08-22´,"soltera"

,0);

ERROR 1064 (42000): 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 '´2005

-08-22´,"soltera",0)' at line 1

mysql> in

->
->

->

-> ;

ERROR 1064 (42000): 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 'in' a

t line 1

mysql> insert into alumno values("1950056000","karla mena",'2005-08-22',"soltera

",0);

Query OK, 1 row affected (0.03 sec)

mysql> select * from alumno;

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

| cedula | nombres | fecha_nac | est_civil | cargas_familiares |

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

| 1950056000 | karla mena | 2005-08-22 | soltera | 0|

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

1 row in set (0.00 sec)

mysql>

You might also like