当前位置:网站首页>ubuntu上安装mysql
ubuntu上安装mysql
2022-06-26 22:58:00 【两处闲悠】
ubuntu上安装mysql非常简单只需要几条命令就可以完成。
1. sudo apt-get install mysql-server
2. apt-get isntall mysql-client
3. sudo apt-get install libmysqlclient-dev
安装过程中会提示设置密码,注意输入开机时的登录密码,安装完成之后可以使用如下命令来检查是否安装成功:
sudo netstat -tap | grep mysql
通过上述命令检查之后,如果看到有mysql 的socket处于 listen 状态则表示安装成功。
登陆mysql数据库可以通过如下命令:
mysql -u root -p
-u 表示选择登陆的用户名, -p 表示登陆的用户密码,上面命令输入之后会提示输入密码,此时输入密码就可以登录到mysql。
边栏推荐
- 6.24 学习内容
- VB. Net class library (advanced version - 1)
- 微信小程序自动生成打卡海报
- Fastadmin Aurora push send message registration_ Multiple IDs are invalid after being separated by commas
- 简析攻防演练中蓝队的自查内容
- 树莓派初步使用
- [cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
- Wechat applet automatically generates punch in Poster
- 打新债注册开户有没有什么风险?安全吗?
- Wechat applet is authorized to log in wx getUserProfile
猜你喜欢
![leetcode:141. Circular linked list [hash table + speed pointer]](/img/19/f918f2cff9f831d4bbc411fe1b9776.png)
leetcode:141. Circular linked list [hash table + speed pointer]

DLA model (classification model + improved segmentation model) + deformable convolution
![leetcode:710. Random numbers in the blacklist [mapping thinking]](/img/ec/a3faeae6636bc3d0d9536962fdd9af.png)
leetcode:710. Random numbers in the blacklist [mapping thinking]

WordPress collection plug-ins are recommended to be free collection plug-ins

Weaving dream collection plug-ins are recommended to be free collection plug-ins

VB. Net class library (advanced version - 1)
![[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process](/img/42/c2a25bb7a9fdad8fe0a048e9af44ca.jpg)
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process

数据治理啥都干

【数学建模】基于matlab GUI随机节点的生成树【含Matlab源码 1919期】

您的连接不是私密连接
随机推荐
分享三种在Excel表格中自动求和的方法
微信小程序自动生成打卡海报
不花一分钱做个在线的gif合成服务
DLA model (classification model + improved segmentation model) + deformable convolution
FPGA -VGA显示
Raspberry pie preliminary use
A simple and crude method for exporting R language list to local
6.24 learning content
【混合编程jni 】第十一篇之JNA详情
【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Yolov6: the fast and accurate target detection framework is open source
Introduction to operator
用C#通过sql语句操作Sqlserver数据库教程
Partage de trois méthodes de sommation automatique dans un tableau Excel
美术向的Unity动画知识
Unity 设置Material、Shader的方法
leetcode:710. Random numbers in the blacklist [mapping thinking]
树莓派初步使用
买股票通过中金证券经理的开户二维码开户资金是否安全?想开户炒股