2017 年 12 月 - 1 文章

Centos安装Mysql记录

  |   0 评论   |   1,252 浏览

Linux安装Mysql 下载mysql的repo源 wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 安装mysql-community-release-el7-5.noarch.rpm包 sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm 安装mysql sudo yum install mysql-server ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket sudo chown -R openscanner:openscanner /var/lib/mysql 然后,重启服务 service mysqld restart 接下来登录重置密码 mysql -u root mysql > use mysql; mysql > update user set password=password('penc....