This article explains how to install MySQL from a compressed package. 1. Download the MySQL compressed package, [Windows (x86, 64-bit), ZIP Archive]; 2. Unzip the Zip package to the required directory, for example, D:\mysql-5.7.18-winx64; 3. Create the my.ini file with the following content: [mysqld] port=3306 basedir=D:\\mysql-5.7.18-winx64\\ datadir=F:\\mysqlData\\ character-set-server=utf8 Note that basedir and datadir must be configured, basedir is the directory where you unzipped the files. The official documentation says that if you like to use slashes, you should use double slashes, but not backslashes. That is: D:\\mysql-5.7.13-winx64\\ or: D:/mysql-5.7.13-winx64/ 4. Configure environment variables Add a variable called MYSQL_HOME. 5. Initialize and start the Mysql service Run cmd with administrator privileges, initialize MySQL, and execute mysqld --initialize-insecure Register the MySQL service, start MySQL, and execute mysqld -install net start mysql 6. Log in to MySQL and set the root password mysql -uroot -p When you log in for the first time, press Enter to log in without a password. After logging in to MySQL, set the root password ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!'; After changing the password, we can log in successfully using root. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
>>: Tutorial on installing MySQL on Alibaba Cloud Centos 7.5
Stored procedures and coding In MySQL stored proc...
0. Introduction August 18, 2016 Today, I noticed ...
Will mysql's IN invalidate the index? Won'...
I made a Dockerfile for openresty on centos7 and ...
Generally, during the development process, the su...
1: django-admin.py startproject project name 2: c...
Compared with the old life cycle Three hooks are ...
Call How to call Amap API? The official open docu...
Install antd-mobile Global import npm install ant...
Prerequisites Need to install git Installation St...
Table of contents 1. What is a directive? Some co...
Introduction Animation allows you to easily imple...
1. dhtmlxTree dHTMLxTree is a feature-rich Tree M...
Table of contents Single-machine deployment Onlin...
Table of contents Container Hierarchy The process...