Vous êtes sur la page 1sur 3

Microsoft Windows [Versin 6.1.

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

C:\Users\Administrador>cd..

C:\Users>cd..

C:\>cd wamp

C:\wamp>cd bin

C:\wamp\bin>cd mysql

C:\wamp\bin\mysql>cd mysql5.6.17

C:\wamp\bin\mysql\mysql5.6.17>cd bin

C:\wamp\bin\mysql\mysql5.6.17\bin>mysql --host=localhost --user=root


--password
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.6.17 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, 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 db_fundamentos;


Query OK, 1 row affected (0.00 sec)

mysql> show databases


-> ;
+--------------------+
| Database

+--------------------+
| information_schema |
| db_fundamentos
| mysql

| performance_schema |
| test

+--------------------+
5 rows in set (0.00 sec)

mysql> use db_fundamentos;


Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> CREATE TABLE usuario(usua_id INT(11), usua_nombres VARCHAR(20),


usua_apel
lidos VARCHAR(20), usua_sexo ENUM("F,'M'), usua_fechanac DATE,);
"> ;
"> CREATE TABLE usuario(usua_id INT(11), usua_nombres VARCHAR(20),
usua_apel
lidos VARCHAR(20), usua_sexo ENUM('F','M'), usua_fechanac DATE,);
">
"> ;
"> e

Vous aimerez peut-être aussi