ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Error with install-merlin.sh script #27

Open misterpremium opened 6 years ago

misterpremium commented 6 years ago

When I try to intall merlin whit the script install-merlin.sh, it throw me an error:

ERROR 1049 (42000): Unknown database 'merlin'
install-merlin.sh: línea 45: /usr/local/share/merlin/sql/mysql/merlin.sql: No such file or direcctory

Any idea how i can fix it?

Thanks

AnthonyLELUYER commented 5 years ago

Hi @misterpremium

Here is the solution:

mkdir -pv /usr/local/share/merlin/
cp -r sql/ /usr/local/share/merlin/

Make sure you created the database called merlin too, with the user merlin with all access/rights to the database merlin.

misterpremium commented 5 years ago

Hellow @LikoV2

I know that its is a way to fix it but it isn't documented, And the user is automatically created with the script. I mean the script must be fixed for it do the two commands.

Regards