Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. Last login: Mon Jan 16 18:01:22 on ttys000
  2. ➜ ~ mysql -u root -p
  3. Enter password:
  4. Welcome to the MySQL monitor. Commands end with ; or \g.
  5. Your MySQL connection id is 120
  6. Server version: 5.7.17 MySQL Community Server (GPL)
  7.  
  8. Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  9.  
  10. Oracle is a registered trademark of Oracle Corporation and/or its
  11. affiliates. Other names may be trademarks of their respective
  12. owners.
  13.  
  14. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  15.  
  16. mysql> SHOW DATABASES;
  17. +--------------------+
  18. | Database |
  19. +--------------------+
  20. | information_schema |
  21. | mysql |
  22. | performance_schema |
  23. | sys |
  24. +--------------------+
  25. 4 rows in set (0.00 sec)
  26.  
  27. CREATE\040DATABASE\040eleves;
  28. CREATE\040TABLE\040eleves
  29. id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,
  30. nom\040VARCHAR(30),
  31. prenom\040VARCHAR(30),
  32. age\040VARCHAR(3),
  33. residence\040VARCHAR(50),
  34. PRIMARY\040KEY(id);
  35. CREATE\040TABLE\040eleves\040id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,\040nom\040VARCHAR(30),\040prenom\040VARCHAR(30),\040age\040VARCHAR(3),\040residence\040VARCHAR(50),\040PRIMARY\040KEY(id);
  36. CREATE\040TABLE\040eleves\040(id\040int(5)\040NOT\040NULL\040AUTO_INCREMENT,\040nom\040VARCHAR(30),\040prenom\040VARCHAR(30),\040age\040VARCHAR(3),\040residence\040VARCHAR(50),\040PRIMARY\040KEY(id));
  37. INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Google",\040"Google",\040"100",\040"USA");
  38. INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Laurie",\040"Ingalse",\040"99",\040"USA");
  39. INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Jean",\040"Johan",\040"28",\040"Quimper");
  40. INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Sylvette",\040"Sylvaine",\040"28",\040"Yvelines");
  41. INSERT\040INTO\040eleves\040(nom,\040prenom,\040age,\040residence)\040VALUES\040("Cam",\040"Mouflage",\040"20",\040"Un\040trou");
  42. quit
  43. ➜ ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement