来源:深圳沃龙软件开发公司 2017-05-05
一、下载MySQL5.7 源安装包
通过 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm 这个命令下载,如下图:
二、安装MySQL5.7源
通过 yum localinstall mysql57-community-release-el7-8.noarch.rpm 命令来安装,如下图
三、检查MySQL源是否安装成功
通过 yum repolist enabled | grep "mysql.*-community.*" 命令检查是否安装成功,如下图表示MySQL源已安装成功
四、安装MySQL5.7 服务
通过 yum install mysql-community-server 命令安装MySQL服务,如下图:
五、启动MySQL服务
通过 systemctl start mysqld 命令来启动服务,
通过 systemctl status mysqld 检查是否已启动成功
六、开机启动
shell> systemctl enable mysqld
shell> systemctl daemon-reload
七、修改MySQL root默认密码
mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码,我们打开该文件,在如下图红色标记部分,会看到默认密码
此时,我们登录MySQL,修改root密码,通过如下命令:
shell> mysql -uroot -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword!';
重启:systemctl restart mysqld 生效
八、允许远程链接
在本机先使用root用户登录mysql:
mysql -u root -p"youpassword"
进行授权操作:
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
重载授权表:
FLUSH PRIVILEGES;
退出mysql数据库:
exit
注意:另外还需防火墙开放3306端口,具体操作如下:
shell>firewall-cmd --zone=public --add-port=3306/tcp --permanent
shell>firewall-cmd --reload
修改/etc/my.cnf配置文件,在[mysqld]下添加编码配置,如下所示:
重启:systemctl restart mysqld 生效
本内容皆为 深圳沃龙软件开发公司 原创
如需转载,请注明文章出处和来源网址:http://www.wooolong.com/blog/10.html
Howdy! I could have sworn I've been to this website before but after checking through some of the post I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be bookmarking and checking back often!
Thanks for every other great article. Where else may just anybody get that type of info in such an ideal approach of writing? I've a presentation subsequent week, and I am at the search for such info.
Attractive component to content. I just stumbled upon your weblog and in accession capital to claim that I acquire actually loved account your blog posts. Any way I will be subscribing for your feeds or even I success you get entry to persistently quickly.
? ???????? ???????????? ???, ???????! ?? ???????????? ???????? ??? ??????????? XRumer Co. ??? ??????-??????, ??? ????? ????????, ??? ?????? ???????? ???????? ???????. ??? ????, ????? ?? ????????? ???????? ??? ????, ?????????? ?????? ?? SEO-???????????. ?????? ??????????? ? ??????????? – ???? ???????? ???????????. ? ???????????? ???????????? ???????? ? ??????? SEO-??????????? ??? ????????????. ? ??? ??????? ???? ? ???????? ????????? ??????????? ????????, ???????? ?? ?????? ?????????? ??
Why people still use to read news papers when in this technological world the whole thing is available on net?
Hi [First Name - , I hope this email finds you well! I’m reaching out with an exciting opportunity to enhance your website’s SEO performance and engage your audience through regular, optimized content – at no cost for two weeks. We’ve developed a WordPress plugin that automatically publishes relevant, SEO-focused news and articles to your website. With our tool, you can: Gain Backlinks through continuously added, optimized content Improve SEO Rankings with a stream of fresh c
???????????? ??? ?? ????? ????????-?????! ? ??? ?????????? ????????? ?? ??? ??????????? XRumer Inc. ??? ??????, ??? ????? ????????, ?????? ???????? ???????. ????? ??????????? ???????? ??????? ??? ?????, ?????? ?????????? ?????? ?? ???-???????????. ????? ? ??? ???? ????????? ? ??????????? ??????????? ??? ?????????. ? ????? ???????????? ????????? ???? ? ?????? ???????, ? ???????? ??????? ???????? ????? - ???? ?????????, ??????????? ?? ???????. ?? ?????? ?????? ?????????? ?????? ?? ?
Hi [First Name - , I hope this email finds you well! I’m reaching out with an exciting opportunity to enhance your website’s SEO performance and engage your audience through regular, optimized content – at no cost for two weeks. We’ve developed a WordPress plugin that automatically publishes relevant, SEO-focused news and articles to your website. With our tool, you can: Gain Backlinks through continuously added, optimized content Improve SEO Rankings with a stream of fresh c
?b? ???????????? ???! ?a href=HHtps://novotechgi.com????????? NovoTech?/a? ??????????, ?a href=HHtps://novotechgi.com/knopki.htm???????? ?????????????/a?, ?a href=HHtps://novotechgi.com/vkp.htm?????????????? VKP-80?/a?,?a href=HHtps://novotechgi.com/price.htm????????? 19"?/a?, ?a href=HHtps://novotechgi.com/knopki.htm???????????/a?????????? ?????,?a href=HHtps://novotechgi.com/joy.htm???????? ???? ???????? ??????, ?????? ??? ???????? ???????/a?,?a href=HHtps://novotechgi.com/knopki.htm??????
?a href=HHtps://chimmed.ru/products/anti-fen1-magnetic-beads-immunoprecipitation-ip-kit-id=1802046?anti-fen1 magnetic beads immunoprecipitation ip kit - kupit' online v internet-magazine chimmed ?/a? Tegs: ?u?rosolic acid, c.i. 43800, indicator, - kupit' online v internet-magazine chimmed ?/u? ?i?n-hexane, 96%, expertq, acs, reag. ph e - kupit' online v internet-magazine chimmed ?/i? ?b?n-hexane, 96%, expertq, acs, reag. ph e - kupit' online v internet-magazine chimmed ?/b? anti-ku70
发表评论