Home >Database >Mysql Tutorial >How to install MySQL on 64-bit operating systems
MySQL database is one of the most popular relational database management systems in the industry and is widely used in Internet applications, enterprise information management, data warehouses and other fields. This article will introduce how to install MySQL on a 64-bit operating system and provide graphic instructions.
Step 1: Download the installation package
First you need to go to the MySQL official website https://dev.mysql.com/downloads/mysql/ to download the MySQL Community Server installation package. Select the version of your operating system in the drop-down menu and click "Download".
Note: The MySQL version installed this time is 8.0.23, and the installation methods for other versions are basically similar.
Step 2: Install MySQL
After the download is completed, double-click the installation package and select the "Typical" installation method.
The installation wizard will automatically detect whether the system environment meets the installation requirements. If so, click Next.
Here, you can choose the target path for MySQL installation, or you can use the default settings.
Set the root user password of the MySQL database.
Select the security options of the MySQL server.
The installation wizard will register the MySQL server as a Windows service in this step so that the MySQL server can be started when the system starts.
After the installation is complete, you can check the "Automatically start MySQL Server 8.0" option to have the MySQL server start when the system starts.
After completing the installation, click the "Finish" button to close the installation wizard.
Step 3: Start MySQL
Open the Windows service, find the "MySQL Server 8.0" service, and start it.
Step 4: Connect to MySQL
MySQL listens to port 3306 by default. You can use tools such as MySQL Workbench to connect to the MySQL database.
Open MySQL Workbench and select "New Connection".
Enter the connection information, including host name (localhost or 127.0.0.1), port number (default is 3306), user name and password.
Click the "Test Connection" button to test whether the connection is successful.
If everything is normal, the message "Successfully connected to MySQL server" is displayed, indicating that the connection is successful.
At this point, the installation of MySQL on the 64-bit operating system has been completed.
Summary:
You need to pay attention to the following points when installing MySQL:
Through the introduction and illustrations of this article, we believe that everyone has mastered the installation method of MySQL on a 64-bit operating system, laying a solid foundation for future learning and application of MySQL.
The above is the detailed content of How to install MySQL on 64-bit operating systems. For more information, please follow other related articles on the PHP Chinese website!