# Cookbook for MySQL

**URL:** <https://discourse.chef.io/t/cookbook-for-mysql/5632>\
**Category:** Chef Infra (archive)\
**Created:** [August 14, 2014, 10:35am UTC](https://discourse.chef.io/t/cookbook-for-mysql/5632 "2014-08-14T10:35:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivajimsingh](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Sivajimsingh](https://discourse.chef.io/u/Sivajimsingh)\
**Post date:** [August 14, 2014, 10:35am UTC](https://discourse.chef.io/t/cookbook-for-mysql/5632/1 "2014-08-14T10:35:18Z")

</div>

Hi,

I’m trying to run MySQL cookbook on an RHEL instance which is not yet  
subscribed. As a result the cookbook is unable to download the mysql files from  
the yum repo.  
Is there any other cookbook which downloads files from locations other than the  
yum repo?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Jeff\_Blaine](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jeff_blaine/32/19_2.png) [@Jeff\_Blaine](https://discourse.chef.io/u/Jeff_Blaine)\
**Post date:** [August 14, 2014, 1:22pm UTC](https://discourse.chef.io/t/cookbook-for-mysql/5632/2 "2014-08-14T13:22:10Z")

</div>

On 8/14/2014 6:35 AM, [sivajimsingh@gmail.com](mailto:sivajimsingh@gmail.com) wrote:

> Hi,
> 
> I'm trying to run MySQL cookbook on an RHEL instance which is not yet  
> subscribed. As a result the cookbook is unable to download the mysql files from  
> the yum repo.  
> Is there any other cookbook which downloads files from locations other than the  
> yum repo?

None I've ever seen, no.

If you're using RHEL, you're not going to get far with any community  
cookbooks (rightfully) until your host is subscribed to RHN.

You could write a cookbook that uses the new Oracle yum repository as  
that would sidestep the RHN subscription reqiurement.

Oracle MySQL yum repository page: [http://dev.mysql.com/downloads/repo/yum/](http://dev.mysql.com/downloads/repo/yum/)

--  
Jeff Blaine  
[kickflop.net](http://kickflop.net)  
PGP/GnuPG Key ID: 0x0C8EDD02

---

<div class="post-metadata">

**Author:** ![Sean\_OMeara1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/sean_omeara1/32/207_2.png) [@Sean\_OMeara1](https://discourse.chef.io/u/Sean_OMeara1)\
**Post date:** [August 14, 2014, 2:54pm UTC](https://discourse.chef.io/t/cookbook-for-mysql/5632/3 "2014-08-14T14:54:46Z")

</div>

Hi.

So, its not quite that easy... the mysql server packages that exist  
have a lot of package dependencies.  
The one shipped in the rhel/centos channels have around 10

> <https://gist.github.com/someara/175e6909485cfc7a0cf3>

So, you'd need to host each package and their dependencies on a web server...  
.... which would give you a yum repository.

If you want to use the mysql cookbook on the community site, you could  
try pointing your box a the CentOS repositories (or an internally  
hosted mirror) with the yum-centos cookbook

> **[GitHub - sous-chefs/yum-centos: Development repository for the yum-centos...](https://github.com/sous-chefs/yum-centos)**
>
> Development repository for the yum-centos cookbook - GitHub - sous-chefs/yum-centos: Development repository for the yum-centos cookbook

-s

On Thu, Aug 14, 2014 at 6:35 AM, [sivajimsingh@gmail.com](mailto:sivajimsingh@gmail.com) wrote:

> Hi,
> 
> I'm trying to run MySQL cookbook on an RHEL instance which is not yet  
> subscribed. As a result the cookbook is unable to download the mysql files from  
> the yum repo.  
> Is there any other cookbook which downloads files from locations other than the  
> yum repo?
> 
> Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Sean\_OMeara1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/sean_omeara1/32/207_2.png) [@Sean\_OMeara1](https://discourse.chef.io/u/Sean_OMeara1)\
**Post date:** [August 14, 2014, 2:56pm UTC](https://discourse.chef.io/t/cookbook-for-mysql/5632/4 "2014-08-14T14:56:43Z")

</div>

PS: the current mysql cookbook uses the oracle yum repos to get the  
versions that the distros stopped shipping when switching to MariaDB.

> **[GitHub - sous-chefs/yum-mysql-community: Development repository for the...](https://github.com/sous-chefs/yum-mysql-community)**
>
> Development repository for the yum-mysql-community cookbook - GitHub - sous-chefs/yum-mysql-community: Development repository for the yum-mysql-community cookbook

-s

On Thu, Aug 14, 2014 at 9:22 AM, Jeff Blaine [jblaine@kickflop.net](mailto:jblaine@kickflop.net) wrote:

> On 8/14/2014 6:35 AM, [sivajimsingh@gmail.com](mailto:sivajimsingh@gmail.com) wrote:
> 
> > Hi,
> > 
> > I'm trying to run MySQL cookbook on an RHEL instance which is not yet  
> > subscribed. As a result the cookbook is unable to download the mysql files from  
> > the yum repo.  
> > Is there any other cookbook which downloads files from locations other than the  
> > yum repo?
> 
> None I've ever seen, no.
> 
> If you're using RHEL, you're not going to get far with any community  
> cookbooks (rightfully) until your host is subscribed to RHN.
> 
> You could write a cookbook that uses the new Oracle yum repository as  
> that would sidestep the RHN subscription reqiurement.
> 
> Oracle MySQL yum repository page: [http://dev.mysql.com/downloads/repo/yum/](http://dev.mysql.com/downloads/repo/yum/)
> 
> --  
> Jeff Blaine  
> [kickflop.net](http://kickflop.net)  
> PGP/GnuPG Key ID: 0x0C8EDD02
