2019独角兽企业重金招聘Python工程师标准>>>

开始安装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] <-- ENTER

  New password: <-- yourrootsqlpassword

  Re-enter new password: <-- yourrootsqlpassword

  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] <-- ENTER

  ... 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] <-- ENTER

  ... 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] <-- ENTER

  - 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] <-- ENTER

  ... 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 ~]#

转载于:https://my.oschina.net/zhangjie830621/blog/280965

centos6.5安装mysql相关推荐

  1. Mysql系列三:Centos6下安装Mysql和Mysql主从复制的搭建

    一.Centos6下安装Mysql 检测下系统有没有自带的mysql:yum list installed | grep mysql,  如果已经有的话执行命令yum -y remove mysql- ...

  2. centos6.4 安装mysql

    安装环境   centos x86_64 最小化安装 安装  "development tools"  "server platform development" ...

  3. centos6.8安装mysql打不开,Centos6.8安装Mysql5.7

    1.下载 wget https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm 2.安装用来配置mysql的yum源的rp ...

  4. centos 6 安装mysql,CentOS6.5安装MySQL教程(完整教程)

    Step 1:检测系统是否安装MYSQL# yum list installed | grep mysql 顺便提下如果yum有如下提示不能用的情况: yum在自动更新 原因是yum在自动更新 只要关 ...

  5. Linux centos6.5 安装mysql 以及简要操作书册

    文章目录 安装mysql 1.查看自己虚拟机有没有mysql的安装包 2.卸载(可选) 4.安装mysql服务: 5.安装完成之后 6.查看mysql的服务 7.开启mysqld的服务 8.进入mys ...

  6. centos6.4安装mysql的过程中出现的bug

    我今天安了一个mysql,下载一个源码包,感觉很简单,tar,./configure,make,make install 经典四步,弄这个也不是第一次了,但今天就是老出错,首先是./configure ...

  7. 6、单机运行环境搭建之 --CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码

    Mysql 5.5以后使用了CMake进行安装,参考与以前的区别请参考: http://www.blogjava.net/kelly859/archive/2012/09/04/387005.html ...

  8. 单机运行环境搭建之 --CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码

    来源:http://www.cnblogs.com/littlehb/archive/2013/04/02/2995007.html Mysql 5.5以后使用了CMake进行安装,参考与以前的区别请 ...

  9. Hive的安装-Mysql安装

    Hive 的安装 这里我们选用hive的版本是3.1.0这个release版本,可以兼容我们对应的hadoop3.x的版本 下载地址为: http://archive.apache.org/dist/ ...

  10. centos6.5 mysql下载_Centos6.5在线安装mysql 8.0详细教程

    Centos6.5在线安装mysql 8.0的顺序如下,希望大家可以顺利进行安装. Mysql卸载从下往上顺序 [root@localhost /]# rpm -e --nodeps qt-MySQL ...

最新文章

  1. 揭秘星际2人工智能AlphaStar:DeepMind科学家回应一切
  2. 产品中心和用户中心的视角摘抄
  3. python数据结构与算法第六讲_Python 学习 -- 数据结构与算法 (六)
  4. 直播App测试重点问题 - 服务器压力
  5. 丹麦IQ145满分全部完美解谜(zz)
  6. JavaScript返回上一页并刷新的多种实现方法(十八)
  7. ZH奶酪:PHP遍历目录/文件的3种方法
  8. linux中shell curl命令获取http状态码--------强大的网络传输工具
  9. DVWA 黑客攻防演练(十二) DOM型 XSS 攻击 DOM Based Cross Site Scripting
  10. This request has been blocked; the content must be served over HTTPS
  11. Java到底能做什么事情呢?
  12. bochs+linux可上网版,bochs win7镜像可
  13. 机器学习理论 之 经验风险最小化(Empirical Risk Minimization)
  14. Valheim英灵神殿服务器搭建指南 个人记录及踩坑
  15. 组织敏捷程序:第2部分,用于管理敏捷程序的网络
  16. 天才小毒妃 第912章 坑了一大笔
  17. 71个简单的做饭技巧
  18. 关于一些C语言代码优化的方法,我慷慨解囊了大家酌情收藏
  19. std::upper_bound与std::lower_bound
  20. OpenGL glMaterialfv材质设置 用例

热门文章

  1. Java第二节课总结
  2. 苹果mac os x系统的两种快捷截图技巧
  3. asp.net页面的生存周期
  4. Linux的内核性能参数的调整
  5. 一道不知道哪里来的贪心题
  6. [YARN-1963] 支持同一个队列内作业按优先级调度
  7. QT自定义opengl的Widget绘制Mat
  8. 在本地电脑搭建一个网站 转自本文地址:http://www.fengzimo.com/1503.html 来源 疯子墨...
  9. python基础知识(day3)
  10. 一、 Python概述、变量