CentOS 6.x 下如何用 Yum全新安装MySQL 5.5

1.先安装Webtatic的RPM包

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
2.安装mysql客户端和服务端
yum install mysql55w mysql55w-server

3.设为服务自启动

chkconfig –levels 235 mysqld on
service mysqld start

如果遇到错误:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist, 一般可能通过以下方式解决

chown -R mysql /var/lib/mysql
chgrp -R mysql /var/lib/mysql

370 Comments

  1. 119483 657793Thank you for every other informative web site. Where else could I get that type of information written in such a perfect indicates? Ive a mission that Im just now operating on, and Ive been at the look out for such information. 380118

  2. 273014 327679Hi! I discovered your web site accidentally today, but am actually pleased that we did! Its not only entertaining, but in addition straightforward to make use of in contrast to lots that Ive viewed! 67610

  3. 249106 365078Right after examine a couple of of the weblog posts on your web site now, and I really like your way of blogging. I bookmarked it to my bookmark web site list and shall be checking again soon. Pls try my web site online as well and let me know what you believe. 112378

  4. 476405 706885I discovered your blog site on google and verify a couple of of your early posts. Continue to maintain up the superb operate. I just extra up your RSS feed to my MSN News Reader. Searching for forward to reading extra from you in a whilst! 283815

  5. 177544 43579This web page is often a walk-through its the internet you wanted about this and didnt know who to question. Glimpse here, and youll completely discover it. 301782

  6. wh0cd116901 [url=http://phenergan.doctor/]order phenergan online[/url] [url=http://allopurinol.video/]allopurinol[/url] [url=http://metformin500mg.store/]metformin[/url] [url=http://ventolin.doctor/]ventolin[/url] [url=http://diclofenac.doctor/]visit website[/url] [url=http://tadalafil.blue/]tadalafil[/url] [url=http://xenical.video/]xenical 120 mg[/url] [url=http://allopurinol100mg.store/]generic allopurinol[/url] [url=http://prozac.pink/]order prozac[/url] [url=http://valtrex.tips/]for more[/url]

Comments are closed.