zoukankan      html  css  js  c++  java
  • ubuntu16.04安装mysql5.6

    ubuntu16.04安装mysql5.6

    apt-get install software-properties-common
    sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
    sudo apt-get update
    sudo apt install mysql-server-5.6
    sudo apt install mysql-client-5.6

    安装完mysql后要重启服务:见下面

    Ubuntu16.04完全卸载Mysql 5.7

    sudo apt purge mysql-*
    sudo rm -rf /etc/mysql/ /var/lib/mysql
    sudo apt autoremove
    sudo apt autoreclean
     
    启动mysql:
    方式一:sudo /etc/init.d/mysql start
    方式二:sudo service mysql start
     
    停止mysql:
    方式一:sudo /etc/init.d/mysql stop
    方式二:sudo service mysql stop
     
    重启mysql:
    方式一:sudo/etc/init.d/mysql restart
    方式二:sudo service mysql restart
     
  • 相关阅读:
    053335
    053334
    053333
    053332
    053331
    053330
    053329
    053328
    053327
    053326
  • 原文地址:https://www.cnblogs.com/TJGKK/p/11411436.html
Copyright © 2011-2022 走看看