I'm trying to write a shell script to log into MySQL, chose the correct database and run MySQL's \. command.
The problem is that MySQL refuses the log in when running the command "mysql -uroot -pXXXX" through a script, if I type the command directly into the command line it works.
I figure that MySQL doesn't like scripts accessing it, but is there a way around it?
The problem is that MySQL refuses the log in when running the command "mysql -uroot -pXXXX" through a script, if I type the command directly into the command line it works.
I figure that MySQL doesn't like scripts accessing it, but is there a way around it?