Localhost & Mysql problem

Hello!
I have a problem... and I dont know if this is the place to post it, if not please tell me where.
I installed MySQL 5.1 and been working with it fine just some small warning messages as mcrypt erro which i dont know how to fix buthasnt been much of a problem.
The biggest issue i have and cant seem to fix is when i am trying to install bugzilla, i run .checksetup.pl
I get the following
dyld: lazy symbol binding failed: Symbol not found: mysql_serverinit
Referenced from: /Users/mmoscosa/Sites/Bugzilla/lib/darwin-thread-multi-2level/auto/DBD/mysql/my sql.bundle
Expected in: dynamic lookup
dyld: Symbol not found: mysql_serverinit
Referenced from: /Users/mmoscosa/Sites/Bugzilla/lib/darwin-thread-multi-2level/auto/DBD/mysql/my sql.bundle
Expected in: dynamic lookup
any idea?!
thanx

i am not having this trouble. i can connect to a mysql database running on my machine through 127.0.0.1 or localhost but not through using my machine name or actual ip.
in the user table in the mysql database i have the host for the user i am using set as 'localhost'. i also tested using 127.0.0.1 either way the other than works for me. what do you have in that table for the user?

Similar Messages

  • JAVA with MYSQL problem

    i am using jdk1.6.0_02,apache tomcat 5.5.23 ,mysql integrated with redhat linux EE 4 and.mysql connector java 5.0.7.bin.jar.
    look at the the following java program
    import java.sql.*;
    public class TestMysql
    public static void main(String args[])
    try
    String driver = "com.mysql.jdbc.Driver";
    Class.forName( driver );
    String url = "jdbc:mysql://localhost/test";
    DriverManager.getConnection( url, "root", "mysql" );
    catch( Exception x )
    {      x.printStackTrace();
    i got the following exception
    java.sql.SQLException: Access denied for user 'root'@'localhost.localdomain' (us *** password:
    YES)
    at com.mysql.jdbc.SQLError.createSQLException(java.lang.String, java.lang.Str ***, int)
    (Unknown Source)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(int) (Unknown Source)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket() (Unknown Source)
    at com.mysql.jdbc.MysqlIO.secureAuth411(com.mysql.jdbc.Buffer, int, java.lang .String,
    java.lang.String, java.lang.String, boolean) (Unknown Source)
    at com.mysql.jdbc.MysqlIO.doHandshake(java.lang.String, java.lang.String, jav a.lang.String)
    (Unknown Source)
    at com.mysql.jdbc.Connection.createNewIO(boolean) (Unknown Source)
    at com.mysql.jdbc.Connection.Connection(java.lang.String, int, java.util.Prop erties,
    java.lang.String, java.lang.String) (Unknown Source)
    at com.mysql.jdbc.NonRegisteringDriver.connect(java.lang.String, java.util.Pr operties)
    (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Propertie s)
    (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, j
    ava.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at Connect.main(java.lang.String[]) (Unknown Source)
    access denied problem. but the user name and password are correct. i can login to mysql by using
    the same username and password.
    but when connecting through java , i can't ? what is the problem?
    can u help me.?
    actually i am working in JSP. and when i got this problem, i created a small java program for testing.
    here i am submitting the java program.

    friend please put your code inside
       // your code goes here  it will more readable and other can solve it better.
    ==================
    and your problem tells that you must set access permission inside
    mySQL server.
    or try with creating new User with password.
    EnJOY.
    Ghanshyam
    Edited by: Ghanshyam on Sep 28, 2007 4:13 PM

  • Mysql problem with german special characters

    hi,
    I wrote a software and it worked quite good, but after I installed it on a new machine with j2se 1.4 I've problems with the german special characters.
    this code works good on the old machine (jdk 1.3.1) and prints the wanted characters like �,�,�.
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    java.sql.Connection conn;
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx");
    Statement s = conn.createStatement();
    ResultSet r = s.executeQuery("select something from testtb where id='1'");
    r.first();
    System.out.println( r.getString(1) );
    but on the new machine (j2se 1.4) I only receive the character ?.
    I updated my org.gjt.mm.mysql to the current MySQL Connector/J 3.0.9 and added
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx&useUnicode=true&characterEncoding=ISO-8859-1");
    but I've got still the same problem.
    Thanks in advance
    Markus

    with "wanted characters like �,�,�"
    I meant: like ä,ü,ö

  • JDBC Java- mysql problem help!

    Hi, I wnat to connect to mySQL fromo Java, I followed all the instructions from the mySql web page, yet I havent been able to do it, when I compile the java progrm I keep getting class not found exceptions, I am using Fedora Core and Java was already installed-well I chose to install it when I installed the operating system, the point is that the paths are all assigned by he system not by me.
    WHat can I do?, Ive been trying over andover again with no results, hopefully somebody can help, I tried to include all the configuration in this email,
    thank you
    my java program is the following:
    t.java
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class t {
    public static void main (String[] args) {
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    when I javac t.java
    I have the following error
    4. ERROR in t.java
    (at line 11)
    Class.forName("com.mysql.jdbc.Driver");
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Unhandled exception type ClassNotFoundException
    when I comment out the Class.forName the hello world rogram runs fine
    when I vi /etc/java java.conf this is the result
    # System-wide Java configuration file -- sh --
    # JPackage Project [www.jpackage.org]
    # Location of jar files on the system
    JAVA_LIBDIR=/usr/share/java
    # Location of arch-specific jar files on the system
    JNI_LIBDIR=/usr/lib/java
    # Root of all JVM installations
    JVM_ROOT=/usr/lib/jvm
    # You can define a system-wide JVM root here if you're not using the default one#JAVA_HOME=$JVM_ROOT/java-gcj
    # Options to pass to the java interpreter
    JAVACMD_OPTS=
    ~
    [root@localhost test]# echo $PATH
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    echo $JAVA_HOME
    it contains nothing
    ls /usr/share java*
    java
    java-1.3.0
    java-1.4.0
    java-1.4.1
    java-1.4.2
    java-1.5.0
    javadoc
    java-ext
    java-utils
    mysql-connector-java-3.1.13-bin.jar is under
    /usr/share/java
    in /etc/profile I have:
    export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java-3.1.13-bin.jar
    in /root/.bash_profile i have
    CLASSPATH=/usr/share/java/mysql-connector-java-3.1.13-bin.jar:/usr/lib/java-ext/mysql-connector/mysql-connector-java-3.1.13-bin.jar
    export CLASSPATH
    when I echo $PATH i have
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    Thanks duff,
    The driver seems to be found
    when I run
    public class t {
    public static void main (String[] args) {
    try
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    System.out.println("MySQL Driver Found");
    catch (ClassNotFoundException e)
    System.out.println("MySQL Driver NOT Found");
    e.printStackTrace();
    I feel somehow ive been focusing in the wrong side of the problem due to my ignorance in Java. Please help me to understand, the reson for which ithe runtime was telling me that there was an unhandled exception was because it is a requirement to handle all exceptions of this kind? why wouldnt it cmplain if I jst did the hello world without any exception handling, maybe because it is a requirement in the Class.forName...
    the other question is, is the message I was obtaining completely independent of the fact that the class was or was not found?
    Maybe, I should go with these questions to the newbies forum...
    thanks

  • Tomcat / MySQL problem

    Simple Tomcat / MySQL code works well on the development server (Windows) but crashes on the production server (Linux).
    It finds and loads the driver, then fails to create a connection with
    java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)Driver is mysql-connector-java-3.0.14-production-bin.jar in ${catalina.home}/common/lib.
    MySQL is version 3.23.58.
    Tomcat version 4.1.29.
    Java version 1.4.2_02.
    Operating system is RedHat 9 with Plesk 7.
    This looks like a Tomcat security issue but catalina.policy grants all permissions to ${catalina.home}/common/lib/-.
    Granting specific permissions has made no difference:
    grant codeBase "file:${catalina.home}/common/lib/mysql-connector-java-3.0.14-production-bin.jar" {
      permission java.net.SocketPermission "localhost:3306", "listen,connect,accept,resolve";
    };The code is straight from the Java tutorial, presented three ways:
    1. in a bean, called from a JSP
    2. inline in a JSP
    3. in a JAR, as an executable class
    All of these work in Windows. Only No 3 works in Linux (which suggests the issue is not with Java security). Other JSP pages work fine.
    I have not found a MySQL driver preinstalled on the system. I first added mysql-connector-java-3.1.10-bin.jar but this failed because it could not read charset mappings. I have
    now reverted to mysql-connector-java-3.0.14-production-bin.jar. Adding the JAR in application/WEB-INF/lib does not help.
    I wonder if there is a class loader issue but I cannot find any other JARs that conflict.
    Could Tomcat be trying to connect on a different port? It makes no difference whether or not the port number (3306) is included in the URL.
    Granting permissions for IP addresses and domain names makes no difference (so far). Besides, the error message is specific about localhost.
    Can anyone help, please?
    Many thanks
    Robin

    Spot on! I am not at all clear whether the root cause of the problem is Tomcat, MySQL, Java or whatever ... Until I understand more, everything is suspect.
    I have been asking myself what can cause this Access denied / SocketPermission error?
    - mis-configuration of the permission: codebase, url, port ?
    - in the wrong policy file? catalina.policy or java.policy ?
    - faulty installation of something?
    - incompatible versions ?
    The code all works well on the development machine, which runs Windows 2000. Running it on the Linux machine causes problems.
    I do not have full control of the configuration of the Linux machine but I am able to restart Tomcat when needed.
    Some specific questions:
    I know from the stack trace which Java function is being called:
    java.sql.DriverManager.getConnection()The MySQL driver is checking for socket permission when it tries to get a connection and throws:
    java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) - How do I tell what parameters are being passed to getConnection() without installing the source code?
    - How do I tell for sure which policy file governs the check?
    Many thanks
    Robin

  • EJB 3.0 entity beans generation with MySql - problem

    Hi,
    I am using JDev 10.1.3 Production and using the EJB3.0 CMP wizard to generate the code from a MySQL database. No matter what type I specify for my database columns in schema, code generator always generates the properties of type String only. e.g if a column called Age is specified as Integer in schema, the generator generates setters/getters with String type.
    Can somebody please help me.
    Regards
    Vimal

    Hi,
    I'm experiencing same problems, is this a bug or an feature?

  • Apache2 local web server + Perl 5 + mysql problem

    this problem has been bugging me for some months; it's stopping me developing on my new MBP.
    I cannot connect to mysql 5.0.45 database when web sharing w/ Apache2 with either Perl 5.8 & Activeperl 5.10 cgi scripts on Mac OS X Leopard 10.5.2 & 10.5.3
    Although I can connect to the mysql DB when running the Perl scripts from the command line.
    The problem only occurs on my local web server in Mac OS X 10.5.2 & 10.5.3.
    On my old development Mac running 10.3 the code runs fine, as it also does on my remote site.
    server error log: Can't locate DBD/mysql.pm . . .
    I suspect there is a problem somewhere between Apache2, Perl & MySQL.
    Please advise.
    Sarpedon Jones
    Message was edited by: Sarpedon Jones

    I've got the same problem but It sounds like I've gotten farther. I was forced to do an emergency move of some Perl and PHP sites to 10.5.4 when our 10.4 web server refused to authenticate to AD anymore...
    Leopard's Apache/Perl support is terrible. There is not click to add option anymore so you have to manually set up mod_perl. No big deal but the first sign that there isn't reasonable support.
    The bigger issue is that Apple's Perl will not compile some modules.. namely DBD::mysql.
    Normally you'd use "cpan" to install the modules you need. The core module for connecting to a mysql database is DBD.. specifically DBD::mysql
    You should be able to run "cpan" or "cpanp" [cpan plus] to get a cpan interactive prompt. At this point you should be able to compile DBD by issuing either of the following:
    "install DBD::mysql" or
    "install Module DBD::mysql"
    I've tried this on two installs of OS X Server and that module (and others) will not compile on either system. One of my servers had been set up as a Wiki server before but the other had not been running any web services before I started using it as a test bed for my site move. (BTW these sites are unavailable until I can move them).
    There is another bug (noted on mysql's site) with Apple's version of cpan. If you try to add some modules, cpan will report that it needs to install a new, full version of Perl. The recommendation is to not do this, but rather force the install.. "install f DBD::mysql"
    Forcing the install is a questionable idea but it doesn't work anyway.
    I eventually did install perl 5.0.10 on the system in /usr/ and that does allow me to compile the needed Perl mods. However, the global @INC path has the old Perl paths listed so my perl CGIs will not use the new perl install.
    I'm sorry I don't have a solution. Hopefully my troubleshooting will elicit some more feedback.
    steven.

  • MySQL problem with 1and1 hosting

    I have just discovered this group.  I posted a similar post in the Dreamweaver area, but it probably needs to
    be here.
    I was asked to add database functionality to a website hosted by 1and1.  I just started to use DW CS5
    recently and when I tried to connect the MySQL db using Dreamweaver, I got the 404 file not found error
    message.  It has been a while since I have worked with PHP and MySQL, but I have used MySQL many times in the
    past using DW CS4 and using 1and1, so I know that it used to be possible.
    Here is what I have done so far:
    Tried to connect using DS CS5.  Tried to connect using DW CS4.  I contacted 1and1 and they told me that they
    no longer allow MySQL to connect using Dreamweaver.  However, they sell DWCS4 software to be used with their
    higher end hosting packages (which I am using).
    Here are my questions:
    1) Is this a known problem with 1and1?  If so, is the DW that they sell altered to get around this?
    2) Is this how other hosting companies are going, or is this only true of 1and1?

    RobertBoy wrote:
    Tried to connect using DS CS5.  Tried to connect using DW CS4.  I contacted 1and1 and they told me that they
    no longer allow MySQL to connect using Dreamweaver.
    This means that they disabled remote access to their MySQL server for security reasons, meaning that you´ll have to...
    1. set up a local testing server (eg. MAMP, XAMPP) and develop/test your work locally
    2. upload the finalized files to the remote server and run them from there.
    If so, is the DW that they sell altered to get around this?
    Unlikely, because the product EULA declares a "No Modification" restriction.
    Is this how other hosting companies are going, or is this only true of 1and1?
    This is not uncommon with shared hostings in particular, though there may be some which allow remote access. Let´s hope that other forum participants can provide recommendations.

  • Zend + FB + MySQL problem

    Hi all,
    I am trying to teach myself the Zend connection to my database with a simple FB4 example, but I can't get it to work at all. It may be something simple, but I can't for the life of me, see it.
    This is my MXML code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
              <s:ChannelSet id="zend_amf_channel_set">
                   <s:channels>
                        <s:AMFChannel uri="http://www.localhost/gateway.php"/>
                   </s:channels>
              </s:ChannelSet>
              <s:RemoteObject id="family_VO" destination="zend-amf" source="family"
                                  channelSet="{zend_amf_channel_set}"
                                  showBusyCursor="true"
                                  fault="membersError(event)">
                   <s:method name="getAllMembers" result="getAllMembersResult(event)"/>
              </s:RemoteObject>
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.events.ResultEvent;
                   //private const GATEWAY_URL:String = "c:\wamp\www\WilliamsFamily\gateway.php";
                   private var memberData:MemberData;
                   [Bindable]
                   private var lang_title:String = "My Attempt To Figure This Stuff Out!";
                   protected function getAllMembers():void
                        family_VO.getAllMembers;
                   protected function clearDataGrid():void
                        member_dg.dataProvider = {};     
                   protected function getAllMembersResult(e:ResultEvent):void
                        member_dg.dataProvider = e.result;
                   protected function membersError(e:FaultEvent):void
                        Alert.show(e.toString());
              ]]>
         </fx:Script>
         <s:VGroup   width="100%" horizontalAlign="center" paddingTop="25">
              <s:Label text ="{lang_title}" fontSize="20"/>
              <mx:DataGrid id="member_dg" height="100">
                   <mx:columns>
                        <mx:DataGridColumn headerText="ID" dataField="id" width="100"/>
                        <mx:DataGridColumn headerText="First Name" dataField="fname"/>
                        <mx:DataGridColumn headerText="Last Name" dataField="lname"/>
                        <mx:DataGridColumn headerText="Age" dataField="age"/>
                        <mx:DataGridColumn headerText="Gender" dataField="gender" width="200"/>
                   </mx:columns>
              </mx:DataGrid>
              <s:HGroup>
                   <s:Button label="Get Family Members" click="{getAllMembers();}"/>
                   <s:Button label="Clear" click="{clearDataGrid();}"/>
              </s:HGroup>
         </s:VGroup>
    </s:Application>
    The family.php
    <?php
    require_once 'MemberData.php';
    class Family
         public function __construct()
              mysql_connect("localhost", "root", "root");
              mysql_select_db("williamsfamily");
         public function getAllMembers()
              //Array of family members
              $members = array();
              //Select all fields from db table
              $result = mysql_query("SELECT * FROM family");
              //if successfuly, go through results
              while ($row = mysql_fetch_assoc($result))
                   //create family member value object and populate with values
                   $member = new MemberData();
                   $member->id = $row["id"];
                   $member->fname = $row["fname"];
                   $member->lname = $row["lname"];
                   $member->age = $row["age"];
                   $member->gender = $row["gender"];
                   array_push($members, $member);
         //return the array of family members to flex
         return $members;
    ?>
    MemberData.php
    <?php
    class MemberData
         public $id;
         public $fname;
         public $lname;
         public $age;
         public $gender;
    ?>
    gateway.php
    <?php
    $debug = true;
    if ($debug)
         error_reporting(E_ALL|E_STRICT);
         ini_set("display_errors", "on");
    else
         ini_set("display_errors", "off");
    require_once "Zend/Amf/Server.php";
    $server = new Zend_Amf_Server();
    require_once "family.php";
    $server->setClass("Family");
    $server->setClassMap("MemberData", "MemberData");
    echo($server->handle());
    ?>
    I was following a tutorial I found that seemed to explain the Zend+WAMP setup fairly well. I changed the php.ini include path to point to teh Zend/Library.
    It seems like I am not connecting to the database at all. Anyone see problems with the code?
    Thanks a million for the help!!

    Solved my own issue. The PDO wrapper is case sensitive when it comes to dealing with Oracle. Thus:
    class Equipment extends Zend_Db_Table
    protected $_name = 'EQUIPMENT;
    protected $_primary = 'ID';
    protected $_schema = 'ZZ';
    protected $_sequence = true;
    Nevertheless, I woul recommend staying away from the PDO wrapper and use standard oci functions.

  • JSP + JDBC + MySql Problem (Tomcat 4.1)

    I'm completely helpless... whenever I try to retrieve stuff from the db (using a jsp page), I get errors that don't even make sense.
    out.println(stmt.executeQuery("SELECT * FROM newsTbl WHERE articleID = 1").getString("articleTitle"));if I try doing the above, I get a "ServletException : Before start of result set" error that supposedly occurred at this line of the generated servlet:
    if (pageContext != null) pageContext.handlePageException(t);---------------
    If i try this:
    ResultSet rsSec = stmt.executeQuery("SELECT * FROM newsSecTbl");
    rsSec.beforeFirst();  //<-- Even if I don't have this line the result does not change
      out.println(rsSec.next());
      while (rsSec.next()) { ... }I the while loop is never initiated, because rsSec.next() is false... kind of weird if you ask me, I even put two entries into the table to make sure the cursor wasnt at the first record and saying there was no second one (which would have been right if there were only one record).
    I would be very grateful if someone could help me out with this. I've never done any db programming with Java yet, so I dont have a clue what Im doing. By the way, I'm using MySql (indicated in the title) and the server was running and available when I ran the above code.
    Cheers,
    Tom

    You can't do this:
    out.println(stmt.executeQuery("SELECT * FROM newsTbl WHERE articleID = 1").getString("articleTitle"));The ResultSet you get back is a database cursor that doesn't point to the first row yet. The correct idiom is:
    String sql = "SELECT * FROM newsTbl WHERE articleID = 1";
    ResultSet result = stmt.executeQuery(sql);
    String articleTitle = "";
    while (result.next())
       title = result.getString("articleTitle");
    result.close();
    stmt.close();If you've never done DB programming before, I'd recommend that you click on the Tutorials link to the left and go through the JDBC tutorial carefully. You'll save yourself a lot of grief.
    Another good idea would be to separate out all your database code into at least one separate object, independent of the servlet. That way you can test and develop it off to the side until it's 100% solid. Then your servlet can simply instantiate one and use it. All your problems from that point forward will be servlet issues, because you'll know that your database code is working. - MOD
    See if that works better. - MOD

  • JDBC/MySQL Problem

    Hello, I'm getting this error when trying to make a connection with MySQL:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\tomcat\work\localhost_8080\_0002fdb_0002ejspdb_jsp_10.java:62: Undefined variable or class name: DriverManager
         conn = DriverManager.getConnection("jdbc:mysql:numbers", "username", "password");
         ^
    1 error, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:536)
    Here's the code I'm using:
    <%
         Class.forName("org.gjt.mm.mysql.Driver").newInstance();
         java.sql.Connection conn;
         conn = DriverManager.getConnection("jdbc:mysql:numbers", "username", "password");
    %>
    If anyone knows how to fix this, I'd appreciate any help!

    Hi,
    Three things:
    1. I presume numbers refers to the prot you are accesaing mysql - i tend to use default 3306.
    2. If there are problems recognising DriverManagaer are you importing java.sql.*; I'm sure you are.
    3. I think the sun.tools.javac.Main error relates to the tools version that you are using, although I would not guarantee this. The tools.jar in later versions of tomcat is twice the size of earlier versions and you have to ensure this is the version that your application is checking for. A quick test for this is to put the newer version(size 74k) into WEB-INF \lib directory where an application looks first for complied java files.
    best,
    kev
    ps If I'm wrong completely, let me know as I am watching this topic

  • Mysql Problem [SOLVED]

    [raul@horus ~]$ cat /etc/my.cnf | grep skip
    skip-locking
    skip-networking
    [raul@horus ~]$ sudo /etc/rc.d/mysqld restart
    :: Stopping MySQL [DONE]
    :: Starting MySQL [DONE]
    [raul@horus ~]$ telnet localhost 3306
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection refused
    Last edited by raul_nds (2008-06-02 21:54:14)

    Hi rual_nds,
    not sure if this is what are you looking for but to connect to mysql --> http://dev.mysql.com/doc/refman/5.1/en/ … cting.html
    also be sure secure your initial msql account -> http://dev.mysql.com/doc/refman/5.0/en/ … leges.html
    hope that helps,
    -Vincent

  • Ancient MySQL problem, still unsolved

    For the longest time, I've had a strange problem with MySQL. Basically, after a certain amount of time--it could be a few days, or a couple weeks--its CPU usage will go from around 20% to 80%, with exactly the same load.
    If I shutdown MySQL and restart it, CPU load is back to normal. What could this be?
    ...Rene

    With some great help from the MySQL mailing list, I believe I've identified the problem, which is fundamental to Mac OS X's BSD UNIX layer: DNS lookups are not thread-safe in the version of BSD (5?) used by Mac OS X. The workaround is to add skip-name-resolve to my.cnf, and ensure that MySQL's GRANT tables use IPs instead of host names. Here's some resources on the topic, in case anyone else runs into this:
    http://jeremy.zawodny.com/blog/archives/000203.html
    http://bugs.mysql.com/bug.php?id=414
    http://www.mail-archive.com/[email protected]/msg87497.html
    http://lists.apple.com/archives/Opentransportdev/2001/Dec/msg00060.html
    ...Rene

  • Error 404 Mysql problem

    I created a database on my server through mysql and phpadmin
    but when I try to set up a connection through DW8 I get error 404.
    What am I supposed to be entering for these fields? Why am I geting
    this error?

    looksgood25 wrote:
    > I created a database on my server through mysql and
    phpadmin but when I try to
    > set up a connection through DW8 I get error 404. What am
    I supposed to be
    > entering for these fields? Why am I geting this error?
    HTML error 404 means that the page was not found. Dreamweaver
    uses a
    couple of files in a hidden folder called _mmServerScripts to
    communicate with MySQL. You're getting that error message
    because DW
    can't find that folder.
    When setting up the Testing folder in the site definition,
    the testing
    server folder must be in your web server's document root.
    Also the URL
    prefix must point to the same folder. Let's say your server
    root is
    C:\myserver_root\, if your site is in a subfolder called
    mysite, you
    need the following settings:
    Testing server folder: C:\myserver_root\mysite\
    URL prefix:
    http://localhost/mysite/
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Struts, hibernate, mysql problem

    I am using eclipse, struts, hibernate, mysql, tomcat to run my web application. When I try to run more than one application that using hibernate, then all the application will hang. I am only able to run one application at a time and keep changing the host in server.xml if I want to run other application that use hibernate.
    This problem occur only when I run more than one application that using hibernate. So is anyone know why does this happen??? help plx..........

    http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch13.html

Maybe you are looking for