将下载压缩包解压到任意目录

配置安装文件:

# 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.

[mysqld]

[client]
#password = 111111
port = 3306
socket = /tmp/mysql.sock
default-character-set=gbk
# 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 = 128M

# 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.
basedir =F:\SysData\mysql
datadir =F:\SysData\mysql\data
port = 3306
socket = /tmp/mysql.sock
default-character-set=uft8
# server_id = .....

# 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

在命令窗口中进入解压包的bin目录执行以下命令:

  1. mysqld --install mysql --defaults-file=[解压文件所以完整目录]\my-default.ini【运行安装服务】
  2. net start mysql【启动服务】
  3. net stop mysql【停止服务】
  4. mysqld --remove mysql【移除服务】
  5. mysql -u root -p【有密码连接数据库服务】
  6. mysql -u root【无密码连接到数据库服务】
  7. mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');【为root设置登录密码】

修改root密码:

mysql -u root

mysql> use mysql;

mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';

mysql> FLUSH PRIVILEGES;

最新文章

  1. mobile cpu上禁用alpha test的相关总结
  2. [转]Java中的多线程你只要看这一篇就够了
  3. VBScript - CUD registry key and value
  4. Linux下安装Websphere MB所需的系统rpm包
  5. uva11181Probability|Given
  6. javascript简单笔记
  7. shell 脚本中for循环
  8. YiShop_商城网站建设应该注意什么
  9. 邓_ Php·笔记本[照片]
  10. Redis实际开发中常见问题
  11. Assignment HDU - 2853(求最小改变边数)
  12. 那些年我们没能bypass的xss filter[from wooyun]
  13. Django 1.11.7学习,配置MySQL数据库(python3.5)
  14. JavaSE面试题
  15. Linux/shell: Concatenate multiple lines to one line
  16. Windows安装mapnik
  17. mysql创建索引-----高性能(五)
  18. 机器人平台框架Yarp - Yet another robot platform
  19. innerHTML和innerText区分
  20. Java学习笔记(十)——xml

热门文章

  1. easyui datagrid中datetime字段的显示和增删改查问题
  2. oracle数据库高级应用之《自动生成指定表的insert,update,delete语句》
  3. ios 把已经点击过的UILocalNotification 从系统的通知中心现实中移除
  4. HDU 4870 Rating(概率、期望、推公式) && ZOJ 3415 Zhou Yu
  5. Greedy:Sum of Consecutive Prime Numbers(POJ 2739)
  6. tomcat URL乱码问题
  7. Keepalived虚拟ip
  8. jquery this 与javascript的this
  9. Javascript题库
  10. 决绝Capturing 'demo' strongly in this block is likely to lead to a retain cycle