Guest

Untitled

By: a guest on Nov 24th, 2011  |  syntax: None  |  size: 1.34 KB  |  hits: 2  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. List of all MySQL commands:
  2. Note that all text commands must be first on line and end with ';'
  3. ?         (\?) Synonym for `help'.
  4. clear     (\c) Clear the current input statement.
  5. connect   (\r) Reconnect to the server. Optional arguments are db and host.
  6. delimiter (\d) Set statement delimiter.
  7. ego       (\G) Send command to mysql server, display result vertically.
  8. exit      (\q) Exit mysql. Same as quit.
  9. go        (\g) Send command to mysql server.
  10. help      (\h) Display this help.
  11. notee     (\t) Don't write into outfile.
  12. print     (\p) Print current command.
  13. prompt    (\R) Change your mysql prompt.
  14. quit      (\q) Quit mysql.
  15. rehash    (\#) Rebuild completion hash.
  16. source    (\.) Execute an SQL script file. Takes a file name as an argument.
  17. status    (\s) Get status information from the server.
  18. tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
  19. use       (\u) Use another database. Takes database name as argument.
  20. charset   (\C) Switch to another charset. Might be needed for processing binlog
  21. with multi-byte charsets.
  22. warnings  (\W) Show warnings after every statement.
  23. nowarning (\w) Don't show warnings after every statement.
  24.     -> \s
  25. ERROR 2006 (HY000): MySQL server has gone away
  26. No connection. Trying to reconnect...
  27. ERROR 1049 (42000): Unknown database 'estart'
  28. ERROR:
  29. Can't connect to the server
  30.