ubuntu安装MySQL

本文介绍如何在Ubuntu 14.04上安装MySQL 5.6版本。首先从MySQL官网下载服务器文件并解压,接着安装依赖项如libaio1,然后安装MySQL服务器及客户端。最后通过命令行启动和停止MySQL服务。

install mysql56 on ubuntu14.04

  • go to www.mysql.com and download mysql server file

  • enter the direction of the download file

  • extract mysql tar file

    tar -xvf mysql-server_5.6.26-1ubuntu14.04_i386.deb-bundle.tar
  • install dependencies
    sudo dpkg -i mysql-common_5.6.26-1ubuntu14.04_i386.deb
    sudo apt-get install libaio1
  • install mysql server
    sudo dpkg -i mysql-community-server_5.6.26-1ubuntu14.04_i386.deb
  • install mysql client otherwise you can not use mysql command line in the terminal
    sudo dpkg -i mysql-community-client_5.6.26-1ubuntu14.04_i386.deb

stop & start the service of mysql

  • start:
    sudo /etc/init.d/mysql start
  • stop:
    sudo /etc/init.d/mysql stop

or:

  • start:
    sudo service mysql start
  • stop :
    sudo service mysql stop

done

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值