0% found this document useful (0 votes)
22 views

FAQ - Week-1 Introduction To Databases and Fundamentals of SQL

Uploaded by

Mayur Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

FAQ - Week-1 Introduction To Databases and Fundamentals of SQL

Uploaded by

Mayur Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

1.

Guideline:

Always keep the password in mind. Always establish a simple password when installing MYSQL
(e.g., root). Alternatively, attempt to remember the password by writing it down in a safe place.

2. I’m getting an error while updating or deleting the rows in a table. How can I
troubleshoot this?

If you're having trouble updating or deleting rows in a table, try the code below-
SET SQL_SAFE_UPDATES = 0;
For reference please refer to the screenshot provided -

[email protected]
39GCUAX2OS

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
Sometimes while running the above code (SET SQL_SAFE_UPDATES = 0;) and updating the
column, error code 1451 appears - Error Code: 1451. Cannot delete or update a parent row: a
foreign key constraint fails.
[email protected]
For this error need to run the below code -
39GCUAX2OS
The workaround for that can be to disable foreign key checks by executing the following:

SET FOREIGN_KEY_CHECKS=0;

After you are done updating the required fields, you can turn it on by executing the following:

SET FOREIGN_KEY_CHECKS=1;

For reference please refer to the screenshot provided -

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
[email protected]
39GCUAX2OS

By running the above code you can update the desired columns.

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
3. If I’m facing an unforeseen issue with MySQL, how do I reinstall it?

If you are unable to install MySQL, always check your system to see if MySQL is already installed
or not. If it is already installed and if it is facing an issue, please uninstall the complete MSQL. Go
to the control panel and uninstall all the components of MySQL. For installation, please refer to
the document MySQL Installation-Windows.pdf provided on Olympus. For installation
purposes, please follow the steps provided in the document.
For uninstalling, please refer to the screenshot provided for uninstallation.

[email protected]
39GCUAX2OS

As per the above screenshot, go to the control panel and you need to uninstall all the
components of MYSQL shown above.

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
4. I’m not able to establish a connection to the local MySQL server in my system? What
should I do?

To access the MYSQL workbench a connection needs to be established. Please refer to the
screenshot provided to establish the connection-

[email protected]
39GCUAX2OS

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
[email protected]
39GCUAX2OS

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.
The MYSQL workbench connection can be readily established by following the procedures
above.
[email protected]
39GCUAX2OS

This file is meant for personal use by [email protected] only.


Sharing or publishing the contents in part or full is liable for legal action.

You might also like