In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install mysql with zip. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Mysql uses the zip installation method: first download the zip file and extract it to the local; then modify the configuration file and copy the relevant contents; then type cmd to run the console as an administrator and run the mysqld install command; finally, set the initial password and execute the [mysql-u root-p] statement.
Mysql uses the zip installation method:
I have always been accustomed to using the MySQL installation file (.exe). Today I downloaded a .zip version of MySQL. I encountered some problems during the installation process, as follows:
1. Download the installation-free version of zip file on the MySQL official website (http://dev.mysql.com/downloads/mysql/) (this article takes mysql-5.7.14-winx64.zip as an example)
2. Extract the zip file locally, and decompress it to the following directory: d:\ softwares\ mysql-5.7.14-winx64
3. Create a new configuration file (my.ini) to configure the character set, port and other information to overwrite the original configuration file (my-default.ini). Of course, you can also modify this default configuration file. Create a new folder data to store MySQL data. As follows:
Copy the following to the newly created configuration file, where basedir and datadir set the mysql folder path:
[mysql]
# set mysql client default character set
Default-character-set=utf8
[mysqld]
# set port 3306
Port = 3306
# set the installation directory of mysql
Basedir=D:\\ softwares\\ mysql-5.7.14-winx64
# set the storage directory of the data in the mysql database
Datadir=D:\\ softwares\\ mysql-5.7.14-winx64\\ data
# maximum number of connections allowed
Max_connections=200
# the character set used by the server defaults to UTF8
Character-set-server=utf8
# default storage engine to be used when creating new tables
Default-storage-engine=INNODB
4. Type cmd, run the console as an administrator, go to the MySQL path (D:\ softwares\ mysql-5.7.14-winx64\ bin), and run the mysqld install command. Note: you need to run as an administrator here, otherwise the prompt is as follows:
Start the mysql service and assume that everything is ok. The result is as follows:
6. Searching for the error message of 3534 on the Internet, some people say that it is necessary to execute the mysqld-initialize method (http://www.mamicode.com/info-detail-1150164.html) since 5.7.6. The solution is as follows:
1) execute the mysqld-remove command to remove the previous erroneous installation, otherwise you will be prompted that it has been installed
2) execute mysqld-- initialize command, then execute mysqld install, then execute net start mysql to start MySQL, all ok
7. Execute "mysqladmin-u root password password" to set the initial password. After setting ok, execute mysql-u root-p enter and enter the password to log in to mysql.
Thank you for reading! On how to use zip installation of mysql to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.