标签:
Windows (x86, 32-bit), ZIP Archive | 5.6.23 | 342.3M | ||
(mysql-5.6.23-win32.zip) | MD5: d55ea458590c92060a790ba22e9b4222 | Signature |
MYSQL_HOME
E:\develop\database\mysql\mysql-5.6.21
在PATH变量后追加
;%MYSQL_HOME%\bin
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It‘s a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysql] #设置mysql客户端的字符集 default-character-set = utf8 [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. innodb_buffer_pool_size = 256M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. # 设置mysql的安装目录 basedir = E:/develop/database/mysql/mysql-5.6.21 # 设置mysql数据库的数据的存放目录 datadir = E:/develop/database/mysql/mysql-5.6.21/data # 设置绑定端口 port = 3366 # server_id = ..... #设置服务器段的字符集 character_set_server = utf8 # 允许最大连接数 max_connections = 10 # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
mysqld install jianSQLService --defaults-file="E:\develop\database\mysql\mysql-5.6.21\jian.ini"
net start jianSQLService
mysql -P3366 -uroot -p
参数说明:
-h: mysql服务器地址。若本机,可省略;
-P: mysql服务器端口。若默认3306,可省略;
-u: 用户名;
-p: 密码。密码为空,可省略。
mysql> update mysql.user set password=password("jian") where User="root"; Query OK, 3 rows affected (0.00 sec) Rows matched: 3 Changed: 3 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)
net stop jianSQLService
mysqld –remove
或者
sc delete jianSQLService
标签:
原文地址:http://www.cnblogs.com/final/p/4279021.html