# MissingSourceFile (no such file to load -- mysql)

**URL:** <https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-mysql/157743>\
**Category:** Rails\
**Created:** [January 14, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-mysql/157743 "2009-01-14T23:04:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjpatten](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Post date:** [January 14, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-mysql/157743/1 "2009-01-14T23:04:35Z")

</div>

I’m having problem trying to get the app running properly due to it not  
finding MySQL.It seems that the app can’t find mysql.

This error shows up on my production log: MissingSourceFile (no such  
file to load – mysql)

---

<div class="post-metadata">

**Author:** ![pjpatten](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Post date:** [January 14, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-mysql/157743/2 "2009-01-14T23:13:22Z")

</div>

try reinstalling the mysql gem :

sudo gem install mysql --with-mysql-config=/usr/local/mysql/bin/  
mysql\_config

adapt the mysql-config path according to your system.

Sheldon

On Jan 14, 5:04 pm, Patrick P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
