当前位置:网站首页>Ubuntu通过apt安装Mysql
Ubuntu通过apt安装Mysql
2022-08-02 14:11:00 【超级码力奥】
- sudo apt-get install mysql-server mysql-client libmysqlclient-dev
- sudo netstat -tap | grep mysql
- 看到listen代表安装成功
- 打开/etc/mysql/debian.cnf文件可以看到mysql自动创建的用户和密码
- 使用命令在新的终端输入命令进入mysql, mysql -udebian-sys-maint -p你的密码
- use mysql;
update user set authentication_string=PASSWORD(“123456”) where User=“root”; - flush privileges;
- exit
mysql -uroot -p123456
边栏推荐
- Win11系统找不到dll文件怎么修复
- MATLAB drawing command fimplicit detailed introduction to drawing implicit function graphics
- Project: combing the database table
- 队列与栈
- 5. Transaction management
- What is Win10 God Mode for?How to enable God Mode in Windows 10?
- 如何用硬币模拟1/3的概率,以及任意概率?
- 4. Publish Posts, Comment on Posts
- pygame draw arc
- General syntax and usage instructions of SQL (picture and text)
猜你喜欢
![[System Design and Implementation] Flink-based distracted driving prediction and data analysis system](/img/f0/23ac631b6eb9b794224d8ae78e6523.png)
[System Design and Implementation] Flink-based distracted driving prediction and data analysis system

Win10系统设置application identity自动提示拒绝访问怎么办

深入理解Golang之Map

MATLAB drawing command fimplicit detailed introduction to drawing implicit function graphics

Redis common interview questions

6.统一记录日志

win10 system update error code 0x80244022 how to do

Open the door of power and electricity "Circuit" (2): Power Calculation and Judgment

利用plot_surface命令绘制复杂曲面入门详解

二叉排序树与 set、map
随机推荐
Win11怎么在右键菜单添加一键关机选项
4. Publish Posts, Comment on Posts
yolov5官方代码解读——前向传播
Win11电脑一段时间不操作就断网怎么解决
质数相关问题-小记
MATLAB绘图函数plot详解
Win7 encounters an error and cannot boot into the desktop normally, how to solve it?
第二十五章:一文掌握while循环
Redis常见面试题
Failed to install using npx -p @storybook/cli sb init, build a dedicated storybook by hand
Redis common interview questions
Win10系统设置application identity自动提示拒绝访问怎么办
Open the door of power and electricity "Circuit" (2): Power Calculation and Judgment
关于c语言的调试技巧
【系统设计与实现】基于flink的分心驾驶预测与数据分析系统
C语言函数参数传递模式入门详解
第二十六章:二维数组
mysql学习总结 & 索引
[STM32 Learning 1] Basic knowledge and concepts are clear
3.用户上传头像