当前位置:网站首页>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;
边栏推荐
- Design and implementation of object system in redis
- Small case of anti shake function
- Gensim error attributeerror: type object 'word2vec' has no attribute 'load_ word2vec_ format‘
- Imitation B station web, app, background
- Color segmentation based on RGB difference method
- Is it safe to open an account online? Can a novice open an account
- Qt-7-multithreading
- Cmake upgrade
- What fun things can a desk service do
- STM32F0-DAY1
猜你喜欢

Leetcode hot topic Hot 100, to be updated

Design interface automation test cases by hand: establish database instances and test case tables

Alibaba cloud log service is available in Net project

CSDN's test teacher teaches JMeter to generate stress test reports

Analysis of ROC and AUC

Chapter 2 - physical layer (I)

Using the path module to prompt errors in ts+vite projects
![[graduation project recommendation] - personnel management system](/img/b5/4235b54fa0da9e4637010a68bf848b.jpg)
[graduation project recommendation] - personnel management system

Detailed explanation of dynamic planning

Detailed explanation of dictionary source code in C #
随机推荐
Tcp/ip Basics
Async get and post request interface data (add, delete, modify and query pages)
Qt-8- use SQL database
Solution of difficult and miscellaneous problems in MVN packaging
SSH based command operation
网上开户安全吗?新手可以开账户吗
Common data processing of machine learning
Using the path module to prompt errors in ts+vite projects
English accumulation__ annoyance
Never change
Chapter 5 - application layer
MySQL failover and master-slave switchover based on MHA
Add SSL security certificate to web site
Define structure dynamically when macro is defined
Reptile essential_ regular expression
Explain the high availability features of Nacos
Review notes of web development technology
Flex layout --- detailed explanation [Blue Bridge Cup classic dice layout]
Promotion guide for large enterprises: material preparation, PPT writing and on-site defense
How is the network connected