First: under windows mysql installation

History Version Download

windows version of mysql history, it is recommended to use version 5.6, stable (5.6.40)
https://downloads.mysql.com/archives/community/

Install, unzip

Mounting the package to extract the installation directory, into the bin, copy the directory path

Adding Environment Variables

Right My Computer, select Properties, select Advanced System Settings

Select Advanced environment variables

Select Path, select Edit

Select New, then paste into it, click OK to save it!

use

Open cmd, input mysqld, start mysql
back mysql connection it would be used in cmd.

cmd mysql process in operation

# 查看操作系统中是否已经启动mysqld 服务端
tasklist | findstr "mysqld"

# 杀死mysqld进程
taskkill /F /PID pid号

Modify the mysql configuration

1. Create a "my.ini" file name, this is the mysql configuration file

[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci

# 这个是用python软件连接的客户端
[client]
default-character-set=utf8

# mysql软件的客户端
[mysql]
# 可写,可不写这样可以不需要用户名与密码直接登录mysql
# user='root'
# password=123

# 设置默认的字符编码
default-character-set=utf8

2, restart the mysql service, that amendment is successful!

Appendix: Set mysql with the boot from Kai

Add the mysql system services, you can boot from the start, if you do not boot from Kai, the above steps have been enough.
1. You must have started the mysqld server turn off
2. deleted've already started the process of mysqld
3. Enter mysqld --install ----> mysqld system installation services
4. Enter the net start mysqld

Guess you like

Origin www.cnblogs.com/cnhyk/p/12327598.html