ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

Note: For MySQL 5.7+, please see the answer from Lahiru to this question. That contains more current information. For MySQL < 5.7: The default root password is blank (i.e., an empty string), not root. So you can just log in as: You should obviously change your root password after installation: In most cases you should … Read more

Cannot add or update a child row: a foreign key constraint fails

table #1: Field Type Null Key Default Extra UserID int(11) NO PRI NULL auto_increment Password varchar(20) NO Username varchar(25) NO Email varchar(60) NO table #2: Field Type Null Key Default Extra UserID int(11) NO MUL PostID int(11) NO PRI NULL auto_increment Title varchar(50) NO Summary varchar(500) NO Error: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child … Read more

Conversion failed when converting date and/or time from character string while inserting datetime

There are many formats supported by SQL Server – see the MSDN Books Online on CAST and CONVERT. Most of those formats are dependent on what settings you have – therefore, these settings might work some times – and sometimes not. The way to solve this is to use the (slightly adapted) ISO-8601 date format … Read more

The wait operation timed out. ASP

If you found the exact error “The wait operation timed out” then it is likely you have a database call that took longer than expected. This could be due to any number of things: Transient network problem High SQL server load Problem with SAN, RAID, or storage device Deadlock or other form of multiprocess contention … Read more