You are on page 1of 3

C:\Users\Kevin\Desktop\tbd>mysql -p -u root;

Enter password: **********


ERROR 1045 (28000): Access denied for user 'root;'@'localhost' (using password:
YES)
C:\Users\Kevin\Desktop\tbd>mysql -p -u root
Enter password: **********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, 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> use mysql describe user;
Database changed
mysql> select host,user,password from user;
+-----------+------+-------------------------------------------+
| host
| user | password
|
+-----------+------+-------------------------------------------+
| localhost | root | *C71BD7E35968044A07A65419FA281F19E4B1B81B |
| 127.0.0.1 | root |
|
| ::1
| root |
|
| localhost |
|
|
+-----------+------+-------------------------------------------+
4 rows in set (0.00 sec)
mysql> mysql -p -u root -h 127.0.0.1
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check
corresponds to your MySQL server version for
the right syntax to use near 'mysql -p -u root -h 127.0.0.1' at
mysql> mysql -p -u root -h 127.0.0.1
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check
corresponds to your MySQL server version for
the right syntax to use near 'mysql -p -u root -h 127.0.0.1' at
mysql> mysql -p -u root -h 127.0.0.1Ctrl-C -- exit!
Bye

the manual that


line 1
the manual that
line 1

C:\Users\Kevin\Desktop\tbd>mysql -p -u root -h 127.0.0.1


Enter password: **********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.5.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, 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> Ctrl-C -- exit!

Bye
C:\Users\Kevin\Desktop\tbd>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.5.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, 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> show grands;
ERROR 1064 (42000): You have an error in
corresponds to your MySQL server version
the right syntax to use near 'grands' at
mysql> show grands
-> ;
ERROR 1064 (42000): You have an error in
corresponds to your MySQL server version
the right syntax to use near 'grands' at
mysql> select user();
+----------------+
| user()
|
+----------------+
| ODBC@localhost |
+----------------+
1 row in set (0.00 sec)

your SQL syntax; check the manual that


for
line 1
your SQL syntax; check the manual that
for
line 1

mysql> show grants;


+--------------------------------------+
| Grants for @localhost
|
+--------------------------------------+
| GRANT USAGE ON *.* TO ''@'localhost' | mysql> aqui NO tienes privilegios ok!!
!!
+--------------------------------------+
1 row in set (0.00 sec)
mysql> show databases;
+--------------------+
| Database
|
+--------------------+
| information_schema |
| test
|
+--------------------+
2 rows in set (0.01 sec)
mysql> /////////////////////////////////////////////
C:\Users\Kevin\Desktop\tbd>mysql -p -u root
Enter password: **********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.5.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, 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> show grants;
+--------------------------------------------------------------------------------------------------------------------------------------+
| Grants for root@localhost
|
+--------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*C71
BD7E35968044A07A65419FA281F19E4B1B81B' WITH G
RANT OPTION |
| GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION
|
+--------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
mysql> aqui tienes privilegios ok!!!!

You might also like