当前位置:网站首页>Problems in installing MySQL in CentOS
Problems in installing MySQL in CentOS
2022-07-19 01:05:00 【Put the stars by the bed】
First, we need the default password to log in :
Through the command :grep password /var/log/mysqld.log Find out our temporary password
After logging in, you need to set a new password :
Through the command :SET PASSWORD=PASSWORD(‘newPassword’); It should be noted that our new password should comply with the rules , The new password is written in single quotation marks
We also need to set mysql Under the Treasury user In the table root The user allows any ip Connect
command :GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '131499Wzx.' WITH GRANT OPTION;
Finally, we passed FLUSH PRIVILEGES; Re authorize
Set the startup status :
11、 Set up MySQL Service startup
start-up MySQL service :systemctl start mysqld.service
stop it MySQL service :systemctl stop mysqld.service
restart MySQL service :service mysqld restart
see MySQL Service status :service mysqld status
This is a MySQL Service startup : systemctl enable mysqld
边栏推荐
- [Clickhouse] calculation of weeks
- Go BitSet of one library per day
- 64 bit interrupt assembly cannot be used
- (manual) [sqli-labs62-65] limit injection times: blind injection
- Leetcode 242: valid Letter ectopic words
- Go 每日一库之 bitset
- VSCodeUserSetup-x64-1.65.0. exe
- Joint search set
- Hcia-r & s self use notes (6) (network layer) ICMP, IP protocol foundation and fragmentation
- @How can conditionalonmissingbean cover beans in third-party components
猜你喜欢

Mysql的索引为什么使用B+树而不使用跳表?

Hcia-r & s self use notes (7) (network layer) TTL and loop test, protocol number

Prometheus+grafana visual real-time JVM monitoring tool

为什么加工数据指标

MySQL - Multi version concurrency control (mvcc)

Sqli labs less-1 (extractvalue of error injection)

【着色器实现Wave效果_Shader效果第一篇】

J9数字论:去中心化身份的主流化还有多久?

高等数学---第八章多元函数微分学---多元函数的极值与最值

Google Chrome OS officially changed its name to Chrome OS brand
随机推荐
Deep learning - multidimensional data and tensor
[Clickhouse] calculation of weeks
Based on yolov5 PT model is converted to Engine model, accelerated by deepstream, can be transmitted in real time with multiple cameras, using NVIDIA's Xavier board (precision 1)
【MD5】快速实现MD5加密解密(盐值)
Relationship between sampling rate and signal-to-noise ratio
Uva11362 phone list solution
Photoshop网页设计教程
(零七)Flask有手就行——初识数据库(Flask-SQLAlchemy)
[natural language processing] [multimodal] multimodal overview: visual language pre training model
Redis命令
面试官:怎么不用定时任务实现关闭订单?
【MariaDB】解决:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
[paper notes] - feature visualization - zfnet - 2014-eccv
VSCodeUserSetup-x64-1.65.0.exe
【Liunx】发布Jar包、日志动态查看、查看程序进程、结束程序
Asynchronous programming & Collaboration
Double pointer summary (to be continued)
Go 每日一库之 bitset
By voting for the destruction of STI by Dao, seektiger is truly community driven
Common linked list questions and their go implementation