0

at the moment we have 1 server for everything: cronjobs, webserver, dofferent databases systems...

Within this week we have brand new hardware and we try to split up everything: MySQL on its own server, cron jobs on its own servers etc.etc.

Now I try to migrate a bash-script which uses the mysql-command to execute a SQL query and send the result to a usergroup in a cronjob. But of course our cronjob server hasn't and shouldn't have mysql installed.

So I get mysql: command not found

Any ideas?

Azzabi Haythem
  • 2,318
  • 7
  • 26
  • 32
PassionateDeveloper
  • 14,558
  • 34
  • 107
  • 176

1 Answers1

2

MySQL has two components : The MySQL Server and the MySQL client.

You NEED to install MySQL Client on each server that is using it in order to connect to the MySQL Server.

Dan Bizdadea
  • 1,292
  • 8
  • 15