1. 程式人生 > >虛擬機centos安裝mysql遇到 Couldn‘t resolve host ‘mirror

虛擬機centos安裝mysql遇到 Couldn‘t resolve host ‘mirror

server conn onf connect mys 服務器 tor dns服務 entos

網上查了一下說是DNS服務器錯誤。於是修改一下 /etc/resolv.conf
添加一個nameserver 8.8.8.8完成
虛擬機centos安裝mysql遇到 Couldn‘t resolve host ‘mirror
安裝MySql server:
1.下載安裝 yum install -y mysql-server
2.服務開啟 service mysqld start
3.服務隨開機啟動 chkconfig mysqld on
4.進入mysql mysql exit
5.安裝連接 yum install -y mysql-connector-java

虛擬機centos安裝mysql遇到 Couldn‘t resolve host ‘mirror