Home > Database > Mysql Tutorial > How to configure Mysql and the Mysql service cannot be started

How to configure Mysql and the Mysql service cannot be started

黄舟
Release: 2017-08-02 09:12:25
Original
1327 people have browsed it

Mysql compressed package installation and configuration tutorial

1. First download the Mysql compressed package on the official website, download and unzip it.

How to configure Mysql and the Mysql service cannot be started

#2. Create a new folder data in your Mysql directory. Make sure data is empty

How to configure Mysql and the Mysql service cannot be started

3. Configure the my-default.ini file, your own address, and save it.

How to configure Mysql and the Mysql service cannot be started

How to configure Mysql and the Mysql service cannot be started

##4. Configure the environment variables of mysql environment (If you don’t know how, go to Baidu by yourself), just add it. Don't log in yet.


5. Install Mysql, open the command prompt (administrator), you must be an administrator or you will not have enough permissions. Enter

mysqlld -install and the installation is successful, then enter a very important sentence

mysqld --initialize-insecure --user=mysql
Copy after login

The user name is root and the password is empty

How to configure Mysql and the Mysql service cannot be started


##6. Next start the mysql service

net start mysql
Copy after login

How to configure Mysql and the Mysql service cannot be started

7. Then you can use Navicat to connect with user name root password

Notes

data must be empty

mysqld --initialize-insecure --user=mysql Important

The above is the detailed content of How to configure Mysql and the Mysql service cannot be started. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template