Skip to main content

Posts

Showing posts with the label MySQL

Errno::EPIPE (Broken pipe) MySQL Error in Rails

I've been working professionally with Ruby on Rails for a few months. To be exact that's mostly in SysAdmin capacity. During the time, I've seen some weired errors which I had not seen anywhere else. Time rolled on and now those things don't look weired at all. Actually I should have looked more carefully. Later, I did and found my way through. So here's some stuff I found. Hope this will save someones time. (My Ruby servers post is coming shortly,.. really, and will include details about Thin and Passenger too. Actually I was waiting Phusion Passenger AKA mod_rails to be released. For a quick peak of the post, I'm currently running Thin in production and also evaluating Passenger. Update: I've moved about 6 apps to Passenger. So far so good. Thin is still my first choice though. You can look forward to the post along with some Capistrano scripts too, ...soon. :) 1. Errno::EPIPE (Broken pipe - The Major Pain in the Neck) The team I'm working with are usi...

Howto setup a MySQL Connector/J 5.1 for Tomcat on Linux

Again, I'm not switching to Java. :) For clarity, I'm helping one of my online buddies to setup and use Ruby even as I write this. This work was something I had to do for a Rails project which used JSPs and stuff with a MySQL database over JDBC. The application setup was quite interesting calling JSPs to work with a Rails webapp. Actually the following things are found on the Internet. I cannot remember all the sources I looked at, but one was the MySQLs own documentation and Apache Tomcat documentations. So if this works (which in my case did), credit should not be mine. :) Here's the setup. GNU/Linux (in my case CentOS 5, although should work with any Linux distro) Apache Tomcat (5.5.25, should work with Tomcat 5.5 range) Sun JDK (1.6.0_04) MySQL (5.0.22) MySQL Connector/J (5.1) 1. I assume that Java is setup ( See my previous post for more details on setting up Java manually), and your MySQL is running on the same host on port 3306. Please replace your actual settings i...

MySQL and EnterpriseDB Launched in Sri Lanka

The two premier Open Source Database Management Systems were officially launched recently in Sri Lanka. While MySQL itself was launched, PostgreSQL availability was in the form of EnterpriseDB, which is not exactly PostgreSQL. EnterpriseDB Corporation , the maker of EnterpriseDB DBMS (a commercial DBMS based on the advanced Open Source DBMS PostgreSQL) , together with a new IT firm called Fossmart announced their partnership on 10th, May to provide EnterpriseDB Advanced Server to Fossmart customers. EnerpriseDB is well know for it's Oracle compatibly, which means applications written to work with Oracle DBMS (worlds leading DBMS) can be used with EnterpriseDB usually with no or little modifications. MySQL , the popular Open Source DBMS was launched 31st, July in Sri Lanka by hSenid Software International . hSenid will provide MySQL Enterprise Server in Sri Lanka. MySQL, provided by MySQL AB is probably the more popular of PostgreSQL and MySQL. I personally believe this express...