mysql数据库怎么安 mysql数据库的安装教程( 二 )


启动数据库服务[root@xuegod63 ~]# systemctl startmariadb#启动MariaDB服务 。[root@xuegod63 ~]# systemctl enablemariadb#设置开启自动启动MariaDB服务 。
安装完mariadb-server后,运行mysql_secure_installation去除安全隐患,[root@xuegod63 ~]# mysql_secure_installation#进入安全配置导向 。
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQLSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current,password for the root user. If you've just installed MySQL, and,you haven't set the root password yet, the password will be blank,,so you should just press enter here.Enter current password for root (enter for none):#初次运行直接回车,因为root用户没有密码 。
OK, successfully used password, moving on,Setting the root password ensures that nobody can log into the MySQL,root user without the proper authorisation.,Set root password? [Y/n] Y#是否设置root用户密码,输入Y 。
New password: 123456#新密码123456,Re-enter new password: 123456,Password updated successfully!Remove anonymous users? [Y/n] Y#是否删除匿名用户,生产环境建议删除 , 所以直接回车或Y 。
Success!Normally, root should only be allowed to connect from 'localhost'.Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] Y#是否禁止root远程登录,根据自己的需求选择Y/n并回车建议禁止 。
Success!By default, MariaDB comes with a database named 'test' that anyone canaccess.This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] Y#是否删除test数据库,直接回车或Y 。
怎样安装Navicat for MySQL数据库Navicat for MySQL 安装软件和破解补丁免费下载
链接:
提取码:ultn
Navicat for MySQL是一套管理和开发MySQL或MariaDB的理想解决方案,支持单一程序,可同时连接到MySQL和MariaDB 。这个功能齐备的前端软件为数据库管理、开发和维护提供了直观而强大的图形界面,给MySQL或MariaDB新手以及专业人士提供了一组全面的工具 。
【mysql数据库怎么安 mysql数据库的安装教程】关于mysql数据库怎么安和mysql数据库的安装教程的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站 。

推荐阅读