Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> sudo crontab -e
- >>> SHELL = /bin/bash
- >>> PATH = /sbin:/bin:/usr/sbin:/usr/bin
- >>> 0 0 * * * cd /script && python test.py > /script/log/cron_error.log 2>&1
- query=mysql --login-path=db_backup --execute="use db_test; CREATE TABLE test_2018_11 LIKE test;"
- RESULT: ERROR 1045 (28000): Access denied for user 'root'@'localhost'
- 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