首页 新闻 会员 周边 捐助

centos 确认MySQL是否安装成功

0
[待解决问题]

Connecting to 172.16.10.213:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Thu Nov 27 14:44:38 2014 from 172.16.10.199
[root@localhost ~]# java -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
[root@localhost ~]# yum -y install mysql-server
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

[root@localhost ~]# vi /etc/my.nf
[root@localhost ~]# vi /etc/my.cnf

 

如果没有成功,我就想知道为什么还有my.cnf文件


[root@localhost ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
default-character-set = utf8


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
default-character-set = utf8

雨落随川的主页 雨落随川 | 初学一级 | 园豆:196
提问于:2014-11-28 17:15
< >
分享
所有回答(1)
0

文件是复制出来的, 配置文件都在, 只不过你无法启动是吗?

问天何必 | 园豆:3311 (老鸟四级) | 2014-12-05 14:55
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册