Erro in  connection

hi
im new to this ,when i execute the below program, im getting error message
package com.stardeveloper.example;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class sampleconn {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///lux1",
"luxmi","luxmi");
if(!con.isClosed())
System.out.println("Successfully connected to " +
"MySQL server using TCP/IP...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
error message:
Exception:syntax error or access voilation message from server:"Access denied for user 'luxmi'@'localhost' to database 'lux1' "
i grant all previlages to the user:
mysql>GRANT USAGE ON *.* TO 'luxmi'@'localhost' IDENTIFIED BY 'luxmi';
query OK 0 rows affected.....
but im still getting error message
Exception:syntax error or access voilation message from server:"Access denied for user 'luxmi'@'localhost' to database 'lux1' "
plz help me out,if any body knows........
thanks
ramesh

try the following sql statement:
GRANT ALL ON luxi.* TO 'luxmi'@'localhost' IDENTIFIED BY 'luxmi';I think this is more effictive.
Ahmad Elsafty.

Similar Messages

  • I am getting thr following erro The connection was reset The connection to the server was reset while the page was loading. The site could be temporarily

    When I try to access websites I get error message. Examples are e-bay or microsoft help.
    The connection was reset
    The connection to the server was reset while the page was loading.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Hi!
    Does this occur with other browsers? Is this will all websites you are trying to visit?
    Thanks!

  • Erro While connecting OBIEE with Essbase : Essbase Error 1030019

    Hi Experts,
    I am trying to connect to Essbase using OBIEE.
    I am getting error when i try to Import from Multi-Dimensional .
    It get a poppup as "Essbase Error 1030019".
    Could you please suggest how to overcome.
    Cheers,
    Andy

    Hi All,
    I am loggin in OBIEE as an administrator.
    if there is version mismatch in client and server.by this do you mean that version of Essbase in OBIEE is not matching with the version of Essbase from where we are fetching the data.
    Please let me know if this is the case and what will be its remedies.
    Cheers,
    Andy

  • Erro to connect oracle 9i on IIS

    Dear all,
    i install oracle9i database on window xp pro.
    and i install IIS on same machine.
    but when i open my IIS it whoes mefollowing error.
    Technical Information (for support personnel)
    Error Type:
    Microsoft OLE DB Provider for Oracle (0x80004005)
    Oracle client and networking components were not found.
    These components are supplied by Oracle Corporation and are part of
    the Oracle Version 7.3.3 or later client software installation.
    Provider is unable to function until these components are installed.
    and also i install oracle9i client as well.
    i am using globle.asa file to cnnect oracle.
    so i don't know why this happen. bcz oracle and IIS is on same pc.
    mygloalconnection string is :
    application("globalconnectionstring")="Provider=MSDAORA;Data Source=orcl;Password=tiger;User ID=scott;Persist Security Info=false"
    what do i have to write t in data source ???
    server name or ay thing else ??
    please help me i m stuck with this and i have to give demonstration of y project.
    regards frm,
    xxx

    Can you connect in sql*plus to your instance?
    c:> sqlplus /nolog
    sql> connect scott/tiger@orcl

  • Portal connection to BW production

    hi,
    can anyone help me on this please:
    its regarding portal connection(SPP) to BW production (SBP).
    while trying to upload  BW role to portal i am getting the erro mesag - "connection to BW system failed".

    Hi Muthaiyan,
    For Integrating BW with EP, these links will be helpful
    [Integration of SAP BI 7.0 and SAP EP 7.0|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0a5216a-349c-2a10-9baf-9d4797349f6a]
    [How to Connect to BW System through Enterprise Portal 7.0 Using an IView|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/EP/HowtoConnecttoBWSystemthroughEnterprisePortal7.0UsinganIView.&]
    [Configuring EP for connecting to BW|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4378]
    [SSO between BW and EP|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/EP/SSOtoBWinEP+6.0&]
    Hope this helps,
    Regards,
    Shailesh Nagar

  • MySQL setup mysql.sock in wrong place.

    Hello,
    I installed mysql to usr/local and when I use the mysqladmin command stop or start i get this erro.
    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!
    Any help would be appreciated.

    [These|http://dev.mysql.com/doc/refman/5.1/en/mac-os-x-installation.html] and [these|http://dev.mysql.com/doc/refman/5.1/en/mysql-installation-macosx-notes.h tml] directions?
    (/tmp isn't the best spot nor most secure for this stuff, but...)
    Or you could get the [MAMP kit|http://www.mamp.info] (and possibly [this hint|http://hints.macworld.com/article.php?story=20080128103022907]), or you could consider installing and using Mac OS X Server.

  • Inventory Roll-up ZfD 3.2 Sp1

    I will try not to make this wordy, but I am including details so
    responedents don't just throw out have you tried this.
    I have walked into a situation were the client has created DBs on each
    leaf server. Prior to the server being a leaf w/DB it was a stand alone
    w/DB. My trouble is that all the workstaions in the leaf are not
    populated in the root. I have verified the last register time of each
    imported workstation object. I have also verified that it has an .STR
    file. I have verified my my roll-up policy. I made sure that the
    roll-up ocurrs at night. The ramdom tick box is unchecked. I saw a TID
    somewhere about it causing. The ENTMERGEDB directory fills up daily
    with scan records. The intermediates ENTPUSHDB directory gets zip files
    from all leafs. All my log state that roll-up is succesful to
    intermediate and the intermediate updated the root. If I compare my
    imported workstaion objects with the local DB it is correct. When I go
    to the root and run a report for just a particular site the numbers
    don't match. According to what I am seeing I am missing about 40% of my
    workstations in the root DB. Last week I updated the root and
    intermediate with SP3. They are local.
    Anyone have any ideas? Does anyone have the exact sequence on how the
    leaf updates the root? Why isn't there a utility that allows me to
    connect to a leaf or intermediate DB and do a send data now.
    Oh all the logs in the sys:\pulblic\zenworks\wminv\ whatever\whatever (I
    am at home and can't remeber the rest of the path) show no time out
    erros or connection errors.
    Steve Fullerton
    [email protected]

    Frank,
    Thanks for the info. I believe that I hase soled the issue. AS I
    suppected, the Root DB is only updated when there is a change to the
    Leaf. Because the client started off the Leaf as a Stand Alone server,
    all workstations need to be rebooted to force a scan for delta info.
    The change is then made in the Leaf and forwarded to the Root. I have
    checked the "Scan Status" on the workstations not found in the Root and
    found that they all are scan dates prior to the server change. Now I
    just need everyone to reboot their workstations.
    For all of those who may look at this thread, unless it is absolutely
    necessary, do not create local DBs. It only makes troubleshooting that
    much more difficult. If the server abends hard also you need to
    re-install the local DB.
    Frank Tessnow wrote:
    > Steve,
    >
    > I don't know of a utility, which can send a leave DB to the
    > root.
    >
    > From the point of Your configuration change any scan should
    > be imported to the leave and "rolled up" to the root.
    > Do You see any workstations after that time, which are in
    > the leave and not in the root?
    >
    > Possible there are workstations in the root DB, which does
    > not exist in the NDS and also not physically (there's a TID
    > to remove this workstations manually)?
    >
    > Possible there are workstations in the leave DB, which does
    > not exist in the NDS and also not physically. This
    > workstations will never be "rolled-up" to Your root!
    >
    > Search for a workstation, which is in the leave and not in
    > the root and look if it is "scanned" after the time of Your
    > configuration change. Does this workstation exist? If not:
    > Sync the leave DB witch the NDS. (You "clean out" unused
    > workstations from the NDS?)
    >
    > Write, if this does not help (write about the times when a
    > "faulty not in sync DB-record" workstation was scanned and
    > witch which times You can find it the DB's...)...
    >
    > HTH - Frank
    >

  • I can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    i can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    Apple dropped playback support for .swf formats in QuickTime almost ten years ago.
    Adobe Flash Player is the only way to view them.

  • TS3694 My iPhone 3gs got an update today ios 6.1.6 but when i press install update my phone shutdown and shows connect to itunes display, after i connect to itunes it shows unknown erro (306).....whats is happening and what should i do ?

    My iPhone 3gs got an update today ios 6.1.6 but when i press install update my phone shutdown and shows connect to itunes display, after i connect to itunes it shows unknown erro (306).....whats is happening and what should i do ?

    Take a look at this post: https://discussions.apple.com/thread/5036467?tstart=0
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    iTunes Store loads partially or returns "Error 306" or "Error 10054"
    Proxies, parental control settings and software, security or filtering software, or a bad iTunes Store cache can cause this.
    To address proxies, Remove Internet Options proxy settings and connect to the Internet without a proxy.
    To reset iTunes Store cache:
    In iTunes, choose iTunes > Preferences (Mac) or Edit > Preferences(PC).
    Click the Advanced tab.
    Click the "Reset cache" button.
    Click OK and see if the issue is resolved.
    Adjust Parental Controls in iTunes:
    Open iTunes.
    Access iTunes preferences:
    On a Mac: From the iTunes menu, choose Preferences.
    On a Windows PC: From the Edit menu, choose Preferences.
    Click the Parental Controls tab.
    Remove restrictions on Parental Controls.
    For more information on parental controls or content filtering software, seeiTunes 10.5 for Windows: May see performance issues and blank iTunes Store.
    For more information on other security software, see iTunes: Troubleshooting security software issues.

  • Erro: connect failed due to DbSL load lib failure

    Error when trying to transport request
    Error Attach.
    My database is SQL 2008
    Version of the kernel source: 201
    Version of the kernel target: 225
    Can you help me?
    Tks,
    Renato

    Hi,
    I include the environment variables that were gone and rebooted the server, the error changed:
    Erro: connect failed
    Error code 0232
    Tks,
    Renato

  • HT201263 I was installing the IOS7 to my Iphone 5   after a while, the phone showed  the connect to itunes symbol.  I connected it to itunes on my desktop.  It said I had to restore my Iphone.  I clicked on restore.  After a few minutes I received an erro

    I tried to download IOS7 to my Iphone 5.  After quite a while, my phone had the symbol to connect to Itunes.  I went to our desktop and did this. A message said I had to restore my phone.  I clicked on restore.  In a short while, I received a message saying my phone couldn't be restored and received error 3194 "This device isn't eligible for the requested build"
    So how do I fix this?  Can you help me?
    Thanks
    Brenda

    http://support.apple.com/kb/TS4451

  • I upgraded my iphone os to 4.01 and i have not been able to synce to my computer. The erros message I get says the Iphone connected is not recognised what can i do to solve this problem.

    i upgraded my iphone os to 4.01 and i have not been able to sync to my computer. The error message I get says the Iphone connected is not recognised what can i do to solve this problem.

    Did you try to connect in recovery mode? iOS: Unable to update or restore
    Also check here: iOS: Device not recognized in iTunes for Windows
    And make sure your security software is set up right: iTunes for Windows: Troubleshooting security software issues

  • HT201444 Getting error message 4005 so re-installed latest version of itunes, restarted computer, everythingis up to date. Still getting erro 4005. This happened when I went to update software. Face of ipad showing a cable not connecting to itunes

    How can i restore my ipad to factory settings?
    Getting error message 4005 so re-installed latest version of itunes, restarted computer, everythingis up to date. Still getting error 4005. This happened when I went to update software. Face of ipad showing a cable not connecting to itunes

    Usually a USB error. Read here:
    http://support.apple.com/kb/ts3694#4016
    To restore ipad: Settings > General >(Scroll down) >Reset > Erase All Content & Settings
    Cheers,
              Alec

  • HT3204 My iTunes cannot find my wireless network and I get erros saying I am not connected to a network.  What is the best way to resove this issue?

    Getting error message:  iTunes couldnot connect to the iTunes Store. An unknown error occurred (0x80092013)  Make sure your network connection is active and try again.  Obviously my network is active, or I would not be able use my internet connection to enter this community.  I have a Telus TwoWire Wireless modem.  I used the iTunes for Windows:  Network Connectivity Tests and found that it was finding my adaptors, but could not connect to my Wireless network.  can someone provide a method for iTunes to recognize my wireless network.  I can find lots of info on connecting to a WiFi iDevice, but nothing so far about setting up iTunes with my wireless info.  iTunes does not have seek network function in the settings, or at least I cannot find one.
    Thank you.

    Hi MeMiri,
    Welcome to the Support Communities!
    The article below will walk you through the troubleshooting steps for connectivity issues with iTunes:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    I hope this information helps ....
    Happy Holidays!
    - Judy

  • The selected printer connection method is incorrect. Select the....... ERRO

    Just upgraded to 10.5. I'm setting up a few printers and a plate maker. Got everything setup as far as I could tell but one machine wont work. It's an ImageRunner 8500 from Canon. When I try to print to that printer I get this:
    The selected printer connection method is incorrect. Select the correct printer connection method in printer list, and then try to add the printer again.
    Not what thats about. In the printer list, It shows up there with everything else that is connected via Appletalk. I got the PPD for the Konika Minolta CPP500 installed and it prints fine... any ideas? Thanks,
    Chris

    Hi John
    I tried Appletalk but that printer does not appear. However LPD does work. I think the problem was on checking my other Macs in the office, there is no way of telling whether they are connect via IPP or LPD as the set up appears the same, i.e. IP address. When I tried to add my the printer again, I had forgotten how we set it up originally.
    Many thanks for pointing me in the right direction.

Maybe you are looking for