Cannot connect java to mysql server 2000

I was unable to connect to the mysql server 2000 with the jcreator.
The following exception was thrown:
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbs.StandardSocketFactory.connect<StandardSocketFactory.java:156?
at com.mysql.jdbc.MysqlIO.<init><MysqlIO.java:284>
** END NESTED EXCEPTION **
and the code i used was :
package com.stardeveloper.example;
import java.sql.*;
public class JCustomer {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///Customer", "user", " ");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
I donot have any user and pwd for the MYsql server, it is local host connection and window authentication is used.

eventhough it is local ,you may need to specify dns/localhost/ip with port number.
otherwise you can use myODBC driver which is freely available in mysql website. you can connect to the database using Data source Name, just like using any other ODBC connectivity.

Similar Messages

  • Can' t connect Java with MySQL

    My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
    SQLException: No suitable driver
    SQLState: 08001
    VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
    I don't believe that could be a reason.
    Installed versions are:
    Apache Tomcat 5.5.20 Server
    Apache HTTP Server 2.2.4
    PHP 5.2.0
    MySQL 5.2
    jre 1.5.0_11
    jdk1.5.0_11
    Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
    mysql-connector-java-5.0.4
    I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
    For installation I used manulas from:
    http://apacheguide.org/jsp.php
    http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
    Here is also a test code in java:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
       public class Connect
           public static void main (String[] args)
               Connection conn = null;
               try {
        conn =
           DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
                                       "user=monty&password=greatsqldb");
        // Do something with the Connection
    } catch (SQLException ex) {
        // handle any errors
        System.out.println("SQLException: " + ex.getMessage());
        System.out.println("SQLState: " + ex.getSQLState());
        System.out.println("VendorError: " + ex.getErrorCode());
       }i'm desperate, please help or tell me someone who'll know the answer.
    Thank You in advance

    hey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
    the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MySQLConnectionTest {
         public static void main(String[] args) {
    new MySQLConnectionTest().connTest();
    public void connTest() {
              String tableName = "portfolio"; //change as per setting
              String hostName = "10.81.9.39"; // please change for the target database ip or hostname
              String dbPort = "3306"; //change if not using the default
              String dbName = "tradingsystem"; //change as per the given DB name
              String username = "root"; //change as per setting
              String password = "password"; //change as per setting
              System.out.println("before try");
              Double data=0.0;
         Double data1=0.0;
              try {
    Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("before driver manager");
    Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
    String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
    System.out.println("quesry1="+query1);
    Statement stmt = conn.createStatement();
    ResultSet rs1 = stmt.executeQuery(query1);
    while(rs1.next())
         System.out.println("hiiiiii for rs1");
         System.out.println(rs1);
         Quantity=(Integer)rs1.getObject(5);
         MarketPrice=(Double) rs1.getObject(8);
         data=Quantity*MarketPrice;
         data1+=data;
         System.out.println("data1="+data1);
         i=0;
    rs1.close();
    stmt.close();
    conn.close();
    } catch (ClassNotFoundException e) {
    e.printStackTrace(System.err);
    } catch (SQLException e) {
    e.printStackTrace(System.err);
    i hope it will work for u...
    cheers,

  • "Can't connect to local MySQL server through socket '/tmp/mysql.sock'"

    Data Services=3.1
    Repository=12.2.2.0000
    Red Hat Enterprise 5
    Designer,Job Server,Job Engine=12.2.2.3
    After an unscheduled server reboot with DS up and running when trying to start a job in either Data Services Management Console or DS Designer getting the following:
    "Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
    The mysql.sock have never been in /tmp and on the production server it does not exist there and the production server is up and running correctly. If a link is created to mysql.sock(/home/user/boedge31/bobje/mysql) the job will start but return this message: 
    "Cannot retrieve <Version> from the repository. Additional database information: <SQL submitted to ODBC data source <localrepo> resulted in error <MySQL ODBC 3.51 Driver mysqld-5.0.46-enterprise No database selected>. The SQL submitted is <select VERSION, SECURITYKEY, GUID from AL_VERSION where NAME = 'Repository Version'"
    I checked and AL_VERSION and the Version field exist. 
    Before the shut down DS was working correctly and had no issues.  My best guess is a part of the repository was corrupted during the unscheduled shut down.  It seems like DS has "forgotten" some of the settings.  
    Any suggestions on a possible solution?

    The issue has been solved. 
    There was a bad path in $LD_LIBRARY_PATH.
    Removed the path and DS started working again.

  • Cant export worksheet when connected to MS SQL Server 2000

    SQL Developer version: 1.5.1
    Hello,
    I have a connection to an SQL Server 2000 database. I can select data with an "order by" clause but I receive an error when I attempt to do an "Export --> xls" on the worksheet data. I dont think this was a problem prior to SQL Developer 1.5.
    No export error occurs if the "order by" cluase is removed.
    Here is an example of a select stmt that generates the error.
    select LastName, FirstName, EmployeeID
    from northwind.dbo.employees
    order by LastName, FirstName
    Here are the error details:
    First dialog box error text: The ORDER BY clause is invalid in views, inline functions, derived tables, and subqueries, unless TOP is also specified.
    Second dialog box error text (after clicking Details button):
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.addColumnsToTree(ColumnPanel.java:85)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.showPanel(ColumnPanel.java:61)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.<init>(ColumnPanel.java:45)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.showPanels(TableExportAction.java:297)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launchDlg(TableExportAction.java:197)
         at oracle.dbtools.raptor.format.ui.ExportContextMenuListener$1.actionPerformed(ExportContextMenuListener.java:137)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    The table selected from is not a view, inline function, derived table, or subquery (as the error suggests). I can work around the problem by adding "TOP nnnn" to the select statement but this shouldn't be required.
    Any suggestions?
    Thanks.

    I confirmed that this is not a problem in SQL Developer 1.2.1.32.13. It started with 1.5. In 1.5.1.5540 I can successfully run the query and see the output in the Results tab. Only the Export has the error.

  • Cannot connect to the Administration server?

    I just installed Hyperion 11.1.2 in Windows 2008, and I'm sure the essbase server is started because I can connect by MaxL, and I can see the Administration server service is started because I can see it in the service list. But When I want to login ADM, error messageL "Cannot connect to the Administration server", please advise?
    Error: java.lang.UnsatisfiedLinkError: no environmentjni in java.library.path
    java.lang.NoClassDefFoundError: com/essbase/eas/utils/Environment
    Error detail:
    2010-04-23T23:24:59.576-04:00] [EssbaseAdminServices0] [WARNING] [] [oracle.epm.essbase.eas] [tid: 11] [userId: <anonymous>] [ecid: 0000IWhqB6yDwWWFLzNM8A1BoaI7000000,0] [APP: EAS#11.1.2.0] java.library.path=E:\Oracle\Middleware\user_projects\domains\EPMSystem\bin;.;C:\Windows\system32;C:\Windows;E:\Oracle\Middleware\jrockit_160_14_R27.6.5-32\jre\bin;E:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\native;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;E:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;E:\Oracle\MIDDLE~1\JROCKI~1.5-3\jre\bin;E:\Oracle\MIDDLE~1\JROCKI~1.5-3\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\server\bin;E:\Oracle\Middleware\EPMSystem11R1\common\config\11.1.2.0;E:\Oracle\Middleware\EPMSystem11R1\common\CSS\11.1.2.0\bin;E:\Oracle\Middleware\EPMSystem11R1\common\SAP\bin;E:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC\11.1.2.0\bin;E:\Oracle\Middleware\EPMSystem11R1\common\JRE\Sun\1.6.0\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient;D:\app\serv_hyperion\product\11.2.0\client_1\bin;D:\app\serv_hyperion\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;E:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0;E:\Oracle\Middleware\EPMSystem11R1\common\ODBC-64\Merant\6.0\Drivers;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\console\bin;E:\Oracle\Middleware\EPMSystem11R1\products\FinancialManagement\Common;E:\Oracle\Middleware\EPMSystem11R1\products\FinancialManagement\Client;E:\Oracle\Middleware\EPMSystem11R1\products\FinancialManagement\Server;E:\Oracle\Middleware\ohs\bin;E:\Oracle\Middleware\ohs\opmn\bin;E:\Oracle\Middleware\ohs\opmn\lib;E:\Oracle\Middleware\ohs\perl\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin\SQR\Activator\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin\SQR\Viewer\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\lib;E:\OraHome_1\oracledq\tsq11r5s\Software;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem;D:\app\serv_hyperion\product\11.2.0\dbhome_1\BIN;D:\app\serv_hyperion\product\11.2.0\client_1\BIN;E:\Oracle\Middleware\EPMSystem11R1\BIN;E:\Oracle\Middleware\EPMSystem11R1\common\CSS\11.1.2.0\bin;E:\Oracle\Middleware\EPMSystem11R1\common\ODBC-64\Merant\6.0\Drivers;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\console\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\server\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin;E:\OraHome_1\oracledq\tsq11r5s\Software;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem;D:\app\serv_hyperion\product\11.2.0\dbhome_1\BIN;D:\app\serv_hyperion\product\11.2.0\client_1\BIN;E:\Oracle\Middleware\EPMSystem11R1\BIN;E:\Oracle\Middleware\EPMSystem11R1\common\CSS\11.1.2.0\bin;E:\Oracle\Middleware\EPMSystem11R1\common\ODBC-64\Merant\6.0\Drivers;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\console\bin;E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas\server\bin;E:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    [2010-04-23T23:24:59.576-04:00] [EssbaseAdminServices0] [ERROR] [ESSEAS-00100] [oracle.epm.essbase.eas] [tid: 11] [userId: <anonymous>] [ecid: 0000IWhqB6yDwWWFLzNM8A1BoaI7000000,0] [APP: EAS#11.1.2.0] Unknown error occurred. See below stack trace for details[[
    java.lang.UnsatisfiedLinkError: no environmentjni in java.library.path
    Edited by: user2571802 on May 8, 2010 2:01 PM
    Edited by: user2571802 on May 8, 2010 6:52 PM

    I too am getting the same error. When i click the validate 'Validate essbase connection' on the application wizard page, I get a blank page saying 'An errror occured'. I stop the planning service and restarted it from Start button. This time I got the error message
    [ERROR] [HspCreateDatasource] - Servlet.service() for servlet HspCreateDatasourc
    e threw exception <java.lang.UnsatisfiedLinkError: no HspEssbaseEnv in java.libr
    ary.path>java.lang.UnsatisfiedLinkError: no HspEssbaseEnv in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseEnv.<clinit>(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseJniOlap.<clinit>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.TestEssConnection(Unknown Source)
    at HspCreateDatasource.doCheckEssbaseConnection(Unknown Source)
    at HspCreateDatasource.doHandle(Unknown Source)
    at HspCreateDatasource.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

  • No trusted certificate found (91);Cannot connect to the LDAP server

    HI All,
    I am trying to connect to LDAP server with the following code.
    JSSESocketFactory fact = null;
    private LDAPConnection conn = null;
    String keystore = "C:\\j2sdk1.4.2_15\\jre\\lib\\security\\cacerts";
    System.setProperty("javax.net.ssl.trustStore",keystore);
    fact = new JSSESocketFactory(null);
    conn = new LDAPConnection(fact);
    int ldapVersion = 3;//LDAPConnection.LDAP_V3; //defualt values of LDAP settings
    private int ldapPort = 636;
    LDAPAttributeSet ldapAtrbSet;
    String ldapHost;
    String loginDN;
    String loginDN_Password;
    And it is gicving me error :
    Error: netscape.ldap.LDAPException: SSL connection to 192.168.10.8:636, sun.security.validator.ValidatorException: No trusted certificate found (91); Cannot connect to the LDAP server
    netscape.ldap.LDAPException: SSL connection to 192.168.10.8:636, sun.security.validator.ValidatorException: No trusted certificate found (91); Cannot connect to the LDAP server
         at netscape.ldap.factory.JSSESocketFactory.makeSocket(JSSESocketFactory.java:105)
         at netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:418)
         at netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:350)
         at netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:244)
         at netscape.ldap.LDAPConnSetupMgr.openConnection(LDAPConnSetupMgr.java:170)
         at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1042)
         at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:924)
         at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:768)
         at com.reflexis.LDAP.LdapTestSSL.createConnection(LdapTestSSL.java:522)
         at com.reflexis.LDAP.LdapTestSSL.checkLdap(LdapTestSSL.java:118)
         at com.reflexis.LDAP.LdapTestSSL.main(LdapTestSSL.java:52)
    Unable to connect to LDAP server
    I have imported atr certificate also by using command:
    "keytool -import -alias jag -file c:\x225.cer -keystore c:\j
    2sdk1.4.2_15\jre\lib\security\cacerts"
    I am running my java code from eclipse. And do i have to set any thing in eclipse for certificate. I Have imported certificate from command prompt.
    Can any one please help me.It is very important for me.
    Please its very urgent.
    THanks,
    Ankush Patni

    As previously said network is a possible cause.Other things could be time on filer is too far off time on DC.AD object for filer has been deleted or change by a Windows admin.If all users are experiencing a problem, you may need to rebind it to AD - run CIFS setup at command prompt

  • Cannot connect to service: sess_iiop://server:2481:orcl

    Hello everybody,
    I am trying to run Sample code HelloWorld to deploy session beans but getting this error Cannot connect to service: sess_iiop://server:2481:orcl.
    Even sess_sh command giving the same error,how to configure iiop on client side.
    I am doing everything acorrding to http://technet.oracle.com/sample_code/tech/java/ejb_corba/files/orderentry/EJBDirections.PDF
    Using JDeveloper is also giving the same error UNKNOWN_SERVICE
    Pls Can Any from u help me to solve this problem any version 815,816,817,9i,9ias.
    Mangesh

    for usability, performance reasons, as of 9i DB R2 we are discontinuing J2EE and CORBA stack support from within the database
    EJBs should be deployed rather in iAS/OC4J - I won't get cycles from dev team to debug EJB in Database - unless it is a high priority/production system then customer should file a bug
    Kuassi
    Hi folks,
    we have the same problem! We can connect with sess_sh to the Oracle9i system but we get the exception
    javax.naming.CommunicationException: Unbekannter Dienst: 192.168.2.150:2481:rdrsl
    while looking for the EJB from a java client.
    We really need help!
    Thx.

  • MySQL problem -- ERROR 2002 Can't connect to local MySQL server

    Not Sure if this would be a right forum for my problem...
    I'm installing mySQL on my iBook, and thought that I have configured it. But then, after followring some instuctions from Adobe and Marc Liyanage sites, I have a problem to connect. This is what I've done in "TERMINAL"
    ~username$> cd /usr/local/mysql
    mysql ~username$> sudo chown -R mysql data/
    (asking for admin password)
    mysql ~username$> sudo echo
    mysql ~username$> sudo ./bin/mysqld_safe &
    username-ibook-g4:/usr/local/mysql username$ Starting mysqld daemon with databases from /usr/local/mysql/data
    STOPPING server from pid file /usr/local/mysql/data/roshaili-osmans-ibook-g4.local.pid
    060611 16:31:30 mysqld ended
    mysql ~username> /usr/local/mysql/bin/mysql test
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    [1]+ Done sudo ./bin/mysqld_safe
    mysql ~username>
    When I typed ::
    /usr/local/mysql/bin/mysqladmin -u root
    (see that there's no password)
    Then it displays:
    /usr/local/mysql/bin/mysqladmin Ver 8.41 Distrib 5.0.22, for apple-darwin8.6.0 on powerpc
    Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license
    Administration program for the mysqld daemon.
    Usage: /usr/local/mysql/bin/mysqladmin [OPTIONS] command command....
    -c, --count=# Number of iterations to make. This works with -i
    (--sleep) only.
    ...... bla bla bla.....
    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    count 0
    force FALSE
    compress FALSE
    character-sets-dir (No default value)
    default-character-set (No default value)
    host (No default value)
    port 0
    .........bla bla....
    ping Check if mysqld is alive
    processlist Show list of active threads in server
    reload Reload grant tables
    refresh Flush all tables and close and open logfiles
    shutdown Take server down
    status Gives a short status message from the server
    start-slave Start slave
    stop-slave Stop slave
    variables Prints variables available
    version Get version info from server
    roshaili-osmans-ibook-g4:~ roshailiosman$ >
    -----------------finish-----------------
    Does that mean that I'm connected to mySQL?
    Does anybody how to connect to MYSQL from the terminal? Thanks.
    iMac Mac OS X (10.4.6)
    iMac   Mac OS X (10.4.6)  

    Your biggest 'issue' right now is that your mysqld process is stopping on you -- making a connection impossible.
    Why it's bombing might be in a log .. try in mysql/data/usr.local.err .. and fix why itsbombing.
    To connect to it it'll be : mysql -u root -ppassword -D database

  • MySQL System DSN: Host is not allowed to connect to this MySQL Server

    Hi all,
    I'm creating a FileMaker database to keep track of support and to-do items, for a large forum-site I'm managing here in Denmark.
    The site runs on our webhosts servers, but I have a MacMini server we use for development. I'd like to connect the MacMini's MySQL server to FileMaker, and have purchased Actuals ODBC pack witch works great. I can connect to the MySQL server on the MacMini via Navicat, by enabling an SHH Tunnel.
    When trying to create a System DSN via the Actual ODBC drivers, to connect to the MacMini, I get this error:
    Link to screenshot: http://img.skitch.com/20100104-82xe6j7x9b8cjmj357t33p9sb1.png
    The one very strange thing is, that the Mac I'm trying to connect from, is at 192.168.1.15 and not 10.0.0.5! The MacMini is at 10.0.0.2 so it makes no sense what so ever, and as I said, I can connect fine to 10.0.0.2 via Navicat, even though it only works when I enable SSH Tunneling.
    But of course the Actual ODBC (or any for that matter?!) drivers does not support creating an SSH Tunnel, so I need to be able to connect directly to the MacMini's SQL-server, but when I try I get the above error.
    Port 3306 IS open on the server, so I must be overlooking something obvious. I've tried to change the socket when setting up the System DSN to /var/mysql/mysql.sock or /var/mysql but that changes nothing.Ohh yeah, that is ignored for remote servers by the way!
    Can anyone help? How do you guys setup your System DSN to a Mac-server with Snow Leopard Server on it?
    Thank you so much in advance
    Thomas
    PS: I can connect fine to our Webhosts MySQL server with the Actual Drivers, but to decrease load on that server, I'd like to get the data for the FileMaker Support Database from our development-server instead!

    bump
    Anyone got an idea on this? If I've posted in the wrong forum, please advise, because I was a little in doubt as to where this was to be placed

  • I installed adobe digital editions but when I want to authorize a device (an e-reader) it doesn't work, I receive an error message that digital editions cannot connect with the activation server. what can I do?

    I installed adobe digital editions but when I want to authorize a device (an e-reader) it doesn't work, I receive an error message that digital editions cannot connect with the activation server. what can I do?

    Please quote the exact error message, word-for-word, verbatim.
    What is your operating system?
    What version of Lightroom?

  • Acrobat cannot connect to the Review Server

    I've been invited to a shared review on Acrobat.com. When I download and open the PDF from the Acrobat.com invitation email, I get this error message:
    Acrobat cannot connect to the Review Server: Adobe online services.
    If I click the "Check for new comments" button in the upper right corner, I get this message:
    Could not get new comments. Acrobat did not get a response from the server. Try again later or contact your system administrator.
    I can't see other reviewers' comments and can't post my own. I'm definitely online and connected, so not sure what's happening, but have had this error for several weeks now.
    My system: 
    Acrobat XI Pro
    MacBook Pro OS X 10.8.5
    Safari browser 6.0.5
    My Creative Cloud desktop app says Acrobat XI is up to date. I also have Photoshop CC installed.
    I've tried logging into Acrobat.com with my Adobe ID before and after opening the PDF, nothing works. Also tried clearing my cache. Is there something in my Acrobat preferences that could be the issue? 
    Please help.
    Thanks,
    Mark

    I am having a similar problem. The review was set up as a test. All our PC colleagues can access as normal. Our 2 Mac machines are not having luck.
    Acrobat 10.1.8 Pro
    Macbookpro OSX 10.8.5
    Error: Could not get new comments. Acrobat did not get a response from the server. Try again later or contact your system administrator.
    Could not get new comments. Acrobat did not get a response from the server. Try again later or contact your system administrator.
    I'm guessing maybe a proxy issue?... what protocol/port is acrobat tryng to use?
    (I tried process above with no luck)

  • Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'

    I'm using the pre-installed versions of php and mysql under Mac OS X Server 10.4.4 running on a G4 and am unable to get anything involving mysql to work.
    I ssh to the server and enter various commands in Terminal:
    on typing "mysql" I get
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
    and on typing "mysqladmin version" I get
    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
    On typing "sudo mysqld_safe" I get
    Starting mysqld daemon with databases from /var/mysql
    STOPPING server from pid file /var/mysql/MyServer.local.pid
    070722 16:06:05 mysqld ended
    /var/mysql/MyServer.local.err contains
    070722 16:06:04 mysqld started
    070722 16:06:04 [Warning] Setting lowercase_tablenames=2 because file system for /var/mysql/ is case insensitive
    070722 16:06:04 InnoDB: Database was not shut down normally!
    InnoDB: Starting crash recovery.
    InnoDB: Reading tablespace information from the .ibd files...
    InnoDB: Restoring possible half-written data pages from the doublewrite
    InnoDB: buffer...
    070722 16:06:05 InnoDB: Starting log scan based on checkpoint at
    InnoDB: log sequence number 0 43634.
    /var/mysql has permissions 775.
    The line
    mysql.default_socket = /var/mysql/mysql.sock
    is in /etc/php.ini
    whereis mysqladmin ->
    /usr/bin/mysqladmin
    whereis mysql ->
    /usr/bin/mysql
    ls /var/mysql ->
    MyServer.local.err
    ib_logfile1
    mysql
    ib_logfile0
    ibdata1
    test
    Can't find my.cnf or my.ini anywhere
    Can't find mysql.sock anywhere
    I'm trying to get a bug database running (mantis) under Mac OS X Server 10.4.4 that I can access from local clients.
    I'm trying to follow directions at http://www.mantisbugtracker.com/manual/manual.installation.php
    without knowing anything about mysql or php and I'm stuck on step 3:
    "Next we will create the necessary database tables and a basic configuration
    file."
    I get a message saying
    "Does administrative user have access to the database? ( Lost connection to MySQL server during query )"
    I don't even know if following the mantis directions has resulted in the creation of a database or not. Where would it be?
    Thanks for any help.
    Intel iMac   Mac OS X (10.4.10)  

    I've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
    The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
    e.g.
    cd /var
    sudo mkdir mysql <== this assumes the directory is missing
    cd mysql
    sudo ln -s /private/tmp/mysql.sock mysql.sock
    After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
    HTH
    Christian

  • TS1717 I have older version of itunes on Windows Vista, when i check for updates it states it cannot connect to itunes update server even though i am connected to the internet, i have an iphone that has songs in the cloud and i wan to add them to my libra

    I have older version of itunes on Windows Vista, when i check for updates it states it cannot connect to itunes update server even though i am connected to the internet, i have an iphone that has songs in the cloud and i want to add them to my library?

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • Cannot connect to the report server

    I try to submit a report using RWCLIENT (see below), but getting the error:
    "REP-0178 Cannot connect to the report server 'rep_M2003-056DVM_ora10gas' "
    If I use URL, the report runs fine.
    Please advise.
    Thanks,
    Dmitri
    C:\OraDev10g\BIN\rwclient userid=user/password@database module=txr1020 batch=yes paramform=no DESTYPE=LOCALFILE desformat=pdf desname="M:\txr1020.pdf" AUTHID=ias_admin/iasadmin1 server=repser

    We have Reports 10.1.2.
    RWCLIENT (10g iDS) is installed on different machine.
    On OracleAS I have started the Naming Service: namingservice.bat 14021
    On client I updated the rwnetwork.conf with OracleAS hostname and 14021.
    What is wrong? Maybe I need to start Naming Service using OPMN for report server to register.
    Thanks.

  • ICloud says it cannot connect me to the server

    I have lost the phone numbers in my contacts on my iphone 4S. I figured that using iCloud from my PC I would be able to recover them. When I try to sign in to iCloud from my PC, I get a message saying that it cannot connect me to the server. I can tell that my iCloud password on my phone is not correct but when I correct it, it reverts back to the old one. I can't figure out how to save it,and its the only thing I can see that might be preventing me access. I downloaded the latest version of iOS to see if that would help and it didn't. Any ideas?

    I'm getting the same thing. I JUST bought mine too...
    I was immediately sold once I played with it at the Apple Store but they forget to warn you there's a lot of setting up.
    I'm tempted to go to an Apple store and tell them, I just wanna walk into my local coffee shop and be able to use their free wifi... what are the steps I need to take?
    With my laptop all I have to do is turn on the airport and then I'm on the internet... with the iPod Touch seems like you have to go through **** and back - I started doing research on troubleshooting with iPod Touch, even called a person at the Apple store and then I see all these posts of routers, IP addresses, DCHP, reset settings and it's REALLY REALLY confusing for someone who's not that computer savvy - I thought Apple was user friendly. I really hope it's not that hard.
    If you find results, please let me know. I've gone cross eyed from reading too much about this somewhat simple yet extremely complicated device.

Maybe you are looking for