Starting MySQL.........[FAILED]
[root@localhost src]# rpm -ivh MySQL-*.rpm
Preparing...###########################################[100%]
1:MySQL-shared###########################################[25%]
2:MySQL-client###########################################[50%]
3:MySQL-devel###########################################[75%]
4:MySQL-server###########################################[100%]
07112923:00:18[Warning]Askedfor196608threadstack,butgot126976
07112923:00:18[Warning]Askedfor196608threadstack,butgot126976
PLEASEREMEMBERTOSETAPASSWORDFORTHEMySQLrootUSER!
Todoso,starttheserver,thenissuethefollowingcommands:
/usr/bin/mysqladmin-urootpassword'new-password'
/usr/bin/mysqladmin-uroot-hlocalhost.localdomainpassword'new-password'
Seethemanualformoreinstructions.
NOTE:IfyouareupgradingfromaMySQL<=3.22.10youshouldrun
the/usr/bin/mysql_fix_privilege_tables.Otherwiseyouwillnotbe
abletousethenewGRANTcommand!
Pleasereportanyproblemswiththe/usr/bin/mysqlbugscript!
ThelatestinformationaboutMySQLisavailableonthewebat
http://www.mysql.com
SupportMySQLbybuyingsupport/licensesathttp://shop.mysql.com
StartingMySQL...................................[FAILED]
检查原因,原来SELINUX作怪
解决办法
进/etc/selinux然后viconfig把SELINUX=enforcing这一行
改为:SELINUX=disabled
然后保存,退出。:wq
这时记得一定要把电脑重启。然后再把以前装的MYSQL删除重装下。
[root@localhostsrc]#rpm-ivhMySQL-*.rpm
Preparing...###########################################[100%]
1:MySQL-shared###########################################[25%]
2:MySQL-client###########################################[50%]
3:MySQL-devel###########################################[75%]
4:MySQL-server###########################################[100%]
07112923:00:18[Warning]Askedfor196608threadstack,butgot126976
07112923:00:18[Warning]Askedfor196608threadstack,butgot126976
PLEASEREMEMBERTOSETAPASSWORDFORTHEMySQLrootUSER!
Todoso,starttheserver,thenissuethefollowingcommands:
/usr/bin/mysqladmin-urootpassword'new-password'
/usr/bin/mysqladmin-uroot-hlocalhost.localdomainpassword'new-password'
Seethemanualformoreinstructions.
NOTE:IfyouareupgradingfromaMySQL<=3.22.10youshouldrun
the/usr/bin/mysql_fix_privilege_tables.Otherwiseyouwillnotbe
abletousethenewGRANTcommand!
Pleasereportanyproblemswiththe/usr/bin/mysqlbugscript!
ThelatestinformationaboutMySQLisavailableonthewebat
http://www.mysql.com
SupportMySQLbybuyingsupport/licensesathttp://shop.mysql.com
StartingMySQL[确定]