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

SQL Installation and Set Up FAQs 20221121

Uploaded by

borade.vijay
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)
7 views

SQL Installation and Set Up FAQs 20221121

Uploaded by

borade.vijay
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/ 20

Index Page

1. Common Installations Issues


1.1. While Installing the MySQL, which of the following options should I select ?
1.2. I am facing the following error. How should I fix this?
1.3. MySQL installation Video has a different version of MySQL installer in it. Which
version of MySQL should I install and how to check that ?
1.4. I am not able to use MySQL’s latest version. The error says I can not use this version
on my operating system as it is not compatible with the latest version of MySQL
installer. What should I do to fix this?
1.5. How can I Install MySQL 5.7 using Homebrew ?
1.6. I was not able to successfully install MySQL in my system. I have removed it using
the Control Panel, should I go ahead and install MySQL again?
2. I don't know how to get tables and data from the given ORDERS_DB file. How to
import this file into the MySQL workbench?
3. I have imported the dump file and tables are created for it. When I am writing
queries for these tables, it causes an error that the table doesn't exist. What should
I do ?
4. I have imported a dump file into SQL workbench. I am not able to see the imported
[email protected]
KP2WFEJ3RX
database. How to refresh the schema in the MySQL workbench ?
5. I am a Mac User and it is not allowing me to Open MySQL on my system. What
should I do?
6. I have downloaded the New Wheels project file and I am not able to Unzip these
files. How to unzip these files ?
7. I have written SQL queries for Project and Practice Exercise into MySQL workbench.
I want to save these queries. How to save SQL queries into a .sql file ?
8. I have written SQL queries and got the output. I want to export the result into a csv
file. How to Export and Save the output query?
9. I am unable to see the execute code option and the Query tab shows Unconnected.
How to Re-Connect to the DBMS?
10. I have Forgotten my password. How should I reset my password ?
11. I have installed MySQL and I am unable to connect to Server and I am facing No
connection established error. How should I get rid of this error?
12. What is a Dump file?
13. How to uninstall the MySQL properly?
14. Why do we get a line with nulls at the end of the query output ?
15. What is the difference between Error and Warning?

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.
1.0 Installation errors

1.1 While Installing the MySQL, which of the following options should I
select ?
Once the download is complete, you should refer to the steps provided in the
MySQL installation. You should select the Full version as a Set up type while installing it.
Refer to the highlighted option in the following image.

[email protected]
KP2WFEJ3RX

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.
1.2 I am facing the following error. How should I Fix this ?
You may also face the following error during the installation in the MySQL installer

[email protected]
KP2WFEJ3RX

The issue might be due to unavailability of Microsoft Visual C++ 2015-2019 Redistributable in

your system. You can refer to the following steps-

Step 1 - Go to the Programs under Control Panel and search for Microsoft Microsoft Visual

C++ 2015-2019 Redistributable.

Step 2 - If it is not available, you can download it from the following link for X64.

Link for Microsoft Visual C++

Step 3 - Once it is installed, now you can try to install MySQL using the provided video for
installation.

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.
1.3 MySQL installation Video has a different version of MySQL installer in it.
Which version of MySQL should I install and how to check that ?
The MySQL Installer gets updated from time to time. So please make sure that you download
the latest version of this as per your OS.

[email protected]
KP2WFEJ3RX

1.4 I am not able to use MySQL’s latest version. The error says I can not use
this version on my operating system as it is not compatible with the latest
version of MySQL installer. What should I do to fix this?
If your Mac is older than MySQL then you have to install the Archive version of MySQL. Refer
to the following example.

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 should refer to the following link to install the archive version of MySQL installer.
https://dev.mysql.com/downloads/mysql/

You can select the Product version and OS from the drop down and then download.
Following image is just an example.
[email protected]
KP2WFEJ3RX

1.5 How can I Install MySQL 5.7 using Homebrew ?


If you want to install MySQL using Homebrew you can refer to the following link for the same.
Installing-mysql-5-7-using-homebrew

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.
1.6 I was not able to successfully install MySQL in my system. I have
removed it using the Control Panel, should I go ahead and install MySQL
again?
If you were not able to complete the installation due to any error Or Installation abrupt, you
must remove all the MySQL files by referring to the FAQ- Uninstallation of MYSQL.

Please note that uninstalling MySQL using the Control Panel does not necessarily remove
all the MySQL files from your system. Hence you should use the FAQ- Uninstallation of
MYSQL for Uninstalling it, and then try to re-install it using the MySQL Installation guide.

2.0 I don't know how to get tables and data from the given
ORDERS_DB file. How to import this file into the MySQL workbench?

Step 1 - Go to Server from the top left menu and click on Data Import

[email protected]
KP2WFEJ3RX

Step 2 - Select Import from Self-Contained File and browse the SQL dump file

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.
Step 3 - Once the file is selected, go to Default to be Imported To and select the schema from
Drop down under Default Target Schema or hit on the New button.

[email protected]
KP2WFEJ3RXStep 4 - Go to the Import Progress tab from the top and hit the Start Import button in the
bottom right section.

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.
It will take some time to import the file. The entire bar will be green once it’s been imported.

[email protected]
KP2WFEJ3RX

Step 5 - Go to Schemas in the left menu and click on the refresh icon. You will be able to see
the added tables/schemas here.

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.0 I have imported the dump file and tables are created for it. When I
am writing
[email protected] queries for these tables, it causes an error that the table
KP2WFEJ3RX
doesn't exist. What should I do ?
Following image is just an example of the above issue.

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 above error occurs when you have not selected the database from which you are
accessing the tables. You can refer to the following steps to select the database.
The following screenshot has listed various databases under the SCHEMAS section. You can
choose any database you want to from which you want to fetch the data.

[email protected]
KP2WFEJ3RX

Method 1 - You can double click on the database to select the database to write queries.

OR

Method 2 - You can refer to the following command to select the database.
USE database_name;

Once the database is selected using any of the above mentioned methods, the selected
database will be seen as bold under the SCHEMAS section . For example, the orders database
has been selected in the following image.

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 can also check the selected database in the left bottom.

4.0 I have
[email protected] imported a dump file into SQL workbench. I am not able to
KP2WFEJ3RX
see the imported database. How to refresh the schema in the MySQL
workbench ?
You can click on the refresh icon next to the SCHEMAS under Navigator. You can refer to the
above screenshot for the same.

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.
5.0 I am a Mac User and it is not allowing me to Open MySQL on my
system. What should I do?
Please refer to the following Youtube video to understand the steps for Mac users
[email protected]
KP2WFEJ3RX

macOS - How To Open Unidentified Developer Apps & Allow Downloads From Anywhere On
Apple Mac

6.0 I have downloaded the New Wheels project file and I am not able to
Unzip these files. How to unzip these files ?
If you are not able to open the zip files provided in the course content you can refer to
the following steps for Windows and Mac users respectively.

I am a Windows user
Refer to the following steps to unzip the file using WinRAR for Windows
● Download the dataset file
● Double click on the downloaded WinRAR file and a window will appear
● You can close the Purchase license pop up
● Select the file and click on Extract To and select the path to save the dataset file
● File would be unzipped at the mentioned location.

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.
I am a Mac User

If you are using a Mac then you can refer to the following link.Tutorial: How to unzip files

on Mac.

7.0 I have written SQL queries for Project and Practice Exercise into
MySQL workbench. I want to save these queries. How to save SQL
queries into a .sql file ?
Once you have written queries in MySQL workbench and you want to save them for later use,
you can refer to the following steps to save them.
Step 1 - Go to the SQL query tab where you have written the SQL queries
Step 2 - Go to File section from top Menu
Step 3 - Click on Save Script and save the file with appropriate name along with .sql
extension.
Step 4 - Once it’s saved, you can go to this file, click on it, open it into MySQL and get the
saved queries.
[email protected]
KP2WFEJ3RX

8.0 I have written SQL queries and got the output. I want to export the
result into a csv file. How to Export and Save the output query?
Once you have run and got the output from a SQL query, you can export the output using the
following steps-

Step 1 - Run the query with the expected output. Let's say that you have run the following
query and the output for the query has been displayed.

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.
Step 2 - Click on the Print Icon next to the Export/Import. Refer to the highlighted icon.

[email protected]
KP2WFEJ3RX

Step 3 - Once you click on the above highlighted icon, a window will appear for file name, file
type and file location. You can give the appropriate file name and save it at the desired location
with file extension.

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.
9.0 I am unable to see the execute code option and the Query tab
shows Unconnected. How to Re-Connect to the DBMS?
When you are working on MySQL workbench, the connection might be disrupted due to any
[email protected]
KP2WFEJ3RX
reason. The screen might look like the following image.

You can click on the highlighted icon in the following image and Re-connect to the DBMS.

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.
10.0 I have Forgot my password. How should I reset my password ?
[email protected]
KP2WFEJ3RX
You can refer to the following Youtube link to reset the password for MySQL workbench.
https://www.youtube.com/watch?v=rr_hDJLFvQE

11.0 I have installed MySQL and I am unable to connect to Server and I


am facing No connection established error. How should I get rid of this
error?
You can refer to the following steps to Connect to the MySQL Server

Step 1 - Search the Services from the Search bar

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.
Step 2 - Go to the list of Services and find MySQL80

[email protected]
KP2WFEJ3RX

Step 3 - Right click on MySQL80 and click on the Properties.

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.
Step 4 - Go to Startup type and select the Automatic.

[email protected]
KP2WFEJ3RX

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.
Step 5 - Once you select the Automatic, click on Apply and hit OK.

This will enable you to connect to your server automatically going forward.

[email protected]
KP2WFEJ3RX

12.0 What is a Dump file?


● A database dump file contains a record of the table structure and/or the data
from a database and is usually in the form of a list of SQL statements ("SQL
dump").
● A database dump is most often used for backing up a database so that its
contents can be restored in the event of data loss.
● You can import the dump file and get the required database and its tables
without writing queries for creating tables.
● The steps to import the dump file are mentioned in the documentation.

13.0 How to uninstall the MySQL


You can refer to the FAQ- Uninstallation of MYSQL Document provided to follow step by step
Uninstallation of MySQL.

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.
14.0 Why do we get a line with nulls at the end of the query output ?
The output of each query has a final row with an asterisk beside it and null values for every
field. This represents the end of the output of the query. You can add/insert the records in
the given table in that line.

15.0 What is the difference between Error and Warning?

An error in MySQL informs you that you actually did something wrong, describes the problem,
and stops the process or query.

[email protected]
KP2WFEJ3RX

A warning will not stop anything, but is there to tell you that something happened that is not
expected (or there may be a potential issue) and it's not critical enough to terminate.

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