Cannot execute sql command from file via bash script: ERROR 1049 (42000): Unknown database ‘/root/file.sql”
Can anyone tell me, what is the issue here ?
When I execute this COMMAND on my own, everything is fine.
ERROR 1044 (42000) while updating mysql database
I’m trying to send a json file to my MySQL database from bash script. As far as I know the syntax for json file part is correct but there is a strange error that I cant understand.