@H_502_1@《MysqL教程MysqL 5.7.14 免安装版注意事项(精)》要点:
本文介绍了MysqL教程MysqL 5.7.14 免安装版注意事项(精),希望对您有用。如果有疑问,可以联系我们。
MysqL实例@H_502_1@相关阅读:
MysqL实例MysqL 5.7.14 安装教程详解(解压版)
MysqL实例MysqL 5.7.14 使用常见问题汇总(推荐)
MysqL实例1、解压
MysqL实例2、在目录D:\Program files\MysqL-5.7.14-winx64下复制my-default.ini,放在与其相同目录下,名称显示为my.ini;
MysqL实例3、编辑my.ini
MysqL实例# For advice on how to change settings please see# http://dev.MysqL.com/doc/refman/5.7/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.[clIEnt]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 = 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 = D:\Program files\MysqL-5.7.14-winx64datadir = D:\Program files\MysqL-5.7.14-winx64\datatmpdir = D:\Program files\MysqL-5.7.14-winx64\datasocket = D:\Program files\MysqL-5.7.14-winx64\data\MysqL.sockport = 3306# server_ID = .....max_connections = 100table_open_cache = 256query_cache_size = 1Mtmp_table_size = 32Mthread_cache_size = 8innodb_data_home_dir = D:\Program files\MysqL-5.7.14-winx64\datainnodb_flush_log_at_trx_commit = 1innodb_log_buffer_size = 128Minnodb_buffer_pool_size = 128Minnodb_log_file_size = 10Minnodb_thread_concurrency = 16innodb-autoextend-increment = 1000# 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 join_buffer_size = 128Msort_buffer_size = 32Mread_rnd_buffer_size = 32Mmax_allowed_packet = 32Mexplicit_defaults_for_timestamp = truesql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_tableS
@H_403_39@MysqL实例4、在解压目录D:\Program files\MysqL-5.7.14-winx64下新建data文件(不用在文件夹做其他 *** 作)
MysqL实例5、以管理员身份进入cmd界面(必须是管理员)
MysqL实例6、切换至MysqL解压目录\bin下,初始化data目录
MysqL实例输入命令:MysqLd --initialize-insecure (生成无密码的root用户)
MysqL实例或:MysqLd --initialize(生成带随机密码的root用户)
MysqL实例7、初始化完成后启动MysqL服务
MysqL实例输入命令:net start MysqL
MysqL实例8、开始使用MysqL
MysqL实例输入命令:MysqL -u root -p
MysqL实例9、停止MysqL服务
MysqL实例输入命令:net stop MysqL
MysqL实例10、忘记root密码后如何登录
MysqL实例 101、 关闭正在运行的MysqL服务.
MysqL实例 10.2、 打开DOS窗口,转到MysqL\bin目录.
MysqL实例 10.3、输入MysqLd --skip-grant-tables 回车.--skip-grant-tables 的意思是启动MysqL服务的时候跳过权限表认证.
MysqL实例 10.4、再开一个DOS窗口(因为刚才那个DOS窗口已经不能动了),转到MysqL\bin目录.
MysqL实例 10.5、输入MysqL回车,如果成功,将出现MysqL提示符 >.
MysqL实例 10.6、连接权限数据库: use MysqL; .
MysqL实例 10.7、改密码:update user set password=password("123") where user="root";(别忘了最后加分号) .
MysqL实例 10.8、刷新权限(必须步骤):flush privileges; .
MysqL实例 10.9、 退出 quit.
MysqL实例 10.10、注销系统,再进入,使用用户名root和刚才设置的新密码123登录.
MysqL实例11、修改root用户密码
MysqL实例@H_502_1@5.7版本以前:
MysqL实例update user set authentication_string =password( 'root') where user = 'root;
@H_403_39@MysqL实例@H_502_1@5.7版本以后:
MysqL实例update user set password=password( 'root') where user = 'root;
@H_403_39@MysqL实例以上所述是小编给大家介绍的MysqL 5.7.14 免安装版注意事项(精),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的.在此也非常感谢大家对内存溢出PHP网站的支持!
以上是内存溢出为你收集整理的MYSQL教程mysql 5.7.14 免安装版注意事项(精)全部内容,希望文章能够帮你解决MYSQL教程mysql 5.7.14 免安装版注意事项(精)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)