当前位置:网站首页>Mysql5.7 setup password and remote connection
Mysql5.7 setup password and remote connection
2022-06-21 14:32:00 【Internet Walker】
download yum repo https://dev.mysql.com/downloads/repo/yum/
After downloading, the default is 8.0, Switch to 5.7
shell> yum repolist all | grep mysql
shell> sudo yum-config-manager --disable mysql80-community
shell> sudo yum-config-manager --enable mysql57-community
If the order doesn't exist , install yum-utils
yum install mysql-community-server
After installation, set the basic configuration in vim /etc/my.cnf
start-up mysql service systemctl start mysqld
You can use the command to initialize after startup grep 'temporary password' /var/log/mysqld.log obtain
Change initialization password ( The initialization password must be changed ) , First, you need to lower the password policy
set global validate_password_policy=0;
set global validate_password_length=6;Then you can change the password alter user [email protected] identified by '123456'
Remote connection
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';
flush privileges;
边栏推荐
- Summary of the most basic methods of numpy
- ES6 test questions
- Oracle client11 and pl/sql12 installation
- Pyqt5 learning notes of orange_ Connect to SQL Server database
- Compile time annotation automatically generates dataholder
- Chapter 6 - application layer
- Vscade, open a folder or workspace... (file - > open folder) solution
- Small case of anti shake function
- Judge password strength - Optimization
- Mqtt keepalive and reconnect
猜你喜欢

Chart. JS 2.0 doughnut tooltip percentage - chart js 2.0 doughnut tooltip percentages

Configuration of oracle19c under alicloud lightweight application server linux-centos7

Postman testing websocket interface

Usage of SED (replacement, deletion of text content, etc.)

Num in tensorflow basiclstmcell_ What are units- What is num_ units in tensorflow BasicLSTMCell?

Using the path module to prompt errors in ts+vite projects

Chapter 6 - application layer

Qt-3-basic assembly 2

T32 custom menu bar

DP question brushing record
随机推荐
[googolu] takeout rebate system - business domain name of KFC configuration applet
技术分享 | MySQL中一个聚类增量统计 SQL 的需求
Record the troubleshooting process of excessive CPU usage
USB message capture tcpdump
Qt-6-file IO
Why is epoll efficient?
!!** The test is valid * *:vscode "the terminal will be reused by the task, press any key to close" /vscode the terminal runs NPM to pop up the select program dialog box / try a new cross platform Pow
Qt-3-basic components
Reptile Foundation_ Requests Library
网上开户安全吗?新手可以开账户吗
Explain the high availability features of Nacos
Pyqt5 learning notes of orange_ Connect to SQL Server database
Qt-7-multithreading
T32 add toolbar button
MySQL failover and master-slave switchover based on MHA
Pyqt5 learning notes of orange_ Basic structure of pyqt5 GUI program
Reptile Foundation_ urllib
Never change
The code remotely calls aria2 to download URL resources or BT seeds
Installation of oracle19c under alicloud lightweight application server linux-centos7