Sie sind auf Seite 1von 2

1.-mysql -u root -p Enter password: ***** Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1 Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 2.create database bdkardex; Query OK, 1 row affected (0.00 sec) 3.-mysql> quit Bye 4. -u root -p Enter password: ***** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 5.-GRANT ALL ON bdkardex.* TO 'condorito2'@'localhost' IDENTIFIED BY '123'; Query OK, 0 rows affected (0.03 sec) 6.- quit; Bye 7..-mysql -u condorito2 -p Enter password: *** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 8. show databases -> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | bdkardex | | test | +--------------------+ 3 rows in set (0.00 sec) 9.-USE bdkardex; Database changed 10.show tables; Empty set (0.00 sec) 12.- quit Bye 13.mysql -u root -p bdkardex < C:\\BDkardexc.sql

Enter password: mysql 14.mysql -u condorito2 -p Enter password: *** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 15.mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | bdkardex | | test | +--------------------+ 3 rows in set (0.00 sec) 16.-mysql> USE bdkardex; Database changed 17.mysql> show tables; +---------------------+ | Tables_in_bdkardex | +---------------------+ | detalle_movimientos | | movimientos | | operadores | | permisos | | productos | +---------------------+ 5 rows in set (0.00 sec) mysql> Select * FROM operadores; +---------+----------------+-------+-------+----------+--------+------+ | codoper | nombre | login | clave | permisos | estado | tipo | +---------+----------------+-------+-------+----------+--------+------+ | 1 | Administrador | admin | admin | A | A | A | | 2 | Gonzalo Neira | neira | neira | CE | A | O | | 3 | Erika Enriquez | erika | erika | A | A | A | +---------+----------------+-------+-------+----------+--------+------+ 3 rows in set (0.00 sec) mysql>

Das könnte Ihnen auch gefallen