I wrote a sh script on linux. When I used the command to execute the script, the execution was successful. A normal sql file is generated in the path I wrote.
mysql account password is in the configuration file.
script content:
-sharp!/bin/bash/
mysqldump -u root jeeplus_jinqiu > /data/backup/jeeplus_jinqiu_$(date +%Y%m%d_%H%M%S).sql
then I do
crontab to execute my script at 12:00 every night. It did. But the executed sql script is 0k and has no content.
I wondered if it might be a root mysql permission problem. But I don"t think so. My crontab is also done under the authority of root.
excuse me, what kind of problem will it be? How to solve it