• 安装 mysql5.7.2 (Ubuntu 16.04 desktop amd64)


    1.下载mysql deb

    https://dev.mysql.com/downloads/mysql/

    #移动到/usr/local/src/目录,解压

    sudo mv mysql-server_5.7.24-1ubuntu16.04_amd64.deb-bundle.tar /usr/local/src/
    cd /usr/local/src/
    sudo tar -xvf mysql-server_5.7.24-1ubuntu16.04_amd64.deb-bundle.tar

    #更新,安装依赖

    sudo apt-get update
    sudo apt-get install libaio1

    #安装MySQL

    sudo dpkg -i mysql-common_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg-preconfigure mysql-community-server_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg -i libmysqlclient20_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg -i libmysqlclient-dev_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg -i mysql-community-client_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg -i mysql-client_5.7.24-1ubuntu16.04_amd64.deb
    sudo apt-get -f install
    sudo apt-get -f install libmecab2
    sudo dpkg -i mysql-community-server_5.7.24-1ubuntu16.04_amd64.deb
    sudo dpkg -i mysql-server_5.7.24-1ubuntu16.04_amd64.deb

    #进入MySQL: mysql -u root -p

     #启动: sudo service mysql start

     #重启:sudo  service mysql restart 

    #关闭: sudo service mysql stop

    #检查mysql是否在运行:  sudo service mysql status

    1、数据库目录
    /var/lib/mysql/
    2、配置文件
    /usr/share/mysql(mysql.server命令及配置文件)
    3、相关命令
    /usr/bin(mysqladmin mysqldump等命令)
    4、启动脚本
    /etc/rc.d/init.d/(启动脚本文件mysql的目录)

  • 相关阅读:
    24点游戏 程序(一)
    24点游戏全解-1362组
    Android版 hanoi 汉诺塔 源码
    24点游戏 程序(二)
    Javascript 面向对象编程
    新浪微博 OAuth2 NodeJs发微博
    AT5800 [AGC043C] Giant Graph 题解
    CF1033D Divisors 题解
    CF1033E Hidden Bipartite Graph 题解
    AT???? [ABC255D] String Cards 题解
  • 原文地址:https://www.cnblogs.com/sea-stream/p/9859874.html
Copyright © 2020-2023  润新知