2021-07-29

MySQL8.0.26安装与卸载

一、安装

1.官网下载

百度进入官网,学习用社区版够了,我下的是压缩版点这直达下载页

据说8.X版本性能优化,比5.7版本快2倍!

image-20210725213022233

接着,不登录直接下载

image-20210725212340533

2.创建配置

下载完后,建议解压到一个没有中文的路径,在解压目录创建my.ini配置文件

image-20210725215902109

# 这些是基本配置信息[client]# 设置mysql客户端默认字符集default-character-set=utf8 [mysqld]# 设置3306端口,我5.7版本用3306了,这用3307port = 3307# 设置mysql的安装目录basedir=D:\developer\developer_tools\MySQL\mysql-8.0.26-winx64# 设置 mysql数据库的数据的存放目录datadir=D:\developer\developer_tools\MySQLData\mysql-8.0.26-winx64# 允许最大连接数max_connections=20# 服务端使用的字符集默认为8比特编码的latin1字符集character-set-server=utf8# 创建新表时将使用的默认存储引擎default-storage-engine=INNODB

image-20210725231616715

3.初始化MySQL

管理员CMD进入解压后的bin目录,输入mysqld --initialize --console

image-20210725233327234

4.安装MySQL服务

输入mysqld --install 服务名不输入服务名,默认为mysql

image-20210725233805119

5.登录MySQL

先启动服务

image-20210725234257715

登录指定端口,因3306被5.7版本用了

image-20210726012920069

修改密码,刚才生成的是临时密码,得改。

输入ALTER USER "root"@"localhost" IDENTIFIED BY "新密码";

image-20210726015051016

到此就安装完成了。

二、卸载

1.停止服务

管理员CMD,输入net stop mysql,我开了两个服务,所以net stop mysql2

选择想删掉的版本就OK了

image-202......<p>原文转载:<a href='http://www.shaoqun.com/a/892263.html'>http://www.shaoqun.com/a/892263.html</a></p><p><a href='https://www.ikjzd.com/' target='_blank'>跨境电商</a>:https://www.ikjzd.com/</p><p><a href='https://www.ikjzd.com/w/2345' target='_blank'>瀚霖</a>:https://www.ikjzd.com/w/2345</p> <p><a href='https://www.ikjzd.com/w/1262' target='_blank'>泛亚班拿</a>:https://www.ikjzd.com/w/1262</p> <p><a href='https://www.ikjzd.com/w/730' target='_blank'>trademanager</a>:https://www.ikjzd.com/w/730</p> <br />一、安装1.官网下载百度进入官网,学习用社区版够了,我下的是压缩版点这直达下载页据说8.X版本性能优化,比5.7版本快2倍!接着,不登录直接下载2.创建配置下载完后,建议解压到一个没有中文的路径,在解压目录创建my.ini配置文件#这些是基本配置信息[client]#设置mysql客户端默认字符集default-character-set=utf8[mysqld]#设置3306端口,我5.7版本用<span id='KeyList'><br /><a href='https://www.ikjzd.com/w/2729'>stadium</a>:https://www.ikjzd.com/w/2729<br /><a href='https://www.ikjzd.com/w/1329'>跨境通电子商务</a>:https://www.ikjzd.com/w/1329<br /><a href='http://www.30bags.com/a/416899.html'>四川湿地合集 邛海湿地收费也不虚嘛(2)</a>:http://www.30bags.com/a/416899.html<br /><a href='http://www.30bags.com/a/416898.html'>四川湿地合集 邛海湿地收费也不虚嘛(3)</a>:http://www.30bags.com/a/416898.html<br /><a href='http://www.30bags.com/a/423637.html'>四川十大避暑胜地 四川避暑胜地在哪里 四川周边避暑胜地</a>:http://www.30bags.com/a/423637.html<br /><a href='http://www.30bags.com/a/405729.html'>四川十日行(成都-九寨-黄龙-四姑娘山)    -  </a>:http://www.30bags.com/a/405729.html<br /><a href='http://lady.shaoqun.com/a/9422.html'>口述:挤公交 闺蜜坐我老公腿上和他互摸</a>:http://lady.shaoqun.com/a/9422.html<br /><a href='http://lady.shaoqun.com/m/a/248410.html'>男人解开女人乳罩吃奶 在野外狠狠的挺进</a>:http://lady.shaoqun.com/m/a/248410.html<br /><a href='http://lady.shaoqun.com/a/428527.html'>招生在高校旁边开酒店的推广方式有争议</a>:http://lady.shaoqun.com/a/428527.html<br /><a href='http://lady.shaoqun.com/a/428528.html'>为什么大学附近有那么多小旅馆?大学生不都住校园吗?</a>:http://lady.shaoqun.com/a/428528.html<br /><a href='http://lady.shaoqun.com/a/428529.html'>大学周边的酒店往往供不应求。他们在里面做什么?你有过难忘的经历吗?</a>:http://lady.shaoqun.com/a/428529.html<br /><a href='http://lady.shaoqun.com/a/428530.html'>女人给你这四个暗示是因为想和你发生关系!</a>:http://lady.shaoqun.com/a/428530.html</span>
<div style='clear: both;'></div>
</div>
<div class='post-footer'>
<div class='post-footer-line post-footer-line-1'>
<span class='post-author vcard'>
Posted by
<span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
<meta content='https://www.blogger.com/profile/07275166620716298300' itemprop='url'/>
<a class='g-profile' href='https://www.blogger.com/profile/07275166620716298300' rel='author' title='author profile'>
<span itemprop='name'>luxury handbags</span>
</a>
</span>
</span>
<span class='post-timestamp'>
at
<meta content='http://van868163.blogspot.com/2021/07/mysql8026.html' itemprop='url'/>
<a class='timestamp-link' href='https://van868163.blogspot.com/2021/07/mysql8026.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2021-07-29T16:22:00+08:00'>4:22 PM</abbr></a>
</span>
<span class='post-comment-link'>
</span>
<span class='post-icons'>
<span class='item-control blog-admin pid-258179151'>
<a href='https://www.blogger.com/post-edit.g?blogID=754695018963831932&postID=5681514615236225759&from=pencil' title='Edit Post'>
<img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/>
</a>
</span>
</span>
<div class='post-share-buttons goog-inline-block'>
<a class='goog-inline-block share-button sb-email' href='https://www.blogger.com/share-post.g?blogID=754695018963831932&postID=5681514615236225759&target=email' target='_blank' title='Email This'><span class='share-button-link-text'>Email This</span></a><a class='goog-inline-block share-button sb-blog' href='https://www.blogger.com/share-post.g?blogID=754695018963831932&postID=5681514615236225759&target=blog' onclick='window.open(this.href,

No comments:

Post a Comment