top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Unable to connect Mysql2 or Sqlite3 on windows

+1 vote

I would like to know if this problem is occurs only with me? I was unable to get Mysql2 ou Sqlite3 working with Ruby and rails.

-ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
-Rails 4.0.0.

I tried several tutorials but no one work for me.

See same examples, for sqlite3:

And many others.
I can install de gems but When a run the app it´s simple crash.

posted Aug 9, 2013 by Jagan Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Getting good support for rails in windows is difficult. Why don't you switch to Ubuntu or OSX?

answer Aug 9, 2013 by Mandeep Sehgal
+1 vote

What do you mean by simple crash? Is there not an error message of some sort?

I agree though, much better to use a Linux distribution such as Ubuntu. Run it in a virtual machine in Windoze or set your PC up to dual boot Win and Ubuntu.

answer Aug 9, 2013 by Kumar Mitrasen
Similar Questions
+2 votes

I'd like to continue with Rails but I wonder how to switch from SQLite3 to MongoDB.

0 votes

I was writing a Python script for getting the user stats of a website(Specifically codereview.stackexchange). I wanted to store the stats in a database. I found Python3's sqlite3 library. I found that I needed sql commands for using it.

I have tried sql.learncodethehardway but it isn't complete yet. I tired looking on stackoverflow's sql tag also but nothing much there. Can someone suggest me better resources for learning sql/sqlite3?

+1 vote

In my table I have three unique column this can be referred by other table.
Which key I have to use for this.

+2 votes

I'm receiving the following exception: "Permission denied": connect

when instantiating a Socket from a servlet:

final Socket smtpSocket = new Socket(mailTransportHost, mailTransportPort);

This application was running as a service under Windows Server 3003 R2 32-bits. After migrating it to Windows Server 2008 R2 64-bit, I cannot longer establish connection with the smtp server.

This only happen when running Tomcat as a service. Running as a standalone (starting it up using startup.bat) works fine. No exception instantiating Socket, emails are sent.


 - Windows Server 2008 R2 64-bit
 - Tomcat 7.0.39
 - jdk1.6.0_33-x64