


mysql5.7.21 decompressed version installation and configuration pictures and texts
This article mainly introduces in detail the graphic tutorial on the installation and configuration method of MySQL 5.7.21 decompressed version under win10. It has certain reference value. Interested friends can refer to it. I hope it can help everyone.
1. Download the MYSQL compressed file from the official website.
Download URL
2. Unzip the file
Decompress directly, and install the package directory after decompression As follows: (Note: There is no data directory and .Ini file at this time)
3. Put the file into the directory you want to put, the following is what I put Directory
4. Since there is no .ini file after decompression, create a new my.ini file in this directory
The content of the .Ini file is as follows:
[mysqld] port = 3306 basedir=C:\Program Files\MYSQL\MySQL Server 5.7.21 datadir=C:\Program Files\MYSQL\MySQL Server 5.7.21\data max_connections=200 character-set-server=utf8 default-storage-engine=INNODB sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [mysql] default-character-set=utf8
Note two places:
The path is the path you put in step 3.
5. Configure environment variables
Open the control panel and select "Advanced System Settings"
In the pop-up Select "Advanced" in the tab, then select "Environment Variables"
Create a new "MYSQL_HOME" value in the system variable "C:\Program Files\MYSQL\MySQL Server 5.7. 21" (the path stored in step 3)
6. MYSQL installation
"Microsoft key + Q" to open search CMD
Run "Command Prompt" as administrator.
Enter the MYSQL directory cd C:\Program Files\MYSQL\MySQL Server 5.7.21\bin
Run mysqld --initialize
Run mysqld -install
Run net start mysql to start the service
7. Set the Root account password
Modify the MySQL configuration file (my.ini) and add a line skip-grant-tables under [mysqld]
Restart mysql After that, you can directly enter with mysql -u root -p (the password is empty at this time);
Enter update mysql.user set authentication_string=password("root") where user="root";
Enter flush privileges;
Enter quit;
Restore the my.ini file (delete the skip-grant-tables line) and restart mysql
You can use it at this time mysql -u root -p root entered
Note:
You may encounter the following errors during the installation process:
MySQL service cannot be started.
The service did not report any errors.
Please type NET HELPMSG 3534 for more help.
Processing:
Check whether data exists in the MYSQL directory and reinstall.
Enter sc delete mysql to delete the original MYSQL and repeat step 6
Related recommendations:
mysql5.7.21 winx64 installation configuration graphic sharing
mysql5.7.21.zip installation example tutorial
Detailed explanation of the steps to install MySql5.7.21 in Linux
The above is the detailed content of mysql5.7.21 decompressed version installation and configuration pictures and texts. For more information, please follow other related articles on the PHP Chinese website!

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
