CentOS6.2安装MySQL5.5
从上午到现在一直在装MySQL,查了很多资料终于搞定了。和大家分享下。
?
操作系统:CentOS 6.2
?
安装工具:Windows 7的Xshell
?
一、下载cmake和mysql的安装包
?
?
vim /etc/sysconfig/iptables#加入下面这行,注意把它添加到22端口后面,切记不要放在最后-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT:wq #保存退出/etc/rc.d/init.d/iptables restartgrant all privileges on *.* to bbcv@'%' identified by 'bbcv' with grant option #进入mysql通过授权语句添加远程用户,之后便可以远程到mysql?
?