当前位置:网站首页>CentOS essay 03:centos8.2 installing MySQL
CentOS essay 03:centos8.2 installing MySQL
2022-06-11 08:23:00 【uikoo9】

【mysql/mariadb】
Because Tencent cloud light application server is used , Here to install mariadb replace

【dnf/yum】
dnf yes yum Upgrade of package manager , Both commands can be used on the server , It is recommended to use dnf Management package
【 retrieval mariadb】
dnf search mariadbadopt search Command can retrieve application packages that can be installed
【 install mariadb】
dnf install mariadb mariadb-serverstay centos You need to install mariadb and mariadb-server Two bags
【 initialization mysql】
mysql_install_db --user=mysqlThrough the initialization command , Can be initialized mysql, After successful initialization, there are some prompts
【 start-up mariadb service 】
systemctl start mariadb
systemctl enable --now mariadbstart-up mariadb Service for , And configure it into the startup item
【 Set up root password 】
mysqladmin -u root password 'zzzzzz'Use this command to set root Password , Try to make it as complex as possible
【 Open some security settings 】
mysql_secure_installationOpen some security settings by prompting ,
Are some common operations
1. Set up root password
2. Delete irrelevant users
3. Prohibition of non root Account login
4. Delete test database
5. Refresh permissions, etc

【 land mysql】
mysql -uroot -pEnter the previously set password , You can log in mysql 了

【 sense 】
Now install mysql, It's much simpler than before ~
边栏推荐
猜你喜欢

Empty difference between postgrepsql and Oracle

Idea pulls items from remote warehouse

这几个小工具也太好用了

Process control: process waiting (recycling child processes)

(resolved) typeerror: meshgrid() got an unexpected keyword argument 'indexing‘

2022.6.7 special student simulation

Crawl Baidu Baipin dynamic page

Use of Excel to XML tool of TestLink

These gadgets are also very easy to use

SylixOS SD设备驱动开发
随机推荐
Typescript type alias
Collation of open source modulation identification data set
Modifying field length in Oracle and postgrepsql
这几个小工具也太好用了
TypeScripy-类的基本使用
Anaconda related knowledge supplement (spyder+keras Library)
(completely solved) dataframe assignment settingwithcopywarning: a value is trying to be set on a copy of a slice
TypeScript-声明合并
Mongodb--- automatically delete expired data using TTL index
Pg/oracle database ASCII code to string custom function
字符设备驱动程序之异步通知机制
用 Keras/TensorFlow 2.9 创建深度学习模型的方法总结
These gadgets are also very easy to use
The role of lambdalr in pytorch
Solve valueerror: no model found in config file
JS basic learning script
uniapp关闭/开启/调节系统声音
TypeScript-键盘映射
【 史上最全的ENSP【安装图解】!】
centos随笔03:centos8.2安装mysql