1./s; (semicolon all commands, unlike Sqlserver, Oracle),
View the current configuration Mysql
For Unicode, do the following:
(1) my.ini file is mysql configuration file,
Create a my.ini file \ mysql-5.6.40-winx64 next file (installation path): In C
(2) save the copy of the code as follows.
[mysqld]
# mysql disposed behind ** installation directory path must be installed sql directory (own computer) **
the basedir = C: \ mysql-5.7.22-Winx64 \ mysql-5.7.22-Winx64
# Set mysql data storage directory database must be data
DATADIR = C: \ MySQL-5.7.22-Winx64 \ MySQL-5.7.22-Winx64 \ data
the sql_mode = NO_ENGINE_SUBSTITUTION, the STRICT_TRANS_TABLES
# mysql端口
port=3306
# 字符集
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
(3) as an administrator to restart the service, execute the following command
C:\Windows\system32>net stop MySQL MySQL 服务正在停止.. MySQL 服务已成功停止。 C:\Windows\system32>net start MySQL MySQL 服务正在启动 . MySQL 服务已经启动成功。
(4)在cmd中输入mysql进入mysql环境,执行\s,显示如下信息,表示成功