Skip to content

dhollerbach/examples.mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

TIPS AND TRICKS

Practicing

Switches

  • -h - host
  • -u - user
  • -p - requires password
  • -e - outputs to a file
    • Ex: mysql -h HOSTNAME -u USER -p DATABASE "" > output.txt

Basic Commands

  • SHOW WARNINGS - can be used after a warning is encountered
  • FLUSH PRIVILEGES - reimplements all privileges
  • SHOW PROCESSLIST - shows all querys and processes currently running
  • CONCAT_WS - puts the first string mentioned in between all other arguments
    • Ex: SELECT * CONCAT_WS('-', first_name, last_name) FROM users

About

MySQL snippets that I've build over the years

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published