温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

mysql 5.7.22 企业版安装简析

发布时间:2020-04-28 10:18:23 阅读:306 作者:三月 栏目:MySQL数据库
亿速云mysql数据库,读写分离,安全稳定,弹性扩容,低至0.3元/天!! 点击查看>>

下文内容主要给大家带来mysql 5.7.22 企业版安装简析,这里所讲到的知识,与书籍略有不同,都是亿速云专业技术人员在与用户接触过程中,总结出来的,具有一定的经验分享价值,希望给广大读者带来帮助。                                                        

一、环境描述
操作系统:windows 2012
数据库:mysql 5.7.12 企业版

二、操作步骤
1、规划
MySQL安装文件存放在D:\mysql,数据目录为E:mysqldata
2、配置文件位置为d:\mysql\my.ini  内容如下:
[mysqld]  
port = 3306  
basedir= D:\mysql
datadir= E:\mysqldata
max_connections=500  
character-set-server=utf8  
default-storage-engine=INNODB  
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES  
[mysql]  default-character-set=utf83、安装服务C:\Users\admin>d:
D:\>cd mysql\bin
D:\mysql\bin>.\mysqld -install 
4、初始化mysql
.\mysqld --initialize-insecure --user=mysql
5、启动服务
D:\mysql\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
6、登陆数据库
D:\mysql\bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.22 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
7、修改密码
use mysql;
update mysql.user set authentication_string=password('qwe12345') where user='root' and Host ='localhost';
flush privileges;
8、关闭服务
D:\mysql\bin>net stop mysql
MySQL 服务正在停止.MySQL 服务已成功停止。对于以上关于mysql 5.7.22 企业版安装简析,如果大家还有更多需要了解的可以持续关注我们亿速云的行业推新,如需获取专业解答,可在官网联系售前售后的,希望该文章可给大家带来一定的知识更新。

亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×