[Linux]batch shell(tar,ftp,sftp)
·
Linux
---------------------------------------- * FTP ---------------------------------------- #!/bin/sh HOST=IP명 USER=계정 PASSWORD=패스워드 #folder=$(date +'%Y%m%d') folder_tar=$(date +'%Y%m%d')".tar" cd /var/backup/web/ #tar cvf $folder_tar $folder #backup=$(date +'%Y%m%d')".*" ftp -i -n
[MariaDB] Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server
·
Database
MariaDB Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server 개발서버에 MariaDB 설치 후 로컬피시에서 원격으로 접속시 SQL 오류 (1130) #0 구문: Host '192.168.110.108' is not allowed to connect to this MariaDB server 라는 경고창이 나타났다. 보안 때문인지 권한설정에 IP를 막는 기능이 존재한다. 나 같은경우는 root였으므로 GRANT ALL PRIVILEGES ON *.* TO @'%' IDENTIFIED BY ; 새로 계정을 만들어서 사용하여도 된다. CREATE USER @'%' IDENTIFIED BY ; GRANT ALL PRIVILEGES O..