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!

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

  • 相关阅读:
    .NET-记一次架构优化实战与方案-梳理篇
    .net core实践系列之SSO-跨域实现
    Vue
    C# WPF
    开源框架
    开源框架
    开源框架
    开源框架
    WCF
    WCF
  • 原文地址:https://www.cnblogs.com/mrcharles/p/4731736.html
Copyright © 2011-2022 走看看