本文共 439 字,大约阅读时间需要 1 分钟。
由于在上一篇文章时,没有具体介绍
开始使用数据库之前的重要的一步,那就是初始化数据库。所以今天给大家补上这篇具体操作的文章。systemctl start mysqld
systemctl enable mysqld
cat /var/log/mysqld.log | grep password
注:如果像我上一篇文章操作那样先修改了数据库密码,最后才初始化数据库,那么这步就可以省略。
mysql_secure_installation
mysql -uroot -p
转载于:https://blog.51cto.com/13043516/2126082