oyama919 / vagrant-wordpress

0 stars 0 forks source link

mysql5.7インストール #4

Closed oyama919 closed 6 years ago

oyama919 commented 6 years ago

1

https://qiita.com/kobayashi-m42/items/802ca07e3450d4658ae3

oyama919 commented 6 years ago

sudo yum -y update でエラー --> Finished Dependency Resolution Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (@anaconda) Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit) Removing: 1:mariadb-libs-5.5.60-1.el7_5.x86_64 (@koji-override-1) libmysqlclient.so.18(libmysqlclient_18)(64bit) Obsoleted By: mysql-community-libs-5.7.24-1.el6.x86_64 (mysql57-community) Not found Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (base) libmysqlclient.so.18(libmysqlclient_18)(64bit) Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (@anaconda) Requires: libmysqlclient.so.18()(64bit) Removing: 1:mariadb-libs-5.5.60-1.el7_5.x86_64 (@koji-override-1) libmysqlclient.so.18()(64bit) Obsoleted By: mysql-community-libs-5.7.24-1.el6.x86_64 (mysql57-community) ~libmysqlclient.so.20()(64bit) Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (base) libmysqlclient.so.18()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

とりあえず--skip-brokenで対処 sudo yum -y update --skip-broken

oyama919 commented 6 years ago

うまくいかないのでlibsasl2.so.2について調べる 上記のエラーのこの部分

Error: Package: mysql-community-server-5.7.24-1.el6.x86_64 (mysql57-community)
           Requires: libsasl2.so.2()(64bit)

参考 https://www.geek.sc/archives/620

sudo yum -y install libsasl2.so.2
Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

openldap-2.4.44-15.el7_5.i686 : LDAP support libraries Repo : updates Matched from: Provides : liblber-2.4.so.2

これいれればいいのか openldap-2.4.44-13.el7.i686

oyama919 commented 6 years ago

sudo yum install -y openldap-2.4.44-15.el7_5.i686

Installed:
  openldap.i686 0:2.4.44-15.el7_5                                                                   

Dependency Installed:
  cyrus-sasl-lib.i686 0:2.1.26-23.el7              glibc.i686 0:2.17-222.el7                        
  keyutils-libs.i686 0:1.5.8-3.el7                 krb5-libs.i686 0:1.15.1-19.el7                   
  libcom_err.i686 0:1.42.9-12.el7_5                libdb.i686 0:5.3.21-24.el7                       
  libgcc.i686 0:4.8.5-28.el7_5.1                   libselinux.i686 0:2.5-12.el7                     
  libsepol.i686 0:2.5-8.1.el7                      libstdc++.i686 0:4.8.5-28.el7_5.1                
  libverto.i686 0:0.2.5-4.el7                      ncurses-libs.i686 0:5.9-14.20130511.el7_4        
  nspr.i686 0:4.19.0-1.el7_5                       nss.i686 0:3.36.0-7.el7_5                        
  nss-pem.i686 0:1.0.3-4.el7                       nss-softokn.i686 0:3.36.0-5.el7_5                
  nss-softokn-freebl.i686 0:3.36.0-5.el7_5         nss-util.i686 0:3.36.0-1.el7_5                   
  openssl-libs.i686 1:1.0.2k-12.el7                pcre.i686 0:8.32-17.el7                          
  readline.i686 0:6.2-10.el7                       sqlite.i686 0:3.7.17-8.el7 
oyama919 commented 6 years ago

うまくいかない el6 バージョン違い? sudo yum -y install https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm

http://cot-cotton.com/server/2018/05/post-418/ 入れ直す

sudo yum remove mysql* 
sudo yum -y install https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
sudo yum -y install mysql-community-server
oyama919 commented 6 years ago

入った mysql --version mysql Ver 8.0.13 for Linux on x86_64 (MySQL Community Server - GPL) 8?

oyama919 commented 6 years ago

sudo yum remove mysql* sudo rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm sudo yum -y install mysql-community-server また Error: Package: mysql-community-server-5.7.24-1.el6.x86_64 (mysql57-community)

公式見る https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ 最新ならこれか sudo yum-config-manager --enable mysql57-community sudo yum -y install mysql-community-server

oyama919 commented 6 years ago

5.7.24が入った 5.7.xなのでOK

mysql --version
mysql  Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using  EditLine wrapper
RVIRUS0817 commented 6 years ago

ワードプレス用のDBと権限作って下さい

oyama919 commented 6 years ago

>ワードプレス用のDBと権限作って下さい #8 参考 https://github.com/oyama919/vagrant-wordpress/issues/1#issuecomment-435725920