Advertisement
Guest User

oki

a guest
Apr 21st, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. dislexia@dislexia:~$ cat /etc/hosts
  2. 127.0.0.1 localhost
  3. 127.0.1.1 dislexia mojserver
  4.  
  5. # The following lines are desirable for IPv6 capable hosts
  6. ::1 ip6-localhost ip6-loopback
  7. fe00::0 ip6-localnet
  8. ff00::0 ip6-mcastprefix
  9. ff02::1 ip6-allnodes
  10. ff02::2 ip6-allrouters
  11. dislexia@dislexia:~$ sudo -s
  12. Password:
  13. root@dislexia:~# mysql -p
  14. Enter password:
  15. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  16. root@dislexia:~# mysql -p
  17. Enter password:
  18. Welcome to the MySQL monitor. Commands end with ; or \g.
  19. Your MySQL connection id is 175
  20. Server version: 5.5.29-0ubuntu0.12.04.2 (Ubuntu)
  21.  
  22. Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  23.  
  24. Oracle is a registered trademark of Oracle Corporation and/or its
  25. affiliates. Other names may be trademarks of their respective
  26. owners.
  27.  
  28. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  29.  
  30. mysql> select user () ;
  31. +----------------+
  32. | user () |
  33. +----------------+
  34. | root@localhost |
  35. +----------------+
  36. 1 row in set (0.00 sec)
  37.  
  38. mysql> select user, host from mysql, use order by user, host ;
  39. ERROR 1046 (3D000): No database selected
  40. mysql> select user, host from mysql, use order by user, host;
  41. ERROR 1046 (3D000): No database selected
  42. mysql> select user,host from mysql,use order by user,host;
  43. ERROR 1046 (3D000): No database selected
  44. mysql> show database;
  45. 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 'database' at line 1
  46. mysql> use wordpress; show tables;
  47. Reading table information for completion of table and column names
  48. You can turn off this feature to get a quicker startup with -A
  49.  
  50. Database changed
  51. +-----------------------+
  52. | Tables_in_wordpress |
  53. +-----------------------+
  54. | wp_commentmeta |
  55. | wp_comments |
  56. | wp_links |
  57. | wp_options |
  58. | wp_postmeta |
  59. | wp_posts |
  60. | wp_term_relationships |
  61. | wp_term_taxonomy |
  62. | wp_terms |
  63. | wp_usermeta |
  64. | wp_users |
  65. +-----------------------+
  66. 11 rows in set (0.00 sec)
  67.  
  68. mysql> grant all privileges on wordpress.* to wordpress@localhost indetified by "admin";
  69. 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 'indetified by "admin"' at line 1
  70. mysql> grant all privileges on wordpress.* to wordpress@localhost indetified by admin;
  71. 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 'indetified by admin' at line 1
  72. mysql> grant all privileges on wordpress.* to wordpress@localhost indetified by "admin" ;
  73. 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 'indetified by "admin"' at line 1
  74. mysql> Bye
  75. root@dislexia:~# mysql -u wordpress wordpress -p
  76. Enter password:
  77. Reading table information for completion of table and column names
  78. You can turn off this feature to get a quicker startup with -A
  79.  
  80. Welcome to the MySQL monitor. Commands end with ; or \g.
  81. Your MySQL connection id is 176
  82. Server version: 5.5.29-0ubuntu0.12.04.2 (Ubuntu)
  83.  
  84. Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
  85.  
  86. Oracle is a registered trademark of Oracle Corporation and/or its
  87. affiliates. Other names may be trademarks of their respective
  88. owners.
  89.  
  90. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  91.  
  92. mysql> ^CCtrl-C -- exit!
  93. Aborted
  94. root@dislexia:~# exit
  95. dislexia@dislexia:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement