当前位置:网站首页>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
边栏推荐
猜你喜欢
![[STM32 Learning 1] Basic knowledge and concepts are clear](/img/1c/7c4fd2d835e15ca13517c6d97e9b3a.png)
[STM32 Learning 1] Basic knowledge and concepts are clear

总结计算机网络超全面试题

使用 腾讯云搭建一个个人博客

MATLAB绘图函数fplot详解

win10怎么设置不睡眠熄屏?win10设置永不睡眠的方法

How to simulate 1/3 probability with coins, and arbitrary probability?

Win10 computer can't read U disk?Don't recognize U disk how to solve?

Mapreduce环境详细搭建和案例实现

TCP三次握手、四次挥手

Detailed introduction to the hierarchical method of binary tree creation
随机推荐
Publish module to NPM should be how to operate?Solutions to problems and mistake
Redis常见面试题
质数相关问题-小记
5. Transaction management
STM32LL library use - SPI communication
How to set the win10 taskbar does not merge icons
7. Redis
Configure clangd for vscode
Redis common interview questions
flink+sklearn——使用jpmml实现flink上的机器学习模型部署
求解斐波那契数列的若干方法
Use libcurl to upload the image of Opencv Mat to the file server, based on two methods of post request and ftp protocol
Win11没有本地用户和组怎么解决
IPV4和IPV6是什么?
KiCad常用快捷键
使用 腾讯云搭建一个个人博客
pygame绘制弧线
Introduction to MATLAB drawing functions ezplot explanation
Use tencent cloud builds a personal blog
Letter combination of LeetCode2 phone number