mysql download and install

1. Download the mysql installation package
mysql official website download address: http://dev.mysql.com/downloads/installer/

2. Unzip
3. Configure environment variables:
  In the Windows system environment variable path, add the following content: MYSQL installation directory\bin ; (note the semicolon)
4. Register mysql as a Windows system service:
   in the command line (shortcut key to open win+R Note: right-click the win10 system bit menu to select administrator mode) execute the following command (you need to run as an administrator) Command line): You
   need to switch to the bin directory, otherwise, the service directory will be designated as the MYSQL installation directory\mysqld
   to add a service command: mysqld install MySQL --defaults-file="MYSQL installation directory\my.ini" The
   command to remove the service is: : mysqld remove
5. Open system service management:
   start mysql command on the command line: net start mysql
   close mysql command: net stop mysql
6. Modify root password:
  execute the command: mysql –uroot
           mysql>show databases;
           mysql>use mysql ;
           mysql> UPDATE user SET password=PASSWORD('new password') WHERE user='root';
          mysql> FLUSH PRIVILEGES;
           mysql> QUIT

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326655000&siteId=291194637
Recommended