www.webdeveloper.com
Results 1 to 2 of 2

Thread: Tomcat+JSP+Mysql

  1. #1
    Join Date
    Oct 2003
    Posts
    183

    Tomcat+JSP+Mysql

    Hello

    I have a major problem I cant connect to my database when I exporting my info to my new webhotell, everything is working perfectly on my local maskin and on my old webhotel. You maybe wonder why I should change if its working with my old webhotel....because they suck, no service etc.

    I get this message when I try the get information from tables in my database:
    Invalid authorization specification, message from server: "Access denied for user: 'jsptest@mydomain.se' (Using password: YES)" (jsptest=user mydomain.se= mydomain)

    From the javaBeans the user are using this URL (in this case
    databasnamn="jsptest_test"):
    "jdbc:mysql://127.0.0.1/jsptest_test?user=" + anv + "&password=" + passw;"

    and this url where the jdbc driver can be found:
    driverName = "com.mysql.jdbc.Driver";

    Do you know what can be the error I would be really glad!

    Regards // D_S
    Last edited by digital_storm; 09-04-2004 at 05:28 AM.

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,119
    I am sure you have probably solved the problem..however just in case you haven't or anybody else who might have the same problem,here is the suggestion to solve it.

    1. Make sure that you have a valid user name and password in the database.
    2. By default MySQL creates a "root" user with no password.
    3. You can logon to the db using that without any password.

    And here is a detailed list of options for this type of errors
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles