当前位置:网站首页>mysql8.0 ubuntu20.4
mysql8.0 ubuntu20.4
2022-07-07 23:40:00 【Melt_】
uninstall
sudo apt purge mysql-*
sudo rm -rf /etc/mysql/ /var/lib/mysql
sudo apt autoremove
sudo apt autoclean
ubuntu install mysql
1.
sudo apt-get install mysql-server -y
sudo apt install mysql-client -y
sudo apt install libmysqlclient-dev -y
2.check
sudo netstat -tap | grep mysql
3.find user&passwd
sudo cat/etc/mysql/debian.cnf
(2)use client user&passwd
mysql -udebian-sys-maint -p
passwd:passwd int file debian.cnf
4.change root passwd
ALTER USER 'root'@'localhost' IDENTIFIED BY 'passwd here';
[client]
host = localhost
user = debian-sys-maint
password = kKSqZX8vwaOEJOuo
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = kKSqZX8vwaOEJOuo
socket = /var/run/mysqld/mysqld.sock
边栏推荐
- postgis学习
- Slam interview summary
- Reverse output three digit and arithmetic sequence
- Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
- Summary of common methods of object class (September 14, 2020)
- Oracle string sorting
- Navicat connects Oracle
- SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
- Extended tree (I) - graphic analysis and C language implementation
- 【leetcode】day1
猜你喜欢
B_ QuRT_ User_ Guide(38)
Idea automatically generates serialVersionUID
二叉排序树【BST】——创建、查找、删除、输出
Ora-01741 and ora-01704
Flash encryption process and implementation of esp32
How to change the formula picture in the paper directly into the formula in word
MySQL Architecture
UIC564-2 附录4 –阻燃防火测试:火焰的扩散
SAP HR labor contract information 0016
[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
随机推荐
Ora-02437 failed to verify the primary key violation
【7.4】25. Turn over the linked list in groups of K
Boost regex library source code compilation
C - Fibonacci sequence again
Anxin vb01 offline voice module access intelligent curtain guidance
Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
ASP. Net open web page
Stringutils tool class
Svn relocation
2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
USB (XVII) 2022-04-15
SAP HR 劳动合同信息 0016
c—线性表
USB (XVI) 2022-04-28
通达信买基金安全吗?
One of the anti climbing methods
Slam interview summary
Anti climbing means cracking the second
Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."
@Configuration注解的详细介绍