Skip to content

Instantly share code, notes, and snippets.

@samayo
Last active March 29, 2022 16:32
Show Gist options
  • Select an option

  • Save samayo/acbfa6ccafc3c0c1bea97c902b11f70f to your computer and use it in GitHub Desktop.

Select an option

Save samayo/acbfa6ccafc3c0c1bea97c902b11f70f to your computer and use it in GitHub Desktop.

Revisions

  1. samayo revised this gist Mar 29, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Collection.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,6 @@ mysql -u username -p database_name < file.sql
    ```

    ## SCP
    ```bash
    ```shell
    scp SOMETHING.zip [email protected]:/var/
    ```
  2. samayo revised this gist Mar 29, 2022. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion Collection.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,9 @@
    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
    ```bash
    scp SOMETHING.zip [email protected]:/var/
    ```
  3. samayo created this gist Mar 29, 2022.
    7 changes: 7 additions & 0 deletions Collection.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #### MYSQL
    ```sql
    # 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
    ```