zoukankan      html  css  js  c++  java
  • 利用rpm安装mysql

    yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686

    http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libaio.so.1%28LIBAIO_0.1%29

    需要libaio库

     

    先查看系统中是否已经安装过MySQL:
    rpm -qa|grep mysql  

    MySQL-server-VERSION.rpm
    mysql服务文件包(若连接远程服务器,可不用安装此包)
    MySQL-client-VERSION.rpm
    mysql客户端
    一般只需要安装这2个文件包即可。

     查看安装包信息:

    shell> rpm -qpl MySQL-server-VERSION.glibc23.i386.rpm
    

     安装一下2个文件包: 

    shell> rpm -i MySQL-server-VERSION.glibc23.i386.rpm
    shell> rpm -i MySQL-client-VERSION.glibc23.i386.rpm
    

    To install only the client programs, install just the client RPM:

    shell> rpm -i MySQL-client-VERSION.glibc23.i386.rpm
    安装完成后需要重新启动计算机,之后输入mysql即可启动mysql
    若提示"Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) "错误,则需要重新启动一下计算机
    安装完成以后可以使用mysqladmin命令修改初始密码:



    mysqladmin -u root password 'new-passwd'
    /usr/bin/mysqladmin -u root password 'new-password'
    /usr/bin/mysqladmin -u root -h bogon password 'new-password'

    目录结构:

    /usr/bin Client programs and scripts
    /usr/sbin The mysqld server
    /var/lib/mysql Log files, databases
    /usr/share/info Manual in Info format
    /usr/share/man Unix manual pages
    /usr/include/mysql Include (header) files
    /usr/lib/mysql Libraries
    /usr/share/mysql Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation
    /usr/share/sql-bench

    Benchmarks

  • 相关阅读:
    Quick QEMU
    Linux 常用命令速查
    Linux 安装篇
    Vivaldi解决flash插件问题
    VNC 安装 (适用Redhat 9.0 和 CentOS 7.0+)
    Git使用笔记 (github为例)
    poj3045 Cow Acrobats(二分最大化最小值)
    poj3104 Drying(二分最大化最小值 好题)
    poj3468 A Simple Problem with Integers(线段树区间更新)
    poj1852 Ants(思维)
  • 原文地址:https://www.cnblogs.com/gbyukg/p/2200864.html
Copyright © 2011-2022 走看看