# Mysql problem after upgrade to 5.0

**URL:** <https://www.ruby-forum.com/t/mysql-problem-after-upgrade-to-5-0/83179>\
**Category:** Ruby\
**Created:** [January 24, 2007, 2:47am UTC](https://www.ruby-forum.com/t/mysql-problem-after-upgrade-to-5-0/83179 "2007-01-24T02:47:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kem-mason](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/51bf81/32.png) [@kem-mason](https://www.ruby-forum.com/u/kem-mason)\
**Post date:** [January 24, 2007, 2:47am UTC](https://www.ruby-forum.com/t/mysql-problem-after-upgrade-to-5-0/83179/1 "2007-01-24T02:47:00Z")

</div>

I’m posting this as an FYI – for other people who might encounter the  
same problem – I couldn’t find any clear instructions on how to resolve  
it.

I upgraded from mysql 4.1 to 5.0, at which point 2 different errors  
occured:

error while trying to create table customers; Could not load driver  
(libmysqlclient.so.14: cannot open shared object file: No such file or  
directory - /usr/lib64/site\_ruby/1.8/x86\_64-linux/mysql.so)

and:  
Errno::ENOENT in SearchController#search

No such file or directory - /tmp/mysql.sock

the solution was to install the latest ruby code – in my case (fedora)

yum upgrade ruby\*

did the trick.
