当前位置:网站首页>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
边栏推荐
- Win10系统设置application identity自动提示拒绝访问怎么办
- 【STM32学习1】基础知识与概念明晰
- 二叉树的遍历:递归法/ 迭代法/ 统一迭代法(强QAQ)
- MATLAB绘图函数plot详解
- Knapsack Problem - Dynamic Programming - Theory
- What should I do if Windows 10 cannot connect to the printer?Solutions for not using the printer
- Based on the matrix calculation in the linear regression equation of the coefficient estimates
- flink+sklearn——使用jpmml实现flink上的机器学习模型部署
- LeetCode 2354. 优质数对的数目 二进制01表示和集合之间的转换
- 5.事务管理
猜你喜欢
随机推荐
Introduction to C language function parameter passing mode
求解斐波那契数列的若干方法
倍增和稀疏表
Based on the matrix calculation in the linear regression equation of the coefficient estimates
5. Transaction management
GMP scheduling model of golang
Open the door to electricity "Circuit" (3): Talk about different resistance and conductance
pygame draw arc
Knapsack Problem - Dynamic Programming - Theory
Win10系统设置application identity自动提示拒绝访问怎么办
A clean start Windows 7?How to load only the basic service start Windows 7 system
Failed to install using npx -p @storybook/cli sb init, build a dedicated storybook by hand
KiCad Common Shortcuts
MATLAB绘图函数plot详解
Detailed explanation of MATLAB drawing function fplot
How to solve Win11 without local users and groups
二叉树创建之层次法入门详解
Win10电脑需要安装杀毒软件吗?
mysql学习总结 & 索引
Win11 computer off for a period of time without operating network how to solve