2.开始安装MySQL5

首先我们应该先用下面的命令安装MySQL:

yum install mysql mysql-server

然后我们需要创建MySQL系统的启动键链接启动MySQL服务器,这样以便于MySQL在系统启动时自动启动

chkconfig --levels 235 mysqld on

/etc/init.d/mysqld start

为MySQL root帐户设置密码:

mysql_secure_installation

会出现下面的一系列提示:

root@server1 ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

SERVERS 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):

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]

New password:

Re-enter new password:

Password updated successfully!

Reloading privilege tables..

... Success!

By default, a MySQL installation has an anonymous user, allowing anyone

to log into MySQL without having to have a user account created for

them. This is intended only for testing, and to make the installation

go a bit smoother. You should remove them before moving into a

production environment.

Remove anonymous users? [Y/n]

... Success!

Normally, root should only be allowed to connect from 'localhost'. This

ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]

... Success!

By default, MySQL comes with a database named 'test' that anyone can

access. This is also intended only for testing, and should be removed

before moving into a production environment.

Remove test database and access to it? [Y/n]

- Dropping test database...

... Success!

- Removing privileges on test database...

... Success!

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

Reload privilege tables now? [Y/n]

... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MySQL

installation should now be secure.

Thanks for using MySQL!

[root@server1 ~]#

centos 6.2安装mysql_CentOS 6.2下安装MySQL_服务器知识学堂-中关村在线相关推荐

  1. 浪潮5280m4导轨安装_NF5280M4机架解密:拆装方便和稳定_浪潮 英信NF5280M4(Xeon E5-2620 v3/8GB/300GB*3/16*HSB)_服务器知识学堂-中关村在线...

    3.NF5280M4拆装方便 NF5280M4整个系统可实现全免工具维护.前窗硬盘框架的免工具拆卸,大大缩短运维时间成本.整个机箱,可通过机箱顶盖的拉手锁扣将机箱盖方便的打开.支持热插拔散热风扇的同时 ...

  2. linux的python2.7安装pip的三种方式,Linux(Centos)在装有Python2的情况下安装Python3 两版本并存,安装完python3后pip、pip2都指向了python3

    安装pip的三种方式 pip是python的一个工具,用来安装python包特别方便. Linux系统是是内置python程序,因为许多Linux内置文件都是使用python来编写的,比如说yum. ...

  3. linux安装meb工具,linux-docker下安装禅道全部

    友情提示:按照步骤走,99%的人会安装成功,1%的人可以咨询度娘 64位电脑安装禅道,满足发送邮件功能 第一步: docker ps 查看docker中的容器是否有禅道(docker ps -a    ...

  4. 30天精通Python(数据分析篇)——第1天:环境搭建之 Linux/Windows 下安装 Anaconda 和 Windows 下安装 DataSpell

    目录 一.Linux 下安装 Anaconda 二.Jupyter Notebook 配置 三.Windows 下安装 DataSpell 3.1 DataSpell 介绍 3.2 DataSpell ...

  5. centos php7.0 mysql_CentOS 7.3 下 安装LNMP(Nginx1.10+MySQL5.7+PHP7.0.20)

    前言:最近总是要安装服务器环境,记录这次CentOS 7.3下安装LNMP(Nginx1.10+MySQL5.7+PHP7.0.20)环境的过程,以备日后使用. 一.准备工作 1. 更新源 # yum ...

  6. centos安装ffmpeg php,lnmp下安装ffmpeg和ffmpeg-php教程

    现在我将我的过程方法发布出来. 以下都是用SSH命令 一.安装ffmpeg 操作系统:centos6 安装ffmpeg有两种方式:①.用源码包安装,这个不知道怎么回事老是报错②用yum命令安装,cen ...

  7. CentOS下安装Memcached,Linux下安装Memcached,centos下安装memcached,linux下安装memcached...

    摘要:最近在看<大型分布式网站架构设计与实践>这本书,把其中的学习过程记录一下,以便日后复习. 一:Memcached简单介绍和描述: Memcached 是一个高性能的分布式内存对象缓存 ...

  8. centos selinux mysql 5.6_centos 6.4下安装mysql 5.6.11

    今天有空来测试下最新的centos6.4下安装最新数据可mysql5.6.11 系统安装在这里不再叙述 centos6.4采用最小化安装 mysql5.6.11采用源码包安装 初始化系统:关掉ipta ...

  9. centos 6.2 编译安装mysql_CentOS 6.2编译安装Nginx1.2.0+MySQL5.5.25+PHP5.3.13

    CentOS 6.2编译安装Nginx1.2.0+MySQL5.5.25+PHP5.3.13 2013-10-24 15:31:12 标签:服务器 防火墙 file 配置文件 written 一.配置 ...

最新文章

  1. 张仰彪第二排序法_C语言中的最常用的两种排序算法你知道吗?
  2. SQL优化的一些知识
  3. python调用c++动态库_Python调用C/C++动态链接库的方法
  4. 如何使得WIN7下用VS2010做出的MFC程序具有XP风格(摆脱传统界面的效果)
  5. oracle 正则表达式拆分字符串,oracle中通过正则表达式函数处理逗号分隔的字段...
  6. 2017/National _C_C++_B/2/磁砖样式
  7. 【内核驱动】 Linux内核源码查看方法(基于Vim)
  8. 《天天数学》连载13:一月十三日
  9. C# 高效率创建字符串类(StringBuilder)
  10. 嵌入式语音识别系统是什么
  11. Citrx XenDesktop 7 实施五 配置 XenDesktop Delivery Controller
  12. C++ 入门5 ---- 类和动态内存分配(一)
  13. Qt - 自定义窗口 点击窗口外自动关闭
  14. 下载sqlserver2012 试用_有哪些可以免费试用的电商ERP?
  15. 高仿城通网盘php,PHP代码提取城通网盘直链跳过广告下载
  16. 绿色到黄色到红色的颜色渐变实现
  17. Unity 第三人称人物移动
  18. Wishart分布及Inverse Wishart分布
  19. 网站克隆工具_全员惊艳!强推5款高质量的小众实用网站
  20. 工资详情计算器-适用于2022年新税法累计扣税规则

热门文章

  1. 连接fiddler后手机无法显示无网络
  2. PHP Smarty template for website
  3. 手机站点击商务通无轨迹解决方法
  4. Hadoop源代码分析(MapReduce概论)
  5. UpdatePanel的内容中出现自定义多语言运行异常
  6. 【杨中科】问苍天,微软的技术更新真的快吗
  7. android 动态壁纸
  8. python编程首选_为什么说学编程首选是python
  9. Mybatis源码之插件模块分析
  10. python高维数据_t-SNE高维数据可视化(python)