Can not get PK-FK in meta-Data of MySql....Help me pls.

Hello Every one.
I can not to get the PK and FK from Meta-Data Database of mysql-4.1.1a-alpha. Anyway I tried to do the
followihg
1. OS windows 2000 Pro.
2. set configuration Script support InnoDB Table Type as the follow in my.ini file.
[mysqld-nt]
innodb_data_home_dir = C:\mysql\data
innodb_data_file_path =\ibdata\ibdata1:2000M // in folder \data\ i was created folder ibdata
3. I try to create data as reference in example java code and table :persons , shirt as the example in
Create innodb table Type of mysql doc.
4. the code test as following
In the test code i can get the result only from method : getPrimarykey(...); only and the other method ,getExportedKeys, getImportedKey , getCrossReference the result in ResultSet is null.
anyway, this code i can apply in the oracle db with change db driver .
I wish the answer why? and the actually the second parameter of this parameter , as refer scheme name , the scheme name is ?
Thank you
import java.sql.*;
public class testMeta {
public testMeta() {
ResultSet rs=null;
String url = "jdbc:mysql://localhost:3306/testinnodb";
Connection con = null;
try{
Class.forName("org.gjt.mm.mysql.Driver");
}catch(ClassNotFoundException ex){
System.out.println(ex.getMessage());
try{
con = DriverManager.getConnection(url,"root","rootpwd");
prtS("getConnection complete");
DatabaseMetaData metaData = con.getMetaData();
Connection con2 = metaData.getConnection();
String type[] = new String[1];
type[0] = new String();
prtS("*************** GET Schemas ***************");
rs = metaData.getSchemas();
               while(rs.next()){
System.out.println("12345");
prtS("TABLE_CAT" + " : " + rs.getString(0));
prtS("TABLE_CAT" + " : " + rs.getString("TABLE_SCHEM "));
               rs=null;
prtS("*************** GET PRIMARY KEYS ***************");
rs = metaData.getPrimaryKeys(con.getCatalog(),null,"persons");
while(rs.next()){
prtS("TABLE_CAT" + " : " + rs.getString("TABLE_CAT"));
prtS("TABLE_SCHEM" + " : " + rs.getString("TABLE_SCHEM"));
prtS("TABLE_NAME" + " : " + rs.getString("TABLE_NAME"));
prtS("COLUMN_NAME" + " : " + rs.getString("COLUMN_NAME"));
prtS("KEY_SEQ" + " : " + rs.getString("KEY_SEQ"));
prtS("PK_NAME" + " : " + rs.getString("PK_NAME"));
               rs=null;
prtS("*************** GET Exported KEYS ***************");
rs = metaData.getExportedKeys(con.getCatalog(),null,"shirt");
while(rs.next()){
prtS("FKCOLUMN_NAME" + " : " + rs.getString("FKCOLUMN_NAME"));
               rs=null;
prtS("*************** GET Imported KEYS ***************");
rs = metaData.getImportedKeys(con.getCatalog(),null,"persons");
while(rs.next()){
prtS("PKTABLE_CAT" + " : " + rs.getString("PKTABLE_CAT"));
rs=null;
prtS("*************** GET CrossReference ***************");
rs = metaData.getCrossReference(con.getCatalog(),null,"persons",con.getCatalog(),null,"shirts");
while(rs.next()){
prtS("PKTABLE_CAT" + " : " + rs.getString("PKTABLE_CAT"));
}catch(SQLException ex){
prtS(ex.getMessage());

How i know the jdbc driver not compatible to this
mechanismBy reading the documentation tthat comes with your driver. Recent versions of the MySQL JDBC driver do support the getExportedKeys/ImportegKeys methods but the table needs to be crated as InnoDB.
So run the SQL command
show table statusWhats under the Type column for your table? If it isn't InnoDB then this isn't going to work.
If it is InnoDB but getExportedKeys/ImportegKeys still don't work then you haven't used the "foreign key" constraint in your "create table" command

Similar Messages

  • I down loaded the update for 4 and when I get to the end where is you click finish, it tells me to close firefox, but I do not have it open. Now I can not get in to Firefox at all. PLEASE Help.

    I down loaded the update for 4 and when I get to the end where is you click finish, it tells me to close firefox, but I do not have it open. Now I can not get in to Firefox at all. PLEASE Help.

    You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    You should still have your profile folder, so when you install 3. you will get your bookmarks and other user data back.
    There is a third party version of Firefox that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox

  • I can not get iPhone and iPad calendar to sync.  Help

    Help. I can not get iPad and iPhone calendar to sync

    Please also check, if the appointments you already have entered on one device are stored in a iCloud calendar or only local or in another account. Therefor just open the calendar app, then open an existing appointment, click on "Calendar" and then check, if it is really an iCloud calendar where the appointment is stored.

  • When i open the organizer for elements 12 on my mac...i can not get to top of screen....help

    when i open the organizer for elements 12 on my mac...i can not get to top of screen....help

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • Safari 5.03 I can not get ANY web pages except APPLE to load Help please

    Hello, I just downloaded thru software update Safari 5.03. I am using SL for OS on Macbook Pro.
    Now literally when trying to go to ANY web page at all I get a bunch of " little squared letter A's on the entire web page.
    any web page
    THe only web page that works at all is Apple site where i can view an use this forum.
    please help anyone
    thanks
    scott

    First of all thank you for the reply,
    1. I deselected: enable plug-ins
    Quit Safari- then relaunch-- DID NOT work, I still have all "AAAAAAAAAAAAAAA" IN BOXES ON EVERY WEB SITE I TRY TO VISIT.
    BUT AGAIN THE APPLE WEB SITE I AM ABLE TO TYPE YOU THIS MESSAGE. ONLY APPLE SITE WORKS
    2. Also tried to turn off any extensions ( i did not have any but turned off-- DID NOT work
    3. I did try to troubleshoot the safari plist file.
    I looked at some of your prior posts and tried those plist attempts. I tried to move the com.apple.Safari.plist file from the preferences--AGAIN THIS DID NOTHING.
    BUT......I tried this but not total solution. I went on my other mac--I opened Safari ( i think 4.03) but again another mac, I then went to Firefox web site and I COPY AND PASTED THE ACTUAL WEB SITE IN AND PUT IT ON A SMALL FLASH DRIVE--THEN COPY AND PASTED IT INTO THE ADDRESS WINDOW OF SAFARI 5.03, AND HIT RETURN-- IT THEN WENT TO THE FIREFOX WEBSITE AND IT VIEWED IT PROPERLY, SO I DOWNLOADED FIREFOX AND TRIED TO RUN FIREFOX.
    AND LOW AND BEHOLD FIREFOX WORKS.
    BUT I STILL CANT GET SAFARI TO WORK
    again, i still get ON EVERY SITE USING SAFARI 5.03 " AAAAAAAAAAAAAAA" capital "A"s in little boxes on every web site. Almost like some code is not being read correctly by Safari?
    please advise some more if you can
    thanks
    scott
    p.s I used caps so you know what i tried, so i am not yelling, sorry for the caps.

  • Can not get my URL to work in AS3 – plz help.

    I have 3 movie clips that each have a button nested within. I need to make this button an active URL link to a web page. I can't seem to get it to work.
    EXAMPLE:
    The first movie clip name is:
    myBalzacMC
    The button nested within this particular MC is:
    balzacURLBtn
    Everything is brought onto the stage dynamically.
    With the code I pasted below, is this enough information for someone to help me? I have also pasted a
    I also get this error:
    TypeError: Error #1010: A term is undefined and has no properties.
    at ParisMap3_fla::MainTimeline/frame1()
    Part of the code:
    function showOrder(evt:MouseEvent):void {
    if (mc.numChildren>0) {
    mc.removeChildAt(0);
    addChild(mc);
    switch (evt.target.name) {
    case "b1" :
    var myBalzacMC:BalzacMC = new BalzacMC();
    mc.addChild(myBalzacMC);
    mc.y=175;
    balzacMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    balzacMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;
    case "b2" :
    var myCastilleMC:CastilleMC = new CastilleMC();
    mc.addChild(myCastilleMC);
    mc.y=175;
    castilleMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    castilleMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;
    case "b3" :
    var myDeVignyMC:DeVignyMC = new DeVignyMC();
    mc.addChild(myDeVignyMC);
    mc.y=175;
    deVignyMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    deVignyMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;
    //________ URLs_______________________
    mc.myBalzacMC.balzacURLBtn.addEventListener(MouseEvent.CLICK, goSite1);
    function goSite1(evt:MouseEvent):void {
    navigateToURL(new URLRequest("https://www.phgsecure.com/IBE/brandRedirect.ashx?propertyCode=PARCP&rateCode=MKTPAR&brandC ode=PV&iataNumber"));
    mc.myCastilleMC.castilleUrlBtn.addEventListener(MouseEvent.CLICK, goSite2);
    function goSite2(evt:MouseEvent):void {
    navigateToURL(new URLRequest("https://www.phgsecure.com/IBE/brandRedirect.ashx?propertyCode=PARCP&rateCode=MKTPAR&brandC ode=PV&iataNumber"));
    mc.myDeVignyMC.deVignyURLBtn.addEventListener(MouseEvent.CLICK, goSite3);
    function goSite3(evt:MouseEvent):void {
    navigateToURL(new URLRequest("https://www.phgsecure.com/IBE/brandRedirect.ashx?propertyCode=PARDV&rateCode=MKTPAR&brandC ode=PV&iataNumber"));

    No errors found with the trace.
    I think it has something to do with the renaming of MC's to make the switch statement work properly?? Does that make sense?
    myBalzacBtn.name="b1";
    myCastilleBtn.name="b2";
    myDeVignyBtn.name="b3";
    function showOrder(evt:MouseEvent):void {
    if (mc.numChildren>0) {
    mc.removeChildAt(0);
    addChild(mc);
    switch (evt.target.name) {
    case "b1" :
    myClickIconsMC.visible=false;
    var myBalzacMC:BalzacMC = new BalzacMC();
    mc.addChild(myBalzacMC);
    mc.y=175;
    balzacMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    balzacMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;
    case "b2" :
    myClickIconsMC.visible=false;
    var myCastilleMC:CastilleMC = new CastilleMC();
    mc.addChild(myCastilleMC);
    mc.y=175;
    castilleMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    castilleMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;
    case "b3" :
    myClickIconsMC.visible=false;
    var myDeVignyMC:DeVignyMC = new DeVignyMC();
    mc.addChild(myDeVignyMC);
    mc.y=175;
    deVignyMCTween=new Tween(mc,"x",Strong.easeOut,1050,638,1,true);
    deVignyMCTween2=new Tween(mc,"alpha",Regular.easeIn,0,1,1,true);
    break;

  • Frozen pointer in mountain lion Can not get wi fi  or open close pages. Help!

    The pointer is stuck in upper left corner. I can only go to preferences and force quit . Nothing, cannot get connected. By force closing and restarting all the closed pages reopen but I can't do anything.

    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.

  • Flex 4 - Can not get ADG working

    Hello,
    I have just downloaded flex 4 SDK (flex_sdk_4.0.0.14159_mpl) and Flash Builder 4.
    I have created a test prroject and can not get it working with Advanced Data Grids.
    Here is my set up:  Created Project called Test, this contains one MXML file that contains an Advanced Data Grid:
    <fx:Script>
            <![CDATA[
                import mx.collections.HierarchicalData;
                [Bindable] private var _test:HierarchicalData;
            ]]>
    </fx:Script>
    <mx:AdvancedDataGrid id="test" dataProvider="{_test}">
       <mx:columns>
           <mx:AdvancedDataGridColumn headerText="COL_A" />               
           <mx:AdvancedDataGridColumn headerText="COL_B" />               
           <mx:AdvancedDataGridColumn headerText="COL_C" />               
        </mx:columns>
    </mx:AdvancedDataGrid>
    This works Okay.  I then include a libary into the project, the libary, also built with the same SDK, contains a class that contains nothing but one single method that does nothing:
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               width="100%" height="100%">
        <fx:Script>
            <![CDATA[
                import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
                private function test(col:AdvancedDataGridColumn):void { }
            ]]>
        </fx:Script>
    </mx:Canvas>
    Launcing now causes the error
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::AdvancedDataGridBaseEx/getSeparator()[E:\dev\4.0.0\frameworks\projects\datav isualization\src\mx\controls\AdvancedDataGridBaseEx.as:4618]
        at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[E:\dev\4.0.0\frameworks\proj ects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4660]
        at mx.controls::AdvancedDataGrid/createHeaderSeparators()[E:\dev\4.0.0\frameworks\projects\d atavisualization\src\mx\controls\AdvancedDataGrid.as:2428]
        at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[E:\dev\4.0.0\frameworks\projects\dat avisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4574]
        at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\ datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2119]
        at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavi sualization\src\mx\controls\AdvancedDataGrid.as:2899]
        at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\p rojects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3468]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:718]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Removing the method in the libary project alivates the problem.  But I can not see why this is a problem in the first place!!??!?!?!?!?!?!?
    Can anyone help. this is really weird.

    I'm getting the same error. This is due to a bug in AdvancedDataGridBaseEx.  The offending code is:
                var headerSeparatorClass:Class =
                    getStyle("headerSeparatorSkin");
                sepSkin = new headerSeparatorClass();
    if getStyle returns null then you will be trying to instantiate  headerSeparatorClass is going to cause the "Instantiation attempted on a non-constructor" error.
    Apparently someone thought that the headerSeparatorSkin would never be null.

  • Accidentally changed the path of the home directory and now I can not get access my profile.

    before the way was /valumes/macintosh hd/igor but then i decided  to remove a space between macintosh and HD then I restarted my mac and after reloading I can not get access my profile. Thanks for the helping.

    Boot up holding command-r keys into your Recovery Volume and re-install OS X on the volume.
    This will be an install "in place" and shouldn't effect any of your own data or settings.

  • Can not get my voice mail while in canada

    Hello i can not get my voice mail while in canada.. help   call forwarding is off.. when i dial my 10 digit number and hit send it says call ended.... but as soon as i cross back into the us it works just fine .. all was good till approx 6 weeks ago..  i have not added any thing or removed any thing either.

    While in Montreal PQ I don't receive voice mail notifications and *VM does not work. However if I dial my ten digit phone number I can retrieve my voice mail.
    Also when I get to my hotel I can dial my phone and retrieve that way.
    Another way is to use the backdoor Verizon voicemail number then follow the prompts to enter your cell number and password code.
    It is not toll free but I have never been charged for using it.
    Of course I don't know if it even is still available.

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Can not get data from database

    hi all,
        there is a problem ,  when i write like below :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs
                AND hkont = p_hkont.
    p_bukrs , p_hkont are all on the selection screen , and p_bukrs = 1200 another is eq blank. i can not find any data , but with the same condition i can find some data in database , when i debeg i found that p_hkont is initial.
        when i write like this :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs .
    this time i can find the data like the database.
        so , does someone know where the problem is , why i can not get data ?
    kind regards
    kevin

    hi,
    if u r  using bukrs and hkont as parameters in selection screen then
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs = p_bukrs
    AND hkont = p_hkont.
    this will work.
    if u r using then as select-option then the above does n't work.
    bcoz select-options work as internal table bcoz of that u have use the query like this
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs IN p_bukrs
    AND hkont IN p_hkont.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM

  • I have had my Iphone 5s for 2 months and all the fotos and data (fotos and data were not backed up) that I had were erased after I restored it with my old Iphone 4s backup, can I get my unsaved fotos and data back? and if I can, how?

    I have had my Iphone 5s for 2 months and all the fotos and data (fotos and data were not backed up) that I had were erased after I restored it with my old Iphone 4s backup, can I get my unsaved fotos and data back? and if I can, how?

    If you never backed up your phone to iTunes and never backed it up to iCloud all of your content is gone forever.

  • Migration Assistant: Problems transferring data from PC (XP SP3) to new Mac Pro 2012 - can not get Migration Assistant to work as PC will not display verfify passcode

    Migration Assistant: Problems transferring data from PC (XP SP3) to new Mac Pro 2012 - can not get Migration Assistant to work as PC will not display verfify passcode
    Hello, I am having problems migrating data from my old PC running XP (SP3) to my new Mac Pro 2012 using the Migration Assistant.
    - I downloaded and installed the Windows Migration Assistant from Apple
    - My Mac recognized PC and displays passcode
    - The sasscode does not show / display on my PC
    - My Mac is then stuck in "authenticating" loop and the PC is stuck "waiting for Mac to connect."
    - Both computers are connected on same network (have connected PC on WIFI and using ethernet to Reuter)
    I have looked on support site and only response I saw says to reinstall Windows Migration Assistant (which I have done)
    Any ideas?  If cant get this to workare there instructions for manually bring across relevant data eg itunes music and apps, photos, picasa data etc?

    Why not turn off the Windows firewall and uninstall any other firewall software you have installed?
    If you are using a Norton product uninstall it and discard it. To fully unistall most Norton products you have to go to the Norton website and download a soecial program to completely get rid of it. The normal uninstall feature built into the program will not remove all of it.

  • HT5701 Downloaded Safari 6.0.4 and my software is not up to date to run it. I can not get the old version of Safari to work again.

    Downloaded Safari 6.0.4 and my software is not up to date to run it. I can not get the old version of Safari to work again.

    Open  > About this Mac, and tell us what OS X version you have. If it's 10.8, reinstall OS X 10.8.3 > http://support.apple.com/kb/DL1640
    If, after reinstalling the update, you still can't use Safari, hold Command and R keys while your computer is starting and reinstall Lion or Mountain Lion

Maybe you are looking for