Home > Database > Mysql Tutorial > How to configure mysql after installing it

How to configure mysql after installing it

coldplay.xixi
Release: 2020-11-12 10:29:13
Original
2418 people have browsed it

The configuration method for installing mysql: first open the bin directory of mysql and install the mysql service; then initialize mysql and enable the mysql service; finally log in and verify.

How to configure mysql after installing it

More related free learning recommendations: mysql tutorial(video)

Configuration method for installing mysql:

*Open the command line as an administrator (as shown in the figure below)

How to configure mysql after installing it

①Go to In the bin directory of mysql:

How to configure mysql after installing it

②Install the mysql service: mysqld --install

How to configure mysql after installing it

③Initialize mysql. Here, initialization will generate a random password, as shown in the frame below. Remember this password, which will be used later (mysqld --initialize --console)

How to configure mysql after installing it

④Start the mysql service (net start mysql)

How to configure mysql after installing it

⑤Login verification, whether mysql is installed successfully! (Please note that the random password generated above does not include the space before the previous symbol, otherwise the login will fail). If it is the same as the picture below, it means that your MySQL has been installed successfully! Note, you must first enable the service, otherwise the login will fail and an access denied prompt will appear! ! !

How to configure mysql after installing it

The above is the detailed content of How to configure mysql after installing it. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template