linux系统安装mysql教程

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014645652/article/details/79981470
  1. 安装仓库列表:
    mysql-community-release-el6-5.noarch.rpm传到服务器上
  2. 安装仓库列表:
    执行 yum localinstall mysql-community-release-el6-5.noarch.rpm
  3. 安装mysql:
    yum install mysql-server
  4. 启动mysql:
    sudo service mysqld start
  5. 设置root用户密码
    /usr/bin/mysqladmin -u root password ‘new-password’ //为root账号设置密码
  6. mysql远程连接授权:
    服务器上local登录mysql -u root -p xxxx,
    GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘new-password’ WITH GRANT OPTION;
    此时即可远程连接mysql数据库
阅读更多

没有更多推荐了,返回首页