We have a back end procedure that inserts/updates records in a table. Usually the upload file will have around 20k records. This procedure is called from our application which is designed using hibernate,struts.
Upload is getting completed. But after the upload is over and control goes to application code, we are again hitting the above table to get some details. Is this the root cause for the below issue?
This is what we get in application logs,
SQL Error: 4060, SQLState: S1000
2007-04-30 16:17:27,840 - ERROR [TP-Processor2] JDBCExceptionReporter.logExceptions(58) | Cannot open database "sdgebis" requested by the login. The login failed.
2007-04-30 16:17:27,840 - WARN [TP-Processor2] JDBCExceptionReporter.logExceptions(57) | SQL Error: 18456, SQLState: 28000
2007-04-30 16:17:27,840 - ERROR [TP-Processor2] JDBCExceptionReporter.logExceptions(58) | Login failed for user 'sa'.
2007-04-30 16:17:27,856 - WARN [TP-Processor2] SQLErrorCodeSQLExceptionTranslator.translate(279) | Unable to translate SQLException with errorCode '4060', will now try the fallback translator
What could be the reason for the above error?
Can anyone help me out please?Sounds like the two connections use different logins. And only one of them is mapped to a user in the database.
Showing posts with label upload. Show all posts
Showing posts with label upload. Show all posts
Monday, March 19, 2012
Friday, February 10, 2012
Cannot find file or directory?
Hello. I'm a newbie and stuck.
****
You will need to upload your database file to your web space.
You can use SSH to telnet into the account and use the following command:
mysql -u database_username -p database_name < filename
For example, if your database username is foo and your database file foo.sql, you would use: mysql -u foo -p foodb < foo.sql
*****
When I enter, using Putty, I keep getting the message "can't find file or director" Now from what I gather, I need to be in the same directory as the .sql file. I have tried uploading the .sql dat file straight onto the the public_html on the server, and run the Putty.exe programme from there, also put the Putty.exe programe inside the folder alongside the .sql folder on my hard drive, but still no luck. I've been at this foor days, and read countless threads on it. Can someone please help me understand where I'm going wrong. Thank you.Hi,
Case 1: you OS is Windows
----------
By default the file will be picked from the bin folder. So your foo.sql should be there in bin folder. Or else if you want to keep your file in c:\sql folder then give the full path.
Case 2: Unix OS
------
Most of the cases you cannot keep your file in bin fodler because of lack of permission. Place your file in ur home directory and give the full path name.
****
You will need to upload your database file to your web space.
You can use SSH to telnet into the account and use the following command:
mysql -u database_username -p database_name < filename
For example, if your database username is foo and your database file foo.sql, you would use: mysql -u foo -p foodb < foo.sql
*****
When I enter, using Putty, I keep getting the message "can't find file or director" Now from what I gather, I need to be in the same directory as the .sql file. I have tried uploading the .sql dat file straight onto the the public_html on the server, and run the Putty.exe programme from there, also put the Putty.exe programe inside the folder alongside the .sql folder on my hard drive, but still no luck. I've been at this foor days, and read countless threads on it. Can someone please help me understand where I'm going wrong. Thank you.Hi,
Case 1: you OS is Windows
----------
By default the file will be picked from the bin folder. So your foo.sql should be there in bin folder. Or else if you want to keep your file in c:\sql folder then give the full path.
Case 2: Unix OS
------
Most of the cases you cannot keep your file in bin fodler because of lack of permission. Place your file in ur home directory and give the full path name.
Subscribe to:
Posts (Atom)