美文网首页
Ubuntu Mysql Install By The MySQ

Ubuntu Mysql Install By The MySQ

作者: primopeng | 来源:发表于2018-02-02 00:00 被阅读0次

    一、Adding the MySQL APT Repository

    1、Go to the download page for the MySQL APT repository           at http://dev.mysql.com/downloads/repo/apt/.

    2、Select and download the release package for your Linux distribution.

    3、Install the downloaded release package with the following command, replacing version-specific-package-namewith the name of the downloaded package (preceded by its path, if you are not running the command inside the folder where the package is):
    shell> sudo dpkg -i mysql-apt-config_w.x.y-z_all.deb
    shell> sudo apt-get update.x.y-z_all.deb

    4、Update package information from the MySQL APT repository with the following command (this step is mandatory):
    shell> sudo apt-get update

    二、Installing MySQL with APT
    shell> sudo apt-get install mysql-server

    三、Starting and Stopping the MySQL Server
    shell> sudo service mysql status
    shell> sudo service mysql stop
    shell> sudo service mysql start

    四、Remote Connect Mysql
    1、GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT 2、OPTION; FLUSH PRIVILEGES;
    3、modify mysql configure file
          Change line
          bind-address = 127.0.0.1
          to
          #bind-address = 127.0.0.1
     4、restart mysql server

    相关文章

      网友评论

          本文标题:Ubuntu Mysql Install By The MySQ

          本文链接:https://www.haomeiwen.com/subject/bdzjzxtx.html