1 Installation Download the corresponding unzipped version from the MYSQL official website and put it in the directory you want. Then we need to create a file called my.ini. Note that the file suffix must end with .ini. If the file suffix is hidden, you can check it, as shown in the figure: Create file: my.ini. Its contents are as follows: [client] port=3306 default-character-set=utf8 [mysqld] # Set to your own MYSQL installation directory basedir=D:\Program Files\mysql-5.7.24-winx64 # Set to MYSQL data directory datadir=D:\Program Files\mysql-5.7.24-winx64\data port=3306 character_set_server=utf8 sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER # Enable query cache explicit_defaults_for_timestamp=true skip-grant-tables The mysql command will automatically create a data folder. Run cmd with administrator privileges, enter the mysql bin directory, and run:
If no error is reported:
Then start the mysql server If there is no error in net start mysql, it will prompt that the MySQL server has been started successfully. Log in to mysql -u root -p. No password is required for the first login. Just enter to access the MySQL command line. Common errors encountered during the creation process are: 1 MySQL cannot start The MySQL service is starting. The MySQL service failed to start. The service did not report any errors. The reason why this problem occurred to me was that the data folder was created manually. I needed to delete the data folder and then automatically create the data folder through the command mentioned above. 2 install/remove of the service denied This error means that the service was refused to install/remove. For now, there are only two errors, and more will be added later. Summarize The above is the installation of the unzipped version of MYSQL and the errors and solutions encountered by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: JS implements a simple brick-breaking pinball game
>>: Tutorial on installing php5, uninstalling php, and installing php7 on centos
One line command docker run -d \ -v /share:/home/...
Preface MySQL officially refers to prepare, execu...
This article example shares the specific code for...
This article introduces how to solve the problem ...
Text carousels are very common in our daily life....
As shown below: XML/HTML CodeCopy content to clip...
When I switched my primary operating system from ...
1. Database transactions will reduce database per...
Table of contents Scenario Effect Code Summarize ...
background go-fastdfs is a distributed file syste...
As a backend programmer, sometimes I have to tink...
This article shares the specific code for impleme...
1. Review Vue responsive usage Vue responsivenes...
When connecting to the local database, navicat fo...
When browser vendors bend the standards and take i...