MYSQL backup, mysql -e "FLUSH TABLES WITH READ LOCK" doesnt work

I want to backup mysql locking tables first using flush tables with readlock, then do rsync and then unlock tables.
I want to do it automatically using script.
When I log in to mysql using: mysql -u root -p
the command:
FLUSH TABLES WITH READ LOCK;
works and locks the tables...but when I create my.cnf with login information to mysql:
[client]
user=root
password=xxx
the command:
mysql -e "SHOW DATABASES"
works and shows the databases....
but when I run this command:
mysql -e "FLUSH TABLES WITH READ LOCK"
it doesnt lock the tables...why?
thanks

Are calling the 'mysql -e' command as your user or as root? If you call it as root (typical for a backup script), then the .my.cnf file needs to be in /root instead of $HOME.
Scott

Similar Messages

  • Dynamic table with header locked and vertical scrollbar problem.

    Hi,
    I have created a dynamic table with header locked.The sample code is as below.
    <div style="width:910px ; overflow-x : scroll">
    <h:panelgrid ...for header populated by binding to pagecode/>
    <div style="width:910px ; height:200px ; overflow-y : scroll">
    <h:panelgrid ...for data populated by binding to pagecode/>
    </div>
    </div>
    The above piece of code serves the purpose.
    There is an overflow in both x as well as y directions and scrollbars appear.But the y scrollbar can be seen only when the x-scrollbar is moved to the extreme right.
    Does anyone have a solution so that both the scrollbars can be seen as soon as the table loads without the need to move x to the extreme right to see y?

    wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
      CALL METHOD gr_alvgrid1->set_table_for_first_display
          EXPORTING
            is_layout       = gs_layout
          CHANGING
            it_fieldcatalog = it_fieldcatalog1[]
            it_outtab       = <l_table>.
    i am using like but its not accepting more than one line header in is_layout, is there any possibility to take like this.
    Regards,
    Mallikarjuna.

  • Can't open libHaru-generated PDF with Reader, other readers work.

    Our application uses libHaru to export PDF images.  These PDFs can be opened using PDFlite on Windows, Preview on Mac and some other readers.  However, I have tried several versions of Adobe Reader on both platforms and the files fail to open with the message: "There was an error processing a page.  There was a problem reading this document (14)."   So, it seams that Adobe Reader believes that there is problem with this file.  However, from my very limited understanding of PDF structure, I have no idea what might be wrong, so I don't know how to fix it.  The file is written unencrypted.  It is about as simple a PDF as we can generate - a red-filled rectangle.  I would greatly appreciate any suggestions or help.
    Here is a sample PDF:
    %PDF-1.3
    %∑æ≠™
    1 0 obj
    <<
    /Type /Catalog
    /Pages 2 0 R
    >>
    endobj
    2 0 obj
    <<
    /Type /Pages
    /Kids [ 4 0 R ]
    /Count 1
    >>
    endobj
    3 0 obj
    <<
    /Producer (Haru Free PDF Library 2.3.0-dev)
    >>
    endobj
    4 0 obj
    <<
    /Type /Page
    /MediaBox [ 0 0 236 207 ]
    /Contents 5 0 R
    /Resources <<
    /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
    /Pattern <<
    /Type /Pattern
    /PatternType 1
    /PaintType 2
    /TilingType 2
    /BBox [ 0 0 100 100 ]
    /XStep 100
    /YStep 100
    >>
    >>
    /Parent 2 0 R
    >>
    endobj
    5 0 obj
    <<
    /Length 6 0 R
    >>
    stream
    1 0 0 -1 -118 296 cm
    1 w
    0 0 0 RG
    [] 0 d
    1 0.3 0.3 rg
    q
    % Rect
    119.25 90 m
    352.5 90 l
    352.5 294.75 l
    119.25 294.75 l
    119.25 90 l
    h
    B
    Q
    endstream
    endobj
    6 0 obj
    135
    endobj
    xref
    0 7
    0000000000 65535 f
    0000000015 00000 n
    0000000064 00000 n
    0000000123 00000 n
    0000000188 00000 n
    0000000458 00000 n
    0000000647 00000 n
    trailer
    <<
    /Root 1 0 R
    /Info 3 0 R
    /Size 7
    >>
    startxref
    666
    %%EOF

    You would need to post a sample PDF that demonstrates the problem.  All you posted there is text.  (PDF is a BINARY file format)
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 13 Oct 2011 11:02:42 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can't open libHaru-generated PDF with Reader, other readers work.
    Can't open libHaru-generated PDF with Reader, other readers work.
    created by Fred Snerd<http://forums.adobe.com/people/Fred+Snerd> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3969828#3969828

  • Scrolling and rightclicking with magic mouse doesnt  work anymore

    Suddenly scrolling and rightclicking with magic mouse doesnt work any more. Left clicking and cursor moving works normal. I have checked the system preferences for the mouse and find nothing strange or unchecked. Any ideas?

    Also tried the universal access thing. Doesnt work.

  • I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    I started the OS system from a backup hard drive. Now My Adobe products doesnt work. "the licensing does not work for this product" Error code 150:30. Help me please!!

    Reinstall the software properly. migration/ backups do not work due to the specific requirements of the activation system.
    Mylenium

  • ADF Table with browser zoom not working properly

    Hi All,
    I am using ADF Table to show data from database. I am using JDeveloper 11.1.1.4.0.
    When user uses browser zoom functions (i.e. Ctrl + or Ctrl -) for zoom in or zoom out, The UI of Table disturbed and columns are not in line.
    Here is the snapshot of disturbed table image http://i.imgur.com/07YfB.jpg
    I have tested it with Firefox and Internet Explorer and in both the cases if you zoom in the columns are not in line anymore.
    I have added *<accessibility-profile>large-fonts</accessibility-profile> into trinidad-config.xml* and
    tried but it gives me the same result.( Reference Oracle Docs http://docs.oracle.com/cd/E16162_01/web.1112/e16181/af_access.htm#BEIDFIIB )
    Can anyone suggest solution for how to solve this problem so that the columns will be is line when uses browser's zoom?
    Thanks in advance,
    Viral

    Hi,
    I am not using any kind of css for table.
    It is default skin and defalut table properties that ADF provides.
    - Viral

  • Internal table with header line and work area.

    data:itab like LIKE bapimepoheader.
    DATA : BEGIN OF it_po_items OCCURS 0.
            INCLUDE STRUCTURE bapimepoitem.
    DATA : END OF it_po_items.
    DATA:it_input         TYPE STANDARD TABLE OF typ_input,
          wa_input         TYPE typ_input,
    LOOP AT it_input INTO wa_input WHERE poind = 'H'.
    CLEAR wa_po_header.
      wa_po_header-doc_type  = wa_input-bsart.
      wa_po_header-comp_code = wa_input-bukrs.
      wa_po_header-vendor    = wa_input-lifnr.
    CLEAR it_po_items.
      it_po_items-po_item = v_itemcount * 10.
      it_po_items-acctasscat = wa_input-knttp.
      it_po_items-material   = wa_input-matnr.
      it_po_items-plant      = wa_input-werks.
      it_po_items-quantity   = wa_input-menge.
      it_po_items-net_price  = wa_input-netpr.
      it_po_items-po_unit    = wa_input-meins.
      it_po_items-free_item  = wa_input-umson.
      it_po_items-tax_code   = wa_input-mwskz.
      it_po_items-gr_ind     = wa_input-wepos.
      it_po_items-gr_non_val = wa_input-weunb.
      it_po_items-incoterms1 = wa_input-inco1.
      it_po_items-incoterms2 = wa_input-inco2.
      it_po_items-vend_mat   = wa_input-idnlf.
      it_po_items-taxjurcode = wa_input-txjcd.
      it_po_items-item_cat   = wa_input-pstyp.
      APPEND it_po_items.
    here my doubt is whether i can move data from work area to internal table in this way?
    whether this is the correct approach or not?

    hii,
    u can define structure and make workarea ,internal table using that structure.
    for example
    types:begin of struct,
             declare all fields,
             end of struct.
    data:wa type struct,
           int_tab type standard table of struct.
    hope this will help u.

  • Edit photo in external editor with LR adjustment doesnt work

    Hi, Im on Win xp sp2 LR 1.2.
    When i try the "edit a copy with lightroom adjustments" i get a Warning and the following massage: "Lightroom was unable to prepare the selected file (name) for editing, It will not be opened.". Whats weird is that lightroom creates the file and its right there if i go to that folder, it just doest open the external editor to continue and edit the file.
    -Notice that "Edit a copy" or "Edit original" works! so there is a connection between the apps but it doesn't work with this option checked.
    I did a test and created a new catalog, added some pics to it and tried the same procedure and it works just fine, so that leads me to think that its a catalog related problem but thats why im here, to ask you guys.
    -Ive read other posts of the same Warning Massage but its not the same problem im experiencing.
    Have a catalog of 25000 photos, im sure its not a lot to some but it has all sorts of collections and tags and colors (u know, the usual mess) so i wanna avoid going into "export as catalog" feature and re-import my catalog all over again.
    Maybe its a registry problem maybe not.
    Any help is welcome, thanks.

    I have no idea, but have you tried File / Catalog Settings/ General tab: Relaunch and Optimize. Relates to the database.

  • Compare with unedited image doesnt work

    hi
    i started my first project in lightroom, and i use to change the look of my images in the development section every day again (a bit here, a bit there).
    when i press before/after, LR5 only shows the version i did yesterday and the one from now, today, how can i see the unedited version of the image, which i imported last week?
    thanks
    peter

    Here is one way to do it:
    Activate Before/After, then on the Before/After toolbar options below the pair of images:
    Click the Copy After to Before button (the arrow pointing from the right-side to the left) so that both Before and After are your latest adjustments.
    Click Reset at the bottom right in Develop to reset the After view.
    Click Swap Before/After (the double-arrows pointing left-to-right and right-to-left) to put the Reset one at the left and the After one with your current settings.
    This will leave a trail in history so you may not want to do it this way.
    You can also, in place of doing the Reset, click on one of the history steps, then swap Before and After.  This will compare the current settings to that older history step.

  • Af:tree with master-detail doesnt work

    Hi,
    I created master-detail(used updateable VO's) and test it from the application module and everything worked as expected.
    Now I try to show all master and detail data in af:tree component.
    At the runtime I can see only master data, but there's no detail data at all. I tried all of this before and everything worked fine, and now I cant get this work.
    <!-- jsf page page1.jspx-->
    <af:tree value="#{bindings.Master1.treeModel}"
    var="node">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}"/>
    </f:facet>
    </af:tree>
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.39.84" id="app_page1PageDef"
    Package="main.userinterface.pageDefs">
    <parameters/>
    <executables>
    <iterator id="Master1Iterator" RangeSize="10"
    Binds="Master1" DataControl="AppModuleServiceDataControl"/>
    </executables>
    <bindings>
    <tree id="Master1" IterBinding="Master1Iterator">
    <AttrNames>
    <Item Value="IdMaster1"/>
    <Item Value="Name"/>
    <Item Value="MasterValue1"/>
    <Item Value="MasterValue2"/>
    <Item Value="MasterValue3"/>
    </AttrNames>
    <nodeDefinition DefName="main.datamodel.queries.Master1"
    id="Master1Node">
    <AttrNames>
    <Item Value="MasterValue1"/>
    </AttrNames>
    <Accessors>
    <Item Value="Detail1"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="main.datamodel.queries.Detail1"
    id="Detail1Node">
    <AttrNames>
    <Item Value="DetailValue1"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thank you in advance.
    Alex

    Note, that PanelCollection is a naming container. So if you have wrapped your table in a PanelCollection you will have to add PanelCollection's ID to master table's ID when refering the master table as a partial trigger for the detail one. For example, if the value of detail table's partialTriggers attribute has been <tt>partialTriggers="::masterTable"</tt> now it should become <tt>partialTriggers="::pnlColl:materTable"</tt> (supposing that PanelCollection's ID is <tt>pnlColl</tt>).

  • Confused with updates which doesnt work

    Hey everyone! im new here, and well is the first time also i use an ipod... all was cool with my lil new toy but then something hapened and im not really sure whats happening. Well i downlaoded the lastest update for ipod and well i have to fight with my laptop sometimes cause it doesnt recognice my ipod! it makes the sound of conecting a device and the screen of the ipod says no disconect and then goes back like if i never conected...the worst of all is than i use this alot for music, movies for my large ours in trafic but now my ipod says than doesnt have songs or stuff, but when i can make my laptop recognices the ipod it plays the music and stuff...and well i use it alot as a portable hd cause i have stuff to keep and do later and i though it was for all the stuff i put on the ipod...i really dont want to restore it again
    can someone help me?
    sorry for the big question im kinda desesperate and about to jump from the bridge

    Settings>General>Reset>Reset Network Settings.
    If that doesn't fix it, contact your carrier.

  • Registering the Iphone with AT&T doesnt work =/

    I bought the phone in the states, I live in Sweden. When using Itunes 10.5 I cant register the phone with AT&T as I am promted to do. Thus it renders my phone unusable. The exakt problem is that i fill in the form they require but on the last page (of 3) there is the "terms and conditions"-page, it shows blank (not text) and only the continue button and the "I accept"button shows. I fill in the "I agree"button but nothing happens when I clikc on the continue button. How can I get around this?

    Your USA phone will be carrier locked to AT&T in the US.  It will not work with any foreign carrier, including AT&T outside of the USA.  Nor will AT&T unlock it (they simply don't unlock phones) and they would be the only ones who could do so.
    You can buy unlocked iPhones in the USA, direct from Apple, but no carrier in the USA sells unlocked iPhones, and even at an Apple store, you would need to specifically request an unlocked phone and pay full retail prices (current unlocked iPhone 4 is $549.00 USD).
    About all you can do is return it, if possible, or sell it online perhaps.

  • Arrow of a selected JMenu with a submenu doesnt work

    Hello,
    I've a problem with a menubar with some JMenu's and some submenu's.
    The color of the arrow of a JMenu is always black when it is selected. Even when I changed the DefaultUI settings for this component.
    Sow when I change the follow parameters the text and the arrow have the good color.
    Menu.foreground (same for MenuItem)
    but when I change the follow parameters only the color of the text will change when selected and the arrow is still black
    Menu.selectedForeground (same for MenuItem)
    Do i something wrong or is this a bug ?
    Thx in advance!

    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Personalization: Property with type="Date" doesnt work

    Hi,
    I am trying to personalize a property whose type is Date.
    <property name="DoB" value="19820117">
                <property name="Personalization" value="dialog"/>
                <property name="type" value="date"/>
    </property>
    Though i get the calendar icon and am able to <b>personalize</b> the property, the value doesn't reflect when i try to write it using response.write(). Its always "19820117".
    What could be the issue? I have another property with type=String and it works as expected.
    Thanks,
    Shruti

    Hi
    did u import util.date() in the component.
    did u write correct functionality in development for date.
    send test mail i will send one word doc related to this
    Regards
    Sunil
    [email protected]

  • Cardreader with Memory Stick doesnt work

    Hello,
    I have the following problem with my mega pc 180 deluxe: the cardreader dont read my Sony Memory Stick (the normal one not the pro). In this cardreader (the right one) a secure digital card works fine.
    Whats the problem? and how can i solve it?
    Thanx for any reaction,
    Gert-Jan

    Are you sure whether this cardreader support Sony Memory Stick or not?
    I don't think so but... never tried that  so...  

Maybe you are looking for