当前位置:网站首页>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
边栏推荐
猜你喜欢
Anxin can internally test offline voice module vb-01 to communicate with esp-c3-12f
List. How to achieve ascending and descending sort() 2020.8.6
C inheritance and interface design polymorphism
Svn relocation
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
How to change the formula picture in the paper directly into the formula in word
Home appliance industry channel business collaboration system solution: help home appliance enterprises quickly realize the Internet of channels
2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
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."
随机推荐
SAP memory parameter tuning process
C cat and dog
The for loop realizes 1-100 addition and eliminates the 4-digit tail number
SAP HR labor contract information 0016
C - minute number V3
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code
激光slam学习(2D/3D、偏实践)
【实验分享】通过Console口登录到Cisco设备
SAP HR奖罚信息导出
Download AWS toolkit pycharm
0-1背包问题
ESP at installation esp8266 and esp32 versions
Have all the fresh students of 2022 found jobs? Is it OK to be we media?
Stringutils tool class
【LeetCode】20、有效的括号
保证接口数据安全的10种方案
Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
[summary] some panels and videos seen
Flash encryption process and implementation of esp32
Anxin vb01 offline voice module access intelligent curtain guidance