mysqld: unrecognized service

201 views
Skip to first unread message

PorridgeBear

unread,
Sep 3, 2014, 8:08:10 AM9/3/14
to puppet...@googlegroups.com
With a very basic declaration for MySQL Server:

  class { '::mysql::server':
    root_password    => 'foobar',
    override_options => { 'mysqld' => { 'max_connections' => '150' } }
  }

I am receiving a number of errors on puppet provisioning:

Error: Could not start Service[mysqld]: Execution of '/sbin/service mysqld start' returned 1: mysqld: unrecognized service

I am out of ideas and suggestions very welcome!

John Kennedy

unread,
Sep 3, 2014, 9:41:56 AM9/3/14
to puppet...@googlegroups.com
Not meaning to insult your intelligence but that error looks like mysqld init file is not in your /etc/init.d directory for the service command to start it. To make sure, log into one of the servers giving that error and run the command. I would guess that you would get the same error...

Puppet appears to be working as expected



John Kennedy  (_8(|)
I have a yellow dog:
http://www.theyellowdogproject.com/The_Yellow_Dog_Project/About.html

Why would anyone foster a dog/cat?
I would rather cry watching them leave our home to live a life of happiness and joy in a loving home than cry because no one stepped up to help them and they died alone, frightened, and sad in a shelter.


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c79d2c1b-17f7-4a2b-94d0-01c46b101554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jcbollinger

unread,
Sep 4, 2014, 12:15:04 PM9/4/14
to puppet...@googlegroups.com


Either the mysql service is not installed, or its service name is not 'mysqld'.  Note in particular that the name wanted is not necessarily the name of the daemon binary; it is the logical service name that you would use with the 'service' command (for example).  In your environment that might be something like "mysql" or "mysql-server".  If your system has the 'chkconfig' command, then you should be able to get a list of the names of installed services via 'chkconfig --list'.


John

Reply all
Reply to author
Forward
0 new messages