SQL Installation and Set Up FAQs 20221121
SQL Installation and Set Up FAQs 20221121
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.
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
The issue might be due to unavailability of Microsoft Visual C++ 2015-2019 Redistributable in
Step 1 - Go to the Programs under Control Panel and search for Microsoft Microsoft Visual
Step 2 - If it is not available, you can download it from the following link for X64.
Step 3 - Once it is installed, now you can try to install MySQL using the provided video for
installation.
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.
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.
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.
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
Step 2 - Select Import from Self-Contained File and browse the SQL dump file
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.
Step 4 - Go to the Import Progress tab from the top and hit the Start Import button in the
bottom right section.
It will take some time to import the file. The entire bar will be green once it’s been imported.
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.
3.0 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 ?
Following image is just an example of the above issue.
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.
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.
You can also check the selected database in the left bottom.
4.0 I have imported a dump file into SQL workbench. I am not able to
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.
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
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.
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.
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.
Step 2 - Click on the Print Icon next to the Export/Import. Refer to the highlighted icon.
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.
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
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.
10.0 I have Forgot my password. How should I reset my password ?
You can refer to the following Youtube link to reset the password for MySQL workbench.
https://www.youtube.com/watch?v=rr_hDJLFvQE
This will enable you to connect to your server automatically going forward.
An error in MySQL informs you that you actually did something wrong, describes the problem,
and stops the process or query.
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.