Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. >>> sudo crontab -e
  2. >>> SHELL = /bin/bash
  3. >>> PATH = /sbin:/bin:/usr/sbin:/usr/bin
  4. >>> 0 0 * * * cd /script && python test.py > /script/log/cron_error.log 2>&1
  5.  
  6. query=mysql --login-path=db_backup --execute="use db_test; CREATE TABLE test_2018_11 LIKE test;"
  7. RESULT: ERROR 1045 (28000): Access denied for user 'root'@'localhost'
  8.  
  9. sudo mysql_config_editor set --login-path=db_backup --host=localhost --port=3306 --user=backup_user --password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement