Old mySql driver, or missing something?

Hi,
i am a nub in web applications in java.
I have a system using jrun4 (and tomcat 5 as a second app server), mysql 5, and the java connector driver connector/j 3.1.11 .
The mysql database is running on port 3306.
I am trying to make a connection to the database so i ve writen the following simple jsp program:
<%@ page language="java" import="java.sql.*" %>
<%
     try {
          String sAddress = (String)session.getValue("ADDRESS");
          String sDatabase = (String)session.getValue("DATABASE");
          String sUsername = (String)session.getValue("USERNAME");
          String sPassword = (String)session.getValue("PASSWORD");
          if (sAddress == null || sDatabase == null || sUsername == null || sPassword == null) {
               sAddress = request.getParameter("ADDRESS");
               sDatabase = request.getParameter("DATABASE");
               sUsername = request.getParameter("USERNAME");
               sPassword = request.getParameter("PASSWORD");
          // try a connection
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          Connection conn = DriverManager.getConnection("jdbc:mysql://" + sAddress + "/" + sDatabase +"?user=" + sUsername + "&password=" + sPassword);
          conn.createStatement();
          conn.close();
          // put connection data into session
          session.putValue("ADDRESS", sAddress);
          session.putValue("DATABASE", sDatabase);
          session.putValue("USERNAME", sUsername);
          session.putValue("PASSWORD", sPassword);
          // proceed with success
          response.sendRedirect("menu.html");
          return;
     } catch (Exception e) {
          out.print("<font color=red><center>" + e.toString() + "</center></font><br>\n");
%>
When i try to run it will throw a the following exception:
java.sql.SQLException: Cannot connect to MySQL server on null:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.UnknownHostException)
i think that the main reason this is happening is because its trying to find:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
while the driver connector/j 3.1.11(which is the latest on www.mysql.com)is providing a class name:
com.mysql.jdbc.Driver
so i looked and found a very old connector driver: mm.mysql.2.0.12
which is providing name class: org.gjt.mm.mysql.Driver.
the problem is still there though...
Am i missing something????
Is there a special way to install that driver???
What step do you think i should follow???
Do you think its something else that might be responsible????

Hi,
i am a nub in web applications in java.
I have a system using jrun4 (and tomcat 5 as a second app server), mysql 5, and the java connector driver connector/j 3.1.11 .
The mysql database is running on port 3306.
I am trying to make a connection to the database so i ve writen the following simple jsp program:
<%@ page language="java" import="java.sql.*" %>
<%
     try {
          String sAddress = (String)session.getValue("ADDRESS");
          String sDatabase = (String)session.getValue("DATABASE");
          String sUsername = (String)session.getValue("USERNAME");
          String sPassword = (String)session.getValue("PASSWORD");
          if (sAddress == null || sDatabase == null || sUsername == null || sPassword == null) {
               sAddress = request.getParameter("ADDRESS");
               sDatabase = request.getParameter("DATABASE");
               sUsername = request.getParameter("USERNAME");
               sPassword = request.getParameter("PASSWORD");
          // try a connection
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          Connection conn = DriverManager.getConnection("jdbc:mysql://" + sAddress + "/" + sDatabase +"?user=" + sUsername + "&password=" + sPassword);
          conn.createStatement();
          conn.close();
          // put connection data into session
          session.putValue("ADDRESS", sAddress);
          session.putValue("DATABASE", sDatabase);
          session.putValue("USERNAME", sUsername);
          session.putValue("PASSWORD", sPassword);
          // proceed with success
          response.sendRedirect("menu.html");
          return;
     } catch (Exception e) {
          out.print("<font color=red><center>" + e.toString() + "</center></font><br>\n");
%>
When i try to run it will throw a the following exception:
java.sql.SQLException: Cannot connect to MySQL server on null:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.UnknownHostException)
i think that the main reason this is happening is because its trying to find:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
while the driver connector/j 3.1.11(which is the latest on www.mysql.com)is providing a class name:
com.mysql.jdbc.Driver
so i looked and found a very old connector driver: mm.mysql.2.0.12
which is providing name class: org.gjt.mm.mysql.Driver.
the problem is still there though...
Am i missing something????
Is there a special way to install that driver???
What step do you think i should follow???
Do you think its something else that might be responsible????

Similar Messages

  • Cocoa and mysql -am I missing something here??

    Hi
    Can Cocoa be used to create apps that can access mysql with the framework provided by apple's developer tools or does one need something else?
    A curious beginner with emphasis on beginner

    The source code for MySQL should come with lots of examples for writing clients. The documenation has all the functions you will need. It has been a few years since I worked on a MySQL client in C. Keep in mind, this is only one way to do it. There are easily 50 or 60 different ways to talk to MySQL. I'll give you a "stream of consciousness" answer...
    So, if I wanted to re-learn MySQL, the first thing I would do is look for a connect function. The docs have an example:<pre>
    MYSQL mysql;
    mysql_init(&mysql);
    mysqloptions(&mysql,MYSQL_READ_DEFAULT_GROUP,"your_progname");
    if (!mysqlrealconnect(&mysql,"host","user","passwd","database",0,NULL,0))
    fprintf(stderr, "Failed to connect to database: Error: %s\n",
    mysql_error(&mysql));
    }</pre>
    You create a MySQL object for the connection, initialize, set some options, and connect using all the normal parameters that should be already defined in your MySQL database.
    As long as I'm here, I may as well put in a disconnect. Hmm, there is no disconnect, but there is a mysql_close() function. It is so simple they don't provide an example.
    Next I want to do some query. Again, this function is simple there is no example. It is just <pre>int mysql_query(MYSQL *mysql, const char *query)</pre>. I already know how to construct a SQL statement so that is no big deal. I still need to figure out how to get data out of my query...
    This one looks a little harder. The function "mysqlstoreresult" looks promising. The docs say this returns the entire set of results for a query. There is another function "mysqluseresult" that deals with results one record at a time. I guess that would be useful for large data sets.
    Now I that I have the results, I need some function to do something with it. I found "my_ulonglong mysqlnum_rows(MYSQLRES *result)." That looks pretty easy. But I don't just want a count. I want the actual data. What about "mysqlnumfields"?
    Bingo!<pre>
    MYSQL_RES *result;
    unsigned int num_fields;
    unsigned int num_rows;
    if (mysqlquery(&mysql,querystring))
    // error
    else // query succeeded, process any data returned by it
    result = mysqlstoreresult(&mysql);
    if (result) // there are rows
    num_fields = mysqlnumfields(result);
    // retrieve rows, then call mysqlfreeresult(result)
    else // mysqlstoreresult() returned nothing; should it have?
    if (mysql_errno(&mysql))
    fprintf(stderr, "Error: %s\n", mysql_error(&mysql));
    else if (mysqlfieldcount(&mysql) == 0)
    // query does not return data
    // (it was not a SELECT)
    num_rows = mysqlaffectedrows(&mysql);
    }</pre>
    And at this point, I'm starting to lose interest. But I think that is a pretty good start. It looks like there are about 70 functions to use. You will need no more than 15 of them. Just remember to disconnect when you are done. Remember to call "mysqlfreeresult". Just take it one step at a time.

  • Can I disable my old hard drive in filename searches?

    I just installed a new, larger hard drive into my '07 Mac Pro, and then cloned the old hard drive for a seamless transition...now the computer boots and works from the new drive. Everything worked just fine throughout that process...the only issue I need to iron out is that when I search for a file using command F in the finder (which I do all the time), I get duplicate hits because it's finding files on both the old and new hard drives, which is annoying to have to sift through. I don't want to have to remove the old hard drive in case something happens to the new one. So what can I do to "disable" the old drive so that it's still there if I need it, but doesn't get included in file searches?

    I'm not siure, but I'd try it, Find & Spotlight are halfway tied together I believe.
    A couple of other options for searching...
    EasyFind...
    http://www.macupdate.com/info.php/id/11076
    Here's a direct download link to EasyFind 4.0 which runs in 10.3.9 & up...
    http://www.devon-technologies.com/files/legacy/macosx1039/EasyFind.dmg.zip
    From this page,
    http://www.devon-technologies.com/support/faqs.php?p=default&cat=19
    Freeware applications:
        * EasyFind 4.0
        * PhotoStickies 5.6
        * ThumbsUp 4.3
        * XMenu 1.8
    http://www.versiontracker.com/dyn/moreinfo/macosx/8707
    Use it to search your whole drive for case insensitive & show invisibles...
    .emlx
    (dot ee em el ex)
    Find Any File...
    http://apps.tempel.org/FindAnyFile/
    Hold Option or alt key when selecting Find to Find All.

  • My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already.

    My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already. Could somebody please help me to get my ipod touch to sync on the Asus laptop please?!

    Hello hieunguyen2012,
    The following article can help get your iPhone to appear in iTunes on your new laptop.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

  • Does anybody know if Windows 8 is causing a problem with iTunes?   Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Does anybody know if Windows 8 is causing a problem with iTunes?  Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  .  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver...the same old pr

    Hi,
    I am a new user in this forum..
    I have just installed tomcat and mysql and jdbc fresh on my new system..
    first of all here is what i have done...
    i have installed mysql integrated in xampp at c:\xampp\mysql
    i have installed my tomcat at C:\Programme\Apache Software Foundation\Tomcat 5.5
    i have put jdbc <dirver>.jar file copied in all sorts of directories like ....
    <tomcat_home>\common\lib
    <tomcat_home>\webapps\axis\WEB-INF\lib\ext
    <java_home>\lib
    <java_home>\jre\lib\ext
    my calsspath looks something like this
    .;C:\Programme\QuickTime\QTSystem\QTJava.zip;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\servlet-api.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\jsp-api.jar;C:\Programme\Java\jdk1.5.0_05\jre\lib\ext\mysql-connector-java-5.0.6-bin.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\activation.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mail.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\saaj.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar
    which is basically all the jar files in the web-inf\lib folder and references to all the copies of driver as mentioned before
    these are results of a lot of desperatio but still the code which i run....
    package mypackage;
    import java.sql.*;
    public class JDBCConnector
    public static void main(String[] arg) throws Exception
         System.out.println("Initiating Database Mysql Connection");
         //try {
                   Statement stmt;
                        //     Register the JDBC driver for MySQL.
                   Class.forName("org.gjt.mm.mysql.Driver ").newInstance();
                        //     Define URL of database server for
                        // database named mysql on the localhost
                        //      with the default port number 3306.
                   String url = "jdbc:mysql://wifh-1.fhso.ch:3306/";
                        //          Get a connection to the database for a
                        // user named root with a blank password.
                        // This user is the default administrator
                        // having full privileges to do anything.
                   Connection con = DriverManager.getConnection(url,"root", "birnExy");
                        //Display URL and connection information
                   System.out.println("URL: " + url);
                   System.out.println("Connection: " + con);
                        //Get a Statement object
                   stmt = con.createStatement();
                        //     Create the new database
                   stmt.executeUpdate("CREATE DATABASE JunkDB3");
                        //Register a new user named auser on the
                        // database named JunkDB with a password
                        // drowssap enabling several different
                        // privileges.
                   stmt.executeUpdate("GRANT SELECT,INSERT,UPDATE,DELETE," +"CREATE,DROP " +"ON JunkDB3.* TO 'nishant'@'localhost' " +"IDENTIFIED BY 'nishant';");
                   con.close();
         //}catch( Exception e ) {
              //     e.printStackTrace();
         //}//end catch
              //return hook;
         }//end main
    }//end class JDBCConnector
    gives the following error.....
    <soapenv:Envelope>
    &#8722;
         <soapenv:Body>
    &#8722;
         <soapenv:Fault>
    <faultcode>soapenv:Server.userException</faultcode>
    &#8722;
         <faultstring>
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    </faultstring>
    &#8722;
         <detail>
    <ns1:hostname>SADMC0087</ns1:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    please help me

    20.05.2007 22:43:26 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.5.0_05\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\QuickTime\QTSystem\;C:\Programme\ATI Technologies\ATI Control Panel;C:\Programme\Java\jdk1.5.0_05\bin;C:\Programme\Apache Software Foundation\Tomcat 5.5\common\lib;
    20.05.2007 22:43:27 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:27 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1203 ms
    20.05.2007 22:43:27 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    20.05.2007 22:43:27 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
    20.05.2007 22:43:27 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    20.05.2007 22:43:28 org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive SIpages.war
    20.05.2007 22:43:31 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:31 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    20.05.2007 22:43:31 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/109 config=null
    20.05.2007 22:43:31 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    20.05.2007 22:43:32 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4813 ms
    now this is when i run from eclipse where SIpages.war is my war file to be deployed...which looks something like this
    sipages/web-inf/classes
    sipages/web-inf/src
    sipages/web-inf/lib-this has the jar file as you mentioned
    and come other files...nwo where soes my .java file go in this war and how do i compile the java file

  • Just got a new hard drive w system X 10 8 2 - don't see my hard disk on the desktop - is this new or am I missing something?

    Hi, just had to get a new hard drive for my Imac.  Installed Mountain Lion 1 8 2 - I do not see my hard disk on the desktop.  Is this new?  or am I missing something?

    Open the General tab of the Finder's preferences and check the box for it.
    (74393)

  • I need something that will allow me to resurrect my old hard drive.

    Recently my powerbook G3 died (unrelated to hard drive issues) and I took a few of the parts out of it that were still good including the hard drive. It is a IBM Travelstar 10 GB, 2.5 inch.
    I got a new ibook G4 and now I'd like to find someting that will allow me to dig up the files on the old hard drive and transfer them over.
    I recently tried a device that was intended to work as a shell for the hard drive and connect it to my new computer via a firewire port. This device didn't work and I had to return it because the pins on the hard drive didn't match up with the connector.
    Any recommendations?
    thanks in advance for any assistance.

    Kam,
    I replied to another poster with a similar request which should be helpful but it does have additional suggestions:
    http://discussions.apple.com/message.jspa?messageID=2463353#2463353

  • Have Old Hard drive and want to move old data onto new hard drive in imac.

    I am trying to get my files off of an old hard drive. I have it hooked up through a sata drive. I am able to access all the programs but for whatever reason I am unable to access any of the files, i.e- 1,00's of pictures, videos, music, and documents. Is there something else I need to do in order to get the files, or is it possible that all the programs could still be on it but the files are just missing? In the current Sata it only has two plugs but on my hard drive it looks like there is another place to plug something in.

    Hello again Shadow,
    The way I do this is to:
    1) Install your new hard drive into your iBook
    2) Get your iBook reassembeled
    3) Place your old hard drive in your firewire enclosure
    4) Insert your install DVD into your iBook and restart with the C key held down. When the installer launches, select your language in the first pane, click 'continue' and in the upper dropdown menu in the next page select Utilities > Disk Utility. After DU is open, select your hard drive from the list of volumes on the left (the very top one), and then click the 'Partition' tab to the right. Then select 1 partition (normal) and make sure that you have 'Mac OS Extended (journled)' selected in the lower section. Then click 'partition'
    5)Quit disc utility, which brings you back to the installer. continue with your installation of OS X. In one of the first steps you will see a button on the lower left which says 'options' click on that and make sure that the option 'Installs OS X for the first time' is selected. It will normally be selected by default with a new drive.
    6) After the installation, the Migration Assistant will ask if you would like to transfer your information from another mac. click yes then follow the instructions. but instead of using another mac, connect a firewire cable from your enclosure with your old hard drive installed. The installer will think that this is another mac and will transfer all of your account information and user files (everything!)from your old drive to your iBook's new drive. Just diconnect when it says to and complete the installation sequence.
    You're done!
    Check back again if anything is unclear.
    Randy
    Message was edited by: DesertSage

  • Transferring from old hard drive to new

    My mac mini died, so I replaced with iMac. I was able to remove hard drive from mini and plug into iMac as an external drive. now I want to load iMac with my iTunes, etc. from the mini. Is there an easy way to do this?

    Perhaps I'm missing something here, but if your old hard drive in fact failed, requiring its replacement, unless you have a separate backup, other than using a data recovery service, your data is gone.

  • Transferring data from old hard drive to new computer

    The hard drive on my MacBook Pro went bad and had to be replaced.  I was told it would be simple to transfer its contents onto the new installed hard drive, but I have yet to figure it out.  Can anyone tell me what equipment I need and how to do this?  Any help  would be appreciated.

    Perhaps I'm missing something here, but if your old hard drive in fact failed, requiring its replacement, unless you have a separate backup, other than using a data recovery service, your data is gone.

  • Missing something obvious

    I am using nigpib version 6 with RedHat Linux 6.2. I am having problems talking to my instruments. Two devices a Keithley Multimeter 2001 and an IO TECH dac488hr refuse to communicate. Their remote lights go on but I get an EBUS error when doing ibwrt to either. Two other devices an SRS850 lockin amplifier, and an ESI model 73 precision transformer respond to commands well enough but I get an EAB0 error returned. I recognize the problems have to do with timeout. I have changed ibtmo to various settings but continue to get errors. I have tried to be careful setting the EOS and EOI attributes for each device but clearly I am missing something. Any suggestions?
    In the past I used the LLP gpib driver and don't recall gett
    ing these kinds of problems. I was going to port over my old code to talk with the instruments but I see that there is some rather sigificant differences in the way you do business. For one under LLP Clausi set up a /dev/gpib0/master device through which commands were passed. In addition he had a /etc/gpib.conf file and loaded his module via insmod in rc.d. You, on the other hand, set up /dev/gpib, /dev/gpib0, /dev/gpib1/, /dev/gpib2, /dev/gpib3, /dev/gpibdebug and /dev/dev0 /dev/dev1 etc (where dev# is a device configured with ibconf). What are the relationships between your strategies? What must I do to port my old software to my newer linux OS and use your drivers rather than those from LLP?
    I could really use some insights. Any comments (sans flaming ;-) would be welcome.

    I tried this but with no success. I called the help line and spoke with Ben P. and Armando V. they walked me through the ibic and ibconf tools, again, with no success.
    I spoke with the vendors of the instruments which are giving the EBUS error. They walked me through the setups (especially wrt to EOS and EOI). They were confused as to why the instruments failed to respond.
    With my last call to NI (SR#345883) the engineers suggested that I respond to this email and ask for further support. They requested/suggested I supply the following 3 pieces of information:
    1) revision of boards and part nos.
    2 ATGPIB-TNT boards vintage 1993
    assy 181830-01 REV. D
    1 ATGPIB-TNT PNP vintage 1995
    assy 182885E-01
    The implication was that NI might be able to provide an upgrade to the firmware if that was at fault.
    2) Capture of errors in ibic
    basically following your webpage for ibic works upto communicating with devices. Sample output follows:
    : ibfind gpib0
    id = 0
    gpib0: ibpad 0
    [0100] ( cmpl )
    previous value: 0
    gpib0: ibfind keithley
    id = 1002
    keithley: ibwrt "*IDN?\xA"
    [8100] ( err cmpl )
    <>
    error: EBUS
    count: 0
    keithley: ibrd 100
    [8100] ( err cmpl )
    error: EBUS
    count: 0
    <>
    keithley: ibfind ratio
    id = 1003
    ratio: ibwrt "Ratio 0.1234567\xA"
    [c100] ( err timo cmpl )
    error: EAB0
    count: 16
    <
    the ratio, as verified by the display >>
    ratio: ibrd 100
    [e100] (err timo end cmpl )
    error: EAB0
    count: 17
    52 61 74 69 6f 20 30 2e Ratio 0.
    31 32 33 34 35 36 37 30 12345670
    0a .
    using the SRS850 Lockin Amplifier has an added advantage. It will show the input and output queues on the screen. When I command this instrument I can watch as it receives its instructions. The commands are going through correctly (NOTE: this device also gives an EAB0 error).
    I have tried different cables, different machines, different DMA settings, different interrupts, different instruments, different ibtmo values, different cards, single devices on short cables, but keep getting errors.
    I have used the ibic webpage (setting ibsre 1, etc) and these work fine but the devices still complain.
    3) Give the version of Linux I am using...
    We are running Redhat 6.2, kernel version 2.2. We have older versions of the Linux OS which are running the LLP gpib driver for the SAME devices and it works fine. I would rather not go back to older versions if possible, besides since NI has done the Linux gpib driver, it appears that LLP has dropped support. In particular, I cannot get their drivers to compile in Redhat 6.2 and get no response from my emails. I would be willing to move to newer versions of Linux if that would solve the problem.
    I have confirmed the following:
    The ibtsta program says the driver is installed correctly (run without the gpib cable attached.)
    Interrupts, dma, iports are unique and without contention.
    The gpib card responds to commands (eg using ibic.)
    Some devices respond in a fashion, others fail. But all seem to receive signals from the computer.
    The instruments and cables attached to the system are sound.
    The gpib card, cables, and devices respond correctly from a dual boot machine running WinNT and Linux (i.e. no movement of cables, devices, or cards). On the WinNT side the recently downloaded NI drivers work and I can communicate (with the Keithley 2001) flawlessly.
    I am must now ask whether the driver is at fault. I understand the drivers are beta, but these appear to be the only workable drivers out there. ANY HELP WOULD BE APPRECIATED!
    >>

  • Strange PHP compile issue -- old MySQL client version

    I've successfully compiled PHP 5.2.8 from source on two Xserve G5s running 10.4.11. It seems to run all the web apps fine. But when I look at phpinfo(), it reports that the MySQL Client API version is 4.1.22. Previously, when using Marc Liyanage's package version (5.2.4), the MySQL Client API was something like 5.0.45 (at least reasonably current with the MySQL version I had installed).
    So I have two main questions:
    1. What determines the PHP's MySQL Client API version? Is it some code in the PHP source that gets compiled? (In which case, why is the latest PHP source using an old MySQL Client.)
    2. How can I make the PHP I compiled use the latest MySQL Client API version? (Since I've seen warnings that this could cause problems. Incidentally, I'm using MySQL 5.0.67.)
    If it helps, here are the compile options I've used, per instructions online ( http://downloads.topicdesk.com/docs/UpdatingPHP_on_OS_XServer.pdf ):
    ./configure --prefix=/usr/local/php5 --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --with-libxml-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-sockets --enable-fastcgi --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/private/etc --with-mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock
    I can post the config.log as well if that's helpful.
    ...Rene

    I'm posting this information here as its the top hit when searching apple.com for mac php recompile
    There is a MUCH easier/safer way to install a missing php module then doing a full recompile. Please see and read the comments:
    http://www.pagebakers.nl/2008/12/17/installing-php-soap-extension-on-leopard-10- 5-5/#comment-4931

  • PrE8 very slow?  Am I missing something?

    Hi everyone,
    I just recently upgraded from Premiere Elements 4 to 8 on a newly built computer.  I have been fairly disappointed so far with PrE8 and wondering if I am missing something / optimizations that would make it work (and work efficiently) on my computer.
    My computer: i7 930 oc'd to 4ghz (stable, stressed with prime95, used for a month), 12GB ram, GTX460x2 SLI with latest Nvidia drivers, 250 GB SSD boot/program drive / used for scratch disk, and a 2 TB Raid10.
    PrE8 was upgraded to 8.01 already.  It starts up just fine.  The problem comes when I am trying to encode a simple project to burn to dvd.  I am just putting together numerous video clips to burn into a single double layer dvd.  File size about 7 GB.  Firstly, the encoding seems awfully slow.  PrE is the only program running and it is taking (4+) hours.  Looking at the task manager, PrE8 doesn't even seem to stress my system when encoding.  It is using only 2 cores with max 25% cpu utilization.  I have the affinity set to all cores and increased priority for the process to high with no difference.  This is no better than when I was using PrE4 to encode on my Duo-Core 2.8ghz, 4gb laptop.  I was hoping to save some time with encoding by building the new system but so far very disappointed.  Is it because PrE8 is poorly threaded or am I missing something.
    Ben

    Hi everyone,
    Thank you for your answers and suggestions.  I'll clarify / rephrase my question.  The program itself works.  Every device driver has been updated previously.  My issue is that PrE8.01 does not seem to use all / most of my system's resources when encoding / exporting a video.  I understand that having other programs / antivirus running, fragmented hard-drive (ssd scratch disk and fresh 2 TB Raid 10 drive), different codecs, size, etc. can bog a system down and use up resources but when it only uses 2 physical cpu cores (+2 virtual cores) of a quad core system and only at 25% utilization max of those two physical cores with everything running and I wait 4+ hours to encode a 7 GB collection of 720x480 avi's, I cannot help but wonder how much faster and time saving it would be if it used all 4 physical cores at 100% ulitization.
    My question is am I missing something in that it only uses a fraction of my system's resources instead of all that is available?  When you are working on your projects, is PrE8.01 using all your system's resources (100% utilization)?  I can understand PrE8.01 being slow if my system is old, bottlenecked, and struggling along at 100% resource utilization but that isn't the case.  Maybe PrE8 doesn't use more than 2 cpu cores?  But one would think it would at least stress those two cores a bit more than just 25%.
    Sincerely,
    Ben

  • Is there a free MySQL driver?

    Dear All,
    Thank you for your replies to my previous posting. I explored the JDBC resources site that was indicated. It appears that the drivers that are available for MySQL have to be paid for.
    I was under the impression that a JDBC driver for MySql would be free, especially since the database itself can be obtained for free under the GNU license. Did I miss something when I was looking?
    Adwait

    All of the JDBC(TM) 3.0 API, including both the
    java.sql and javax.sql packages, is bundled with the
    Java 2 Platform, Standard Edition, version 1.4
    (J2SE).
    Eh? What does that have to do with a JDBC driver for MySQL?

Maybe you are looking for