LKM for MySQL Error

Hi,
Can someone help me please.
I am new to ODI and trying to work with it.
My source DB = MS SQL 2005 Server
Target DB = MySQL5.1
I created a new project and models. I have the physical and logical architecture and all the connections are working.
I brought a source table in the diagram ara and a target table(its a empty table in mysql)
for the source, the LKM is : LKM SQL to SQL
and for target lKM is : lKM SQL Append
I am able to execute fine, when I go to operator, in the Integration step, I get the below error:
1050 : 42S01 : com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'tbl_dim_store' already exists
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'tbl_dim_store' already exists
     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
     at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)
     at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.i(e.java)
     at com.sunopsis.dwg.cmd.g.y(g.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Unknown Source)
Can someone please help me. I have been trying to solve this error for more than a week now.
Thank you

Hi,
Yes, the create target table option was set to true and the target table exists in the target DB. So, I made the create target table option to default No. Now during execution it I see:
1) Drop table - done
2) create table - done
3) load data - done (but i dont see any data in the table)
*4) Integration - Fails with error:*
1064 : 42000 : com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from     testingodi.C$_0tbl_dim_store where          (1=1)' at line 1
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from     testingodi.C$_0tbl_dim_store where          (1=1)' at line 1
     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
     at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)
     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)
     at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.i(e.java)
     at com.sunopsis.dwg.cmd.g.y(g.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Unknown Source)
When I go the description column of step 4 I see the following:
insert into     testingodi.tbl_dim_store
     Store_Num,
     Order_Status,
     Store_Desc,
     Merch_Div_Num,
     Status,
     Status_Desc,
     Open_Date,
     Close_Date,
     Division_Num,
     Division,
     Region_Num,
     District_Num,
     Market_Area_Num,
     Market_Type,
     Ad_Area_Num,
     Ad_Area_Desc,
     Center_Desc,
     City,
     Zip_Code,
     State,
     Mgr_Name,
     FRP_Flag,
     LTA_Days,
     LTA_Ship_Day,
     PI_Inventory_Date,
     FLR_Flag,
     Add_DTime,
     UPD_DTime,
     UPD_User_ID,
     Replen_Type,
     Store_Phone,
     Square_Feet,
     Addr_Line1,
     Addr_Line2,
     Callout_Ind,
     Close_Reason_Code,
     County_Name,
     Demograph_Mkt_Seq,
     Fax,
     Fin_Dist_Num,
     Fin_Div_Num,
     Fin_Inventory_Date,
     Fixture_Type,
     FRP_Invntry_Date,
     Grand_Open_Date,
     Latitude,
     Linear_Ft,
     Longitude,
     Manual_Order_Date,
     Market_Locn_Code,
     Merch_Dist_Num,
     Office_Phone,
     On_Hand_Upd_Date,
     Open_Code,
     Proj_Sales_Amt,
     Project_Code,
     Prototype_Ind,
     Remodel_Date,
     Sales_Qty,
     San_ID,
     Sign_Color,
     Time_Card_Code,
     Trade_Convsn_Num,
     Vacate_Date,
     Vol_Class_Code,
     Wage_Plan_Code,
     Zip_Code_Ext,
     PI_Schedule_Date,
     PI_Music_Inv_Date,
     PI_Music_Schd_Date,
     Last_Modified_Date
select     
     C1_STORE_NUM,
     C2_ORDER_STATUS,
     C3_STORE_DESC,
     C4_MERCH_DIV_NUM,
     C5_STATUS,
     C6_STATUS_DESC,
     C7_OPEN_DATE,
     C8_CLOSE_DATE,
     C9_DIVISION_NUM,
     C10_DIVISION,
     C11_REGION_NUM,
     C12_DISTRICT_NUM,
     C13_MARKET_AREA_NUM,
     C14_MARKET_TYPE,
     C15_AD_AREA_NUM,
     C16_AD_AREA_DESC,
     C17_CENTER_DESC,
     C18_CITY,
     C19_ZIP_CODE,
     C20_STATE,
     C21_MGR_NAME,
     C22_FRP_FLAG,
     C23_LTA_DAYS,
     C24_LTA_SHIP_DAY,
     C25_PI_INVENTORY_DATE,
     C26_FLR_FLAG,
     C27_ADD_DTIME,
     C28_UPD_DTIME,
     C29_UPD_USER_ID,
     C30_REPLEN_TYPE,
     C31_STORE_PHONE,
     C32_SQUARE_FEET,
     C33_ADDR_LINE1,
     C34_ADDR_LINE2,
     C35_CALLOUT_IND,
     C36_CLOSE_REASON_CODE,
     C37_COUNTY_NAME,
     C38_DEMOGRAPH_MKT_SEQ,
     C39_FAX,
     C40_FIN_DIST_NUM,
     C41_FIN_DIV_NUM,
     C42_FIN_INVENTORY_DATE,
     C43_FIXTURE_TYPE,
     C44_FRP_INVNTRY_DATE,
     C45_GRAND_OPEN_DATE,
     C46_LATITUDE,
     C47_LINEAR_FT,
     C48_LONGITUDE,
     C49_MANUAL_ORDER_DATE,
     C50_MARKET_LOCN_CODE,
     C51_MERCH_DIST_NUM,
     C52_OFFICE_PHONE,
     C53_ON_HAND_UPD_DATE,
     C54_OPEN_CODE,
     C55_PROJ_SALES_AMT,
     C56_PROJECT_CODE,
     C57_PROTOTYPE_IND,
     C58_REMODEL_DATE,
     C59_SALES_QTY,
     C60_SAN_ID,
     C61_SIGN_COLOR,
     C62_TIME_CARD_CODE,
     C63_TRADE_CONVSN_NUM,
     C64_VACATE_DATE,
     C65_VOL_CLASS_CODE,
     C66_WAGE_PLAN_CODE,
     C67_ZIP_CODE_EXT,
     C68_PI_SCHEDULE_DATE,
     C69_PI_MUSIC_INV_DATE,
     C70_PI_MUSIC_SCHD_DATE,
from     testingodi.C$_0tbl_dim_store
where     
     (1=1)
There is a "," before from clause. I am not sure how it came, but I tried to manually delete it here and restart session, it still fails.
Please help me understand and solve the problem.
Thank you.

Similar Messages

  • Import SQL Table's Metadata Error for MySQL

    I am following this blog by William Li.
    SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata - SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata
    I am using MySQL database instead.
    Connection to the database is fine because we get to choose the tables in the schema.
    When I am importing the Table Definition in Enterprise Service Builder,
    I am getting this error
    Serialized cause: com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload. Error when calling an adapter by using the communication channel CC_JDBCLookUp (Party: , Service: PT1_BC, Object ID: b088d4ef332833a89ee816faa88b5089) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error processing request in sax parser: Error when executing statement for table/stored proc. 'metadataRequest' (structure 'statement'): com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"lookuptable" WHERE 1 < 0' at line 1'.
    Any ideas for this error?

    HI,
         I have a problem trying to connect a MySQL Database, I'm using the mysql-connector-java-5.0.6-bin.jar library that I download from the MySQL Site.
         These are may connection parameters:
             JDBC Driver:  com.mysql.jdbc.Driver
             Connection:     jdbc:mysql://172.16.125.11:3306/gcctea
         If you have any idea...
    Regards,
    Luis E. Diego

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • Problems using Quick Migrate in SQL Developer 1.5 for MySQL to Oracle 10g

    Hi all,
    I am trying to use SQL Developer 1.5 migration tools (Quick Migrate) to perform online capture and build source model to migrate from MySQL 5.x to Oracle 10g on Windows platform. I get these errors and the Quick Migrate process fails:
    oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
    I did a search and used the sqldeveloper.cmd script but still fails. Then I created a new database and truncated the repository. I now get the above error plus two new ones listed below:
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    Error loading nls:OALL8 is in an inconsistent state
    Error occurred during capture: Protocol violation
    It fails during the capture process for MySQL 5.1 database
    when it begins to capture the tables from MySQL.
    Does anyone know how to resolve these issues when migrating from MySQL to Oracle 10g using Quick Migrate with SQL Developer 1.5 release?
    Regards,
    Ben Prusinski
    Message was edited by:
    benprusinski
    Message was edited by:
    benprusinski

    Hi all,
    I put the following in my sqldeveloper.cmd file:
    SET ORACLE_HOME=%CD%
    What is very confusing is that with SQL Developer 1.5, there are several levels and several SQL Developer executables! I am really not sure which of these to use:
    I created the SQLDeveloper 1.5 directory called SQLDeveloper1_5 on Windows:
    1) cd C:\sqldeveloper1_5\sqldeveloper-5338
    there exists a sqldeveloper.exe
    2) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper.exe
    3) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloer\bin\sqldeveloper.exe
    Which SQLDeveloper 1.5 executable should I be using and where should I place the
    sqldeveloper.cmd file?
    Also I did try to use a different database and schema for the repository with Quick Migrate but it appears a bug exists in SQL Developer 1.5 version that causes errors with Quick Migrate for MySQL to Oracle? Is this correct?
    As an update, I ran the following commands:
    cd to
    c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper\bin
    sqldeveloper.cmd sqldeveloper.exe
    Start sqldeveloper.exe
    Perform standard capture for MySQL using the new mig2 schema as the new repository
    It starts the capture but fails on the errors below:
    Error loading nls:OALL8 is in an inconsistent state
    UPDATE
    ============================
    I tried this again and it worked with the exception of one error message listed below:
    Here are the steps that I followed:
    1. Create a Windows cmd script
    Put the following entries in the script:
    SET ORACLE_HOME=%CD%
    save the command windows script as sqldeveloper.cmd
    Copy this script to the base installation directory for SQLDeveloper
    Example:
    1. cd c:\SQLDeveloper1_5\sqldeveloper-5338\sqldeveloper
    2. Start SQLDeveloper with the command script that you created earlier
    Example:
    Open a Windows shell prompt window and execute the following scripts:
    a) sqldeveloper.cmd sqldeveloper.exe
    b) sqldeveloper.exe
    3) In SQL Developer 1.5
    From the Migrate menu,
    a) Delete current repository and create a new schema in Oracle target database call it mig2.
    b) Then create a new repository in SQL Developer 1.5
    c) Right mouse click on the MySQL 5.x database and choose capture
    It worked with the exception of one error message:
    o.jdbc.driver.OracleDriver     
    Error while registering Oracle JDBC Diagnosability MBean.
    So it looks like something is screwed up with my JDBC drivers and configuration for MySQL. How do I diagnose the JDBC driver issue for MySQL?
    Thanks!!!
    Ben
    Thanks
    Ben

  • Dreamweaver CS5 mysql error

    Hi Im using the new Dreamweaver CS5, apache and php that the in the mac and mysql and I find a problem trying to make a connection in dreamweaver to the database the error is:
    MySQL Error: # 2002
    no such file or directory
    does anyone knows what could happening?

    Thanks for your time Ken and I have uninstalled and reinstalled but its still the same.  The only thing I can think of is I installed zone alarm and since then its not work.

  • [Help] Replace MySQL error message

    In insert form, I want to post a especial error message, instead of mysql_error
    here an example:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "insert_form")) {
      $insertSQL = sprintf("INSERT INTO stuff (title, numbers) VALUES (%s, %s)",
                           GetSQLValueString($_POST['titla'], "text"),
                           GetSQLValueString($_POST['numbers'], "int") );
      mysql_select_db($database_connection, $connection);
      $Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());
    cause i get an error like cannot be null
    Thanks.
    [Subject line edited by moderator to make it more meaningful]

    If you want to replace the MySQL error message, you can put your own error message in quotes in the die() command. Change this:
    $Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());
    to this:
    $Result1 = mysql_query($insertSQL, $connection) or die('Database error');
    However, that's not very helpful to a user, because all that will be displayed is "Database error" with no indication of what caused the error or any way of returning to the page, except by using the browser back button.
    A better way of handling things is to remove the or die(mysql_error()) section of code altogether and replace it with a PHP conditional statement that sends the user to an error page if the SQL fails for any reason. However, making these changes will prevent you from making further edits to the server behavior through the Server Behaviors panel.
    $Result1 = mysql_query($insertSQL, $connection);
    if (!$Result1) {
      $insertGoTo = 'error.php';
    } else {
      $insertGoTo = 'another_page.php' // <-- this is the original $insertGoTo line

  • SQL Server 2000 Driver for JDBC - Error establishing sockets

    Hi there
    I am using Microsoft SQL Server 2000 Driver for JDBC to connect to SQL Sever 2000. It is just a test application to see if it would connect to the datacase successfully. But I got the following errors. I already set up the classpath and installed all SQL Server 2000 Driver for JDBC sp 3. Dont know why it still failed...can anyone help me out of this? Thanks.
    When i am using simple JDBC-ODBC bridge Driver it's working fine.
    For this Server Pack3 , i have checked every thing like--
    TCP / IP Poart is Enable.
    I am working in client machine, my MSSQLServer 2000 Placed in server Machine.
    when i am giving Telnet ServerIP 1433 it's giving following response.
    connecting to ServerIP ....... could not open connection to the host , on port 1433:connection Failed
    My Sample Code is :--
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:microsoft:sqlserver://ServerName:1433;DatabaseName=dmo1o2d",user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = con1.prepareCall("{?=Call dms_ex_create_folder('ABC','18753','NB21','u')}");
    cstmt.execute();
    Here are Error Code :
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection refused: connect
         at java.sql.DriverManager.getConnection(Unknown Source)
         at TestConnection1.main(TestConnection1.java:24)
    one can help me to over come this problm,
    Thanks in advance.
    venkat

    hey i also have this problem i have been looking for solution for this problem for along time i tried every possible solution i tried every service pack for the SQL but it didn't connect to the port!!!
    it's a network problem ur java code is correct dont worry about it.
    finally i had to install MySQL and it's work fine now but if u insist on usning SQL u have to use the JDBC-ODBC Bridge it will work by :
    first add data source database , follow these steps
    1- go to Administrative tools
    2-Data Sources(ODBC)
    3-System DNS tab and add then choose SQL SERVER the last option then finish
    4-write the name; Note: this name is the one that u will write in ur URL for example if u write Hello the URL will be "jdbc:odbc:Hello"
    5- choose the server, its recommended to write "." or (local)
    6-change the database to its an important step to choose the database that u want to use, choose northwind if u want to use it
    finish
    second
    adding this code:
    import java.sql.*;
    class JdbcTest1 { 
    public static void main (String[] args) { 
    try { 
    // Step 1: Load the JDBC driver.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Step 2: Establish the connection to the database.
    String url = "jdbc:odbc:Hello";
    Connection conn = DriverManager.getConnection(url,"user1","password");
    } catch (Exception e) { 
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    it will work without any problems

  • MySQL error (2002) in Windows

    I'm using Dreamweaver 9 in Windows with a Apache, PHP5 and
    MySQL4.1. My webserver works fine. But Dreamweaver can't create
    database connection to MySQL. It gives me a MySQL error 2002 and
    referes to that /tmp/mysql.sock is missing.
    What should I do to get this to work? Am I missing something
    here? MySQL Query tool etc all work fine. But Dreamweaver can't
    connect to MySQL for some reason.

    chunkeung wrote:
    > When I login into
    > PHPMyAdmin I see that the Server is "Localhost via UNIX
    socket" so I put that
    > into my setting in dreamweaver for the "MySQL server"
    but on the hosting that
    > giving me that #2002 error message their Server is
    "127.0.0.1 via TCP/IP" and I
    > tried to put in 127.0.0.1 instead of localhost but it
    still doesn't work and
    > gives me this error message.
    localhost and 127.0.0.1 are the same thing. All you need is
    "localhost"
    or "127.0.0.1" (without the quotes). The "via UNIX socket"
    and "via
    TCP/IP" are simply descriptions of the type of connection.
    They are NOT
    part of the server address.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • MySQL Error#: 2002 Dreamweaver CS5

    HI
    Never had this problum before so not sure why now.  
    MySQL Error#:2002
    A connection attempt faild because the connected party did not properly respond after a period of time, or established connection faild because connected host has failed to respond
    Any help please?

    Thanks for your time Ken and I have uninstalled and reinstalled but its still the same.  The only thing I can think of is I installed zone alarm and since then its not work.

  • Mysql error / install problems

    after following the wiki entry: LAMP
    I get error:
    $ mysql
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    I'm out of luck here, does anyone have suggestions for where to look?
    .murkus

    How do you try to connect? Seems root is not allowed to connect from host "localhost" without the passwd..
    This fails:
    mysql -u root
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    But this does well:
    mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or g.
    Your MySQL connection id is 2 to server version: 4.1.14
    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
    mysql>

  • MySQL Error!

    MySQL Error!
    The Error returned was:
    Data too long for column 'useragent' at row 1
    Error Number:
    1406

    The SQL query that you quote is garbage. At best it looks like the where clause of a select statement. From what you describe, it sounds like phpmyadmin has some issues, since that's probably the program issuing the SQL statement(s).
    I have little MySQL experience and no php experience, so I can't get into more detail.
    Roger

  • MYSQL Error When Deleting multiple records

    Folks,
    I am finally converting my website from MS-Access to MySQL and until Monday I was having pretty good luck. However, I have come across a issue I cannot find any solution to and am wondering if one of you can assist.
    When I try to delete a number of records using tgeh same commands that worked in Access, I get this error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
    ODBC driver does not support the requested properties.
    /New_Site/Trade/Trade_Signup_Edit_Update.asp, line 34
    This is the code:
    Set adoCon2 = Server.CreateObject("ADODB.Connection") adoCon2.Open "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=MySQLB1.webcontrolcenter.com;" &_ "DATABASE=pinotdays; UID=pinotdays; PASSWORD=********; OPTION=3" Set rsTrade_List = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM Trade_List WHERE Entity_Number = " & request.form("ID") rsTrade_List.CursorType = 2 rsTrade_List.LockType = 3 rsTrade_List.Open strSQL, adoCon2 Set rsTrade_Delete = Server.CreateObject("ADODB.Recordset") StrSql = "DELETE * FROM Trade_List Where Parent_Entity_Number=" & request.form("ID") & " AND Entity_Number <> " & request.form("ID") rsTrade_Delete.CursorType = 2 rsTrade_Delete.LockType = 3 rsTrade_Delete.Open strSQL, adoCon2
    The error occurs on the final line listed. Being new to MySQL, I thought I would change teh driver to 5.1 but that brought me nowhere. I used "SELECT" in the string and tried to do rsTrade_Delete.Delete and that did not work. I tried to delete a single record by selecting a ID=1 and that did not work.
    So, is there a trick to deleting records in MySQL?
    Thanks for your help....
    Regards,
    Steve

    StrSql = "DELETE * FROM Trade_List Where Parent_Entity_Number=" &
    request.form("ID") & " AND Entity_Number <> " &
    request.form("ID")
    The DELETE statement for MySQL deletes entire rows. No need to specify fields (or all fields with the asterisk). In fact, that should probably result in a syntax error.
    StrSql = "DELETE FROM Trade_List Where Parent_Entity_Number=" & request.form("ID") & " AND Entity_Number <> " & request.form("ID")
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • When connecting to a database, dreamweaver gives the error message [MySQL Error

    When I try to connect my MySQL database into dreamweaver, I insert all of the information (name, server, username, password), and when i click on select database, it reads:
    MySQL Error#:1045
    Access denied for user 'mresnik_mresnik'@'192.185.5.169' (using password: YES)
    I am 100% sure that The details entered including username and password are correct, as I have contacted hostgator.com and they have stated that they can connect, and they advised that it may be an issue with either my files or dreamweaver.
    Any help would be very much appreciated.

    Login.php code:
    <?php require_once('Connections/drama_database.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['UserName'])) {
      $loginUsername=$_POST['UserName'];
      $password=$_POST['Password'];
      $MM_fldUserAuthorization = "userlevel";
      $MM_redirectLoginSuccess = "home.php";
      $MM_redirectLoginFailed = "loginfail.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_drama_database, $drama_database);
      $LoginRS__query=sprintf("SELECT username, password, userlevel FROM users WHERE username=%s AND password=%s",
      GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $drama_database) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
        $loginStrGroup  = mysql_result($LoginRS,0,'userlevel');
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;         
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;  
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <html>
    <title>Drama Database - Login</title>
    <head>
        <link href="images/favicon.ico" rel="icon" />
    </head>
    </html>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <form ACTION="<?php echo $loginFormAction; ?>" id="loginform" name="loginform" method="POST">
    <!--visual -->
    <br>
    <br>
    <br>
    <div align="center">
      <!--ACS Logo -->
      <img src="images/logo_acs_egham.gif" width="387" height="59" /><br>
    <!--Drama Logo -->
    <br>
    <img src="images/bglogin.jpg" alt="Acs-Egham International School" width="246" height="153">
    <br>
    <!--Title -->
    <h2>Drama Database Login</h2>
    </center>
      </div>
      <table width="154" border="0" align="center">
        <tr>
          <td width="148">Username:<br />
            <span id="sprytextfield1">
            <label for="UserName"></label>
            <input type="text" name="UserName" id="UserName" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td>Password:<span id="sprytextfield2"><br />
            <label for="Password"></label>
            <input type="password" name="Password" id="Password" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td align="center"><input type="submit" name="LoginButton" id="LoginButton" value="Login" /></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table>
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    </script>

  • MySQL Error - Can't fix it.

    I have this error when I try to login as root (I have just installed MySQL with pacman):
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
    I searched @ google and I found thousands of posts with this problem. I followed 2 ways to solve it but I can't.
    If anyone can help...!
    Thanks

    Enter current password for root (enter for none):
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    After restart you have to do again as root:
    /etc/rc.d/mysqld start
    and then:
    mysql_secure_installation
    There is no need for reinstall the whole thing!
    If you want to start mysql by every boot make sure you add mysqld too the deamons array in rc.conf!
    Last edited by May-C (2008-02-03 11:04:18)

  • Problem with JDBC driver for mysql

    I have downloaded the Connector/J3.0 mysql-connector-java-3.0.7-stable.tar.gz from www.mysql.com/downloads/api-jdbc-stable.html web site and used gunzip and tar to extract the file. I have received the following error message:
    tar: directory checksum error
    Will this error cause some problem later on?
    Which directory should I put the driver into? Can I put it in any directory?
    Do I need to set the classpath for the driver? If yes, how can I set it?
    What is the connect string? Can you give a sample for me? I am using Solaris 5.8 and mysql is on the same machine.
    Thanks a lot,
    Lisa

    this is an example of a connect string for mysql that i used...
    public Connection CreateConnection () throws Exception
         Connection myConn = null;
         String driverName = "org.gjt.mm.mysql.Driver";
         String dbUrl = "jdbc:mysql://www.desres.com/jhazrd?user=jhazrd&password=????";
         Class.forName(driverName);
         myConn = DriverManager.getConnection (dbUrl);
    return myConn;
    }

Maybe you are looking for

  • Aperture crashing when editing .. what's that all about?

    I am still using Apeture 2.1.4 and ever since loading Maverick it keep crashing  when I edit!!

  • How to use Align function in Flexible UI template

    Hi HR experts, how to use Align function in Flexible UI Perforformance management ( not Cascading Goals) do we need any configuration setup, this Align function we are able to see in Predefine Performance Managment template , but not in Flexible UI a

  • Using Flex with Microsoft Project

    I am absolutely brand new to FLEX. What I saw on the Adobe site was a data chart that could be drilled down to expose additional layers of "contriburory detail" for the master graph. What I am wondering is if it is possible to do something similar us

  • Is there a good up-to-date mapping software program for Mac?

    Is there any good up-to-date mapping software program for Mac?

  • Online scores for iOS games?

    I have delivered my first application to iTunes using Flash CS5.5. You can view the game at this link: http://itunes.apple.com/app/necrorun/id444471709?mt=8 Players and review sites are rightfully complaining about the lack of online highscores. Howe