RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
deepinv20怎么安装mysql

这篇文章主要介绍deepin v20怎么安装MySQL,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

10年积累的成都网站建设、网站制作经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先做网站设计后付款的网站建设流程,更有鄂尔多斯免费网站建设让你可以放心的选择与我们合作。

deepin v20不能直接安装mysql所以先进行换源,更换成阿里源,这样以后速度可以更快,今天我们就来介绍一下deepin v20安装mysql的方法,有需要的可以参考一下。

deepin v20 换源和安装mysql

由于deepin v20不能直接安装mysql所以先进行换源,更换成阿里源,这样以后速度可以更快

修改文件 sudo vim /etc/apt/sources.list

#删除内容,并添加以下内容:
## Generated by deepin-installer
deb [by-hash=force] https://mirrors.aliyun.com/deepin/ panda main contrib non-free

执行sudo apt-get update

执行sudo apt-get upgrade命令。

安装mysql

1.执行安装mysql的语句

sudo apt-get install mysql-server mysql-client

2.查看可登陆账户并查看密码

deepin v20怎么安装mysql

3.获取到了登陆mysql的账户密码

lin@lin-PC:~$ mysql -udebian-sys-maint -pjSaNFiRzjlDAxiRN
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.21-1 (Debian)

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>

4.之后依次进入mysql数据库,修改root密码,刷新缓存。之后就可以exit退出使用root账户登录了:

use mysql;
update user set plugin="mysql_native_password",authentication_string=password('新密码') where user="root";
FLUSH PRIVILEGES;

5.使用修改后的帐号密码登陆

mysql -uroot -p000000

以上是“deepin v20怎么安装mysql”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!


当前题目:deepinv20怎么安装mysql
URL链接:http://sczitong.cn/article/gpgcjj.html