Skip to content

Instantly share code, notes, and snippets.

@samayo
Last active March 29, 2022 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samayo/acbfa6ccafc3c0c1bea97c902b11f70f to your computer and use it in GitHub Desktop.
Save samayo/acbfa6ccafc3c0c1bea97c902b11f70f to your computer and use it in GitHub Desktop.
Snippets

MYSQL

# give access to user
GRANT ALL PRIVILEGES ON website_com.* To 'user_website_com'@'localhost' IDENTIFIED BY 'XXXXXXXX';
CREATE USER 'user_website_com'@'localhost' IDENTIFIED BY 'XXXXXXXX';
mysql -u username -p database_name < file.sql

SCP

 scp SOMETHING.zip root@159.xxx.xxx.xxx:/var/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment