msg: Failed to find required executable mysql

251 views
Skip to first unread message

Marti Butler

unread,
Dec 11, 2014, 4:58:14 AM12/11/14
to ansible...@googlegroups.com
Hi

I am importing an SQL file into my already created DB but getting the above error:

- name: import database 
      mysql_db: name=DB state=import target=DB.sql login_user=root login_host=localhost login_unix_socket=/var/lib/mysql/tmp/mysqld login_password=''

Error:
msg: Failed to find required executable mysql

When I run this again it is fine and imports correctly.  Anybody else been having this issue please?

Thanks

James Cammarata

unread,
Dec 11, 2014, 10:34:11 AM12/11/14
to ansible...@googlegroups.com
Hi Marti, can you share any details about how the mysql binary was installed? Was it via a tar or package? I'm very curious as to why it would fail in one instance but not when re-run.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/76195472-d778-48cf-9d29-0eb0d96587e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eddy.j...@basekit.com

unread,
Dec 22, 2014, 9:17:14 AM12/22/14
to ansible...@googlegroups.com
Hi James,

it's via tar, specifically this version: mysql-5.6.19-linux-glibc2.5-x86_64.tar.gz.

Mona Gopal

unread,
Jan 24, 2018, 2:27:06 AM1/24/18
to Ansible Project
Hi, 


We are facing similar issue. The only difference being this error occurs at all times. Also to mention we are running this playbook on an AWS instance. On other servers and VM's it has worked before.
Any help would be appriciated.

Thanks in advance,
Mona 
Reply all
Reply to author
Forward
0 new messages