当前位置:   article > 正文

初始化Mariadb数据库+远程连接数据库_mariadb初始化

mariadb初始化

一.初始化Mariadb数据库

1.安装Mariadb

yum install mariadb mariadb-server

2.启动Mariadb

  1. systemctl start mariadb
  2. systemctl restart mariadb

3.初始化数据库

mysql_secure_installation
  1. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  2. ``SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  3. In order to log into MariaDB to secure it, we'll need the current
  4. password ``for` `the root user. If you've just installed MariaDB, and
  5. you haven't ``set` `the root password yet, the password will be blank,
  6. so you should just press enter here.
  7. Enter current password ``for` `root (enter ``for` `none): ``#当前数据库密码空的,直接回车
  8. OK, successfully used password, moving on...
  9. Setting the root password ensures that nobody can log into the MariaDB
  10. root user without the proper authorisa
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/786686
推荐阅读
相关标签
  

闽ICP备14008679号