# Mysql port = rails port? localhost 3000

**URL:** <https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638>\
**Category:** Rails\
**Created:** [April 23, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638 "2008-04-23T20:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [April 23, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638/1 "2008-04-23T20:25:06Z")

</div>

i get mysql.dll error something.

the port i use in mysql, does it have to be the same as in Ruby? in  
Ruby the standard is 3000.

what is better to change if i need to change something? other  
programing languages use port 8080.  
should i keep them all the same?

---

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [April 23, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638/2 "2008-04-23T20:30:32Z")

</div>

On Wed, Apr 23, 2008 at 11:24 AM, globalrev [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i get mysql.dll error something.

marvelously informative, that.

> the port i use in mysql, does it have to be the same as in Ruby? in  
> Ruby the standard is 3000.

and the MySQL default is 3306. Different processes need to listen on  
_different_ ports; unless you have a good reason to change them from  
the default, don’t 🙂

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [April 24, 2008, 3:59am UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638/3 "2008-04-24T03:59:28Z")

</div>

libmysql.dll is missing. Google it. You will find it. Chuck it in  
C:\Windows\system32. No, it’s not a virus.

On Thu, Apr 24, 2008 at 3:59 AM, Hassan S. \<  
removed\_email\_address@domain.invalid\> wrote:

> and the MySQL default is 3306. Different processes need to listen on  
> _different_ ports; unless you have a good reason to change them from  
> the default, don’t 🙂
> 
> –  
> Hassan S. ------------------------ removed\_email\_address@domain.invalid
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [April 24, 2008, 5:26am UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638/4 "2008-04-24T05:26:50Z")

</div>

This case has already posted many times here. The matter is, user always  
lazy to search their question to get answer in this forum, we put search  
query at the bottom of left menu. Here i repost again the answer :

[1] gem install mysql  
[2] you will see like error syntac but dont pay attention to it  
[3] find LIBMYSQL.DLL from your mysql/bin folder in your mysql folder  
not ruby folder.  
[4] copy & paste that file to ruby/bin  
[5] restart your server or console, if you are already run it.

Then Cheer 🙂  
Reinhart  
[http://teapoci.blogspot.com](http://teapoci.blogspot.com)
