windows64系统中mysql64位绿色安装
将下载压缩包解压到任意目录
配置安装文件:
# 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目录执行以下命令:
- mysqld --install mysql --defaults-file=[解压文件所以完整目录]\my-default.ini【运行安装服务】
- net start mysql【启动服务】
- net stop mysql【停止服务】
- mysqld --remove mysql【移除服务】
- mysql -u root -p【有密码连接数据库服务】
- mysql -u root【无密码连接到数据库服务】
- 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;
最新文章
- mobile cpu上禁用alpha test的相关总结
- [转]Java中的多线程你只要看这一篇就够了
- VBScript - CUD registry key and value
- Linux下安装Websphere MB所需的系统rpm包
- uva11181Probability|Given
- javascript简单笔记
- shell 脚本中for循环
- YiShop_商城网站建设应该注意什么
- 邓_ Php·笔记本[照片]
- Redis实际开发中常见问题
- Assignment HDU - 2853(求最小改变边数)
- 那些年我们没能bypass的xss filter[from wooyun]
- Django 1.11.7学习,配置MySQL数据库(python3.5)
- JavaSE面试题
- Linux/shell: Concatenate multiple lines to one line
- Windows安装mapnik
- mysql创建索引-----高性能(五)
- 机器人平台框架Yarp - Yet another robot platform
- innerHTML和innerText区分
- Java学习笔记(十)——xml
热门文章
- easyui datagrid中datetime字段的显示和增删改查问题
- oracle数据库高级应用之《自动生成指定表的insert,update,delete语句》
- ios 把已经点击过的UILocalNotification 从系统的通知中心现实中移除
- HDU 4870 Rating(概率、期望、推公式) &;&; ZOJ 3415 Zhou Yu
- Greedy:Sum of Consecutive Prime Numbers(POJ 2739)
- tomcat URL乱码问题
- Keepalived虚拟ip
- jquery this 与javascript的this
- Javascript题库
- 决绝Capturing 'demo' strongly in this block is likely to lead to a retain cycle