-bash: ./backup.sql: Permission denied

今天运行一个备份脚本backup.sql的时候出现如下错误提示:
[oracle@localhost scripts]$ ./backup.sql
-bash: ./backup.sql: Permission denied

这实际上是权限问题,只需进行如下操作即可:
[oracle@localhost scripts]$ su
Password: 
[root@localhost scripts]# chmod u+x *.sql

之后,脚本就可以顺利运行了。

请使用浏览器的分享功能分享到微信等