zoukankan      html  css  js  c++  java
  • linux 下 安装mysql

    安装之前,因为redhat 是yum自带的,但是不能使用,因为要交钱,还要订阅,所以需要卸载,重新安装163提供的yum
    在另外一篇文章介绍

    yum list mysql* 列出所有关于mysal的安装包


    查找相关的安装包



    安装mysql
    yum会检查所有的依赖文件,并且下载安装


    安装依赖安装包

    安装完成,启动mysql

    登录mysql 没有密码,直接回车就好啦


     /usr/bin/mysqladmin -u root password 'root'

    重新设置密码

    下面有mysql给出的步骤
    To start mysqld at boot time you have to copy
    support-files/mysql.server to the right place for your system

    PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    To do so, start the server, then issue the following commands:

    /usr/bin/mysqladmin -u root password 'new-password'
    /usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

    Alternatively you can run:
    /usr/bin/mysql_secure_installation  安全设置

    which will also give you the option of removing the test
    databases and anonymous user created by default.  This is
    strongly recommended for production servers.

    See the manual for more instructions.

    You can start the MySQL daemon with:
    cd /usr ; /usr/bin/mysqld_safe &

    You can test the MySQL daemon with mysql-test-run.pl
    cd /usr/mysql-test ; perl mysql-test-run.pl

    Please report any problems with the /usr/bin/mysqlbug script!

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    01人月神话阅读笔记
    第一阶段冲刺010
    03构建之法阅读笔记
    第一阶段冲刺09
    第一阶段冲刺08
    第一阶段冲刺07
    第一阶段冲刺06
    08返回一个整数数组中最大子数组的和
    02构建之法阅读笔记
    请给出一个Scala RDD的HelloWorld例子
  • 原文地址:https://www.cnblogs.com/mrcharles/p/4731736.html
Copyright © 2011-2022 走看看