In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Go to the mysql official website to download mysql5.7.18-win64.zip (the latest version) and decompress it.
Https://dev.mysql.com/downloads/windows/installer/5.7.html
2. Extract it to the drive letter of windows, where I put it in the mysql folder of E disk, (D:\ mysql\ mysql-5.7.18-winx64)
3. Create a my.ini configuration file and data folder under the D:\ mysql\ mysql-5.7.18-winx64 directory to store data. The configuration file is as follows:
[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:/mysql/mysql-5.7.18-winx64
# set the storage directory of the data in the mysql database
Datadir=D:/mysql/mysql-5.7.18-winx64/data
# maximum number of connections allowed
Max_connections=200
# the character set used by the server defaults to the 8-bit coded latin1 character set
Character-set-server=utf8
# default storage engine to be used when creating new tables
Default-storage-engine=INNODB
4. Then open cmd, run it as an administrator, go to the bin directory, D:\ mysql\ mysql-5.7.18-winx64\ bin >, and initialize it, otherwise an error will be reported. The command is as follows (the command runs under bin): mysqld-- initialize; is then installed with mysqld-install, and then the service is started using net start mysql
5. If initialization is successful, a xxx.err file will be generated in the data directory. This xxx is the name of the computer. The random login password generated by mysql for root users will be recorded.
6. Log in with mysql-uroot-p under bin, and the password is the random password in xxx.err
7. After login, modify the root password, set password=password ('NewPassword'). The password contains uppercase and lowercase letters plus numbers, otherwise the password will be wrong if it is too simple.
Attachment: http://down.51cto.com/data/2366774
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.