Mysql [Warning] Can't create test file

by 九九 2012-07-23 | 482738 次阅读 标签: 服务器问题博客主页

啊!!这Linux就是权限流,各种权限引发的时间消耗战,搞来搞去,找来找去,最后还是在“权限”这两个字上面找到了解法~为了让数据库文件能更加的安全,我把Mysql Database的目录指向到了Home下的一个库目录,并把此目录的所有东西都给了mysql用户,执行:
#sudo chmod mysql:mysql -R xxxx
可弄了半天,还是报着
Mysql [Warning] Can't create test file
之类的错误。我找不到解法了,一路狂Google,找到了篇Blog,如下所写:
在一篇老外的帖子中找到了大概原因,大概原因是安装了SELINUX策略后,无论APACHE或MYSQL都要更改目录的权限
如果是APACHE,方法为:
# chcon -R -h -t httpd_sys_content_t /www/web/
如果是mysql,方法为:
# chcon -R -t mysqld_db_t /mysql
啊!!重新的来
#sudo service mysqld start
mysqld start [成功]

评论(27314)

Osvaldo To 九九 (9小时以前)

Miserable Failure Gender not withstanding, for the purpose of our discussion regarding the ego, it will suffice to say that we all have one, and in relatively equal measure. In 1263, Simon de Montfort, Earl of Leicester, seized power and revolted. So you have to get the advice of an experienced person to resolve the issue if the problem is with your BIOS settings.

ilexhizaac To 九九 (17小时以前)

http://20mgprednisone-online.org/ - Prednisone 20 Mg <a href="http://viagra-cheapest-100mg.com/">Viagra Pills</a> http://cialis20mg5mg.net/

ijemevijhereh To 九九 (18小时以前)

http://20mgprednisone-online.org/ - Prednisone Without Dr Prescription <a href="http://viagra-cheapest-100mg.com/">Trouver Du Viagra</a> http://cialis20mg5mg.net/

ivuziev To 九九 (18小时以前)

http://20mgprednisone-online.org/ - Prednisone <a href="http://viagra-cheapest-100mg.com/">Viagra Generic 100mg</a> http://cialis20mg5mg.net/

inewiqay To 九九 (19小时以前)

http://20mgprednisone-online.org/ - Prednisone Without Dr Prescription <a href="http://viagra-cheapest-100mg.com/">Viagra Pills</a> http://cialis20mg5mg.net/

Jerold To 九九 (24小时以前)

essay Numerous Internet sources have sample personal statements that you can look over. Students who find difficult to compose their own law essay with perfection may seek help from law essay writing service providers who utilize their expertise and experience to trace all the errors and transforming an average law essay into a first class law essay. Be sure to attribute quotations and sources meticulously.

Delores To 九九 (2天以前)

Allure Escort Agency - A brand new, fresh, innovate Escort Agency in Newcastle upon Tyne. Newcastle Escorts Newcastle Escorts Welcome to the website of the Allure Escort Agency in Newcastle, the elite escort agency for those looking for the company of sexy and uninhibited female companions. As a friendly, honest and performance-focused, female run operation, we are the best escort agency in North East today. Newcastle Escorts Why is the Allure Escort Agency in Newcastle the best?

amehabon To 九九 (2天以前)

http://20mgprednisone-online.org/ - By Prednisone W Not Prescription <a href="http://viagra-cheapest-100mg.com/">Viagra 100mg</a> http://cialis20mg5mg.net/

azuperaxemi To 九九 (2天以前)

http://20mgprednisone-online.org/ - Prednisone 20 Mg <a href="http://viagra-cheapest-100mg.com/">Viagra Pills</a> http://cialis20mg5mg.net/

eixbuvu To 九九 (2天以前)

http://20mgprednisone-online.org/ - No Prescription Prednisone <a href="http://viagra-cheapest-100mg.com/">E N Viagra</a> http://cialis20mg5mg.net/

ibuepuf To 九九 (2天以前)

http://20mgprednisone-online.org/ - Prednisone <a href="http://viagra-cheapest-100mg.com/">Viagra</a> http://cialis20mg5mg.net/

Samurai Sword To 九九 (2天以前)

Pristine item!! Thanks so much, can't wait to use it!!!!!! <a href="http://www.japanesesamuraikatana.com/1060-Steel-Samurai-Sword-c13269/" title="Samurai Sword">Samurai Sword</a>

EmpockmoW To 九九 (2天以前)

Cassino ladda ner Svenska spel lotto joker resultat Sverige online casino svenska spelautomater Top casino online usa players for real. <a href="http://365sportdays.com/casino-flensburg-ffnungszeiten/744">casino flensburg offnungszeiten</a> <a href="http://365sportdays.com/svenska-spel-kundtjnst-ppettider/1759">svenska spel kundtjanst oppettider</a> Video-slots eller banditer r olika namn pa spelautomater , Det finns Vill du spela pa svenska kasin

Brigette To 九九 (2天以前)

When you want to lay your hands on the most exclusive and exquisite diamonds, you must have the sense to sort it out from worthless pebbles that might look tempting! We, at Elite Diamond Escorts, are equipped with the best diamond-like divas who has studded our gallery- and they are nothing short of the precious diamonds. Looking for the best partner to whisk away time while enjoying her jocund company? Our Nottingham escorts fit the bill perfectly! When you have once sealed the dea

mxepacike To 九九 (2天以前)

http://20mgprednisone-online.org/ - Prednisone With No Prescription <a href="http://viagra-cheapest-100mg.com/">Lowest Price For Generic Viagra</a> http://cialis20mg5mg.net/

ubeletfupin To 九九 (2天以前)

http://20mgprednisone-online.org/ - Prednisone Without Dr Prescription <a href="http://viagra-cheapest-100mg.com/">Viagra Post Haste</a> http://cialis20mg5mg.net/

xepujidiru To 九九 (2天以前)

http://20mgprednisone-online.org/ - By Prednisone W Not Prescription <a href="http://viagra-cheapest-100mg.com/">Viagra</a> http://cialis20mg5mg.net/

uriozakihufux To 九九 (2天以前)

http://20mgprednisone-online.org/ - Prednisone 20 Mg <a href="http://viagra-cheapest-100mg.com/">Viagra Pills</a> http://cialis20mg5mg.net/

ikwocuqihaleo To 九九 (2天以前)

http://20mgprednisone-online.org/ - Buy Prednisone Without Prescription <a href="http://viagra-cheapest-100mg.com/">Online Viagra</a> http://cialis20mg5mg.net/

Grace To 九九 (3天以前)

When you want to lay your hands on the most exclusive and exquisite diamonds, you must have the sense to sort it out from worthless pebbles that might look tempting! We, at Elite Diamond Escorts, are equipped with the best diamond-like divas who has studded our gallery- and they are nothing short of the precious diamonds. Looking for the best partner to whisk away time while enjoying her jocund company? Our Nottingham escorts fit the bill perfectly! When you have once sealed the deal

betterscooter.com To 九九 (3天以前)

I do think many are extremely cute; dude has got the red wine bailey handles in addition to the bailey icon triplet around the vibrant ocean. Compared for you to antique betterscooter.com http://adf.ly/6249830/banner/www.scamadviser.com/is-betterscooter.com-a-fake-site.html the actual sheepkin which is nicer and in addition shearling rooms really feel cheap especially when unbuttoned. I rrnvested in the main Bailey Switches inside of the krinkle as soon as I simply received all of them these f

Tanto Sword To 九九 (3天以前)

very fast, got exactly what was ordered, good seller would buy again from seller [url=http://www.japanesesamuraikatana.com/Tanto-Swords-c13273/]Tanto Sword[/url]

EmpockmoW To 九九 (3天以前)

Vinnarum r ett svenskt casino som lanserade sitt ntcasino ar 2011 Namnet Vinnarum kommer fran den smalndska orten Vinnarum och fran brjan var det en. <a href="http://365sportdays.com/spela-casino-p-svenska/350">spela casino pa svenska</a> <a href="http://365sportdays.com/king-kong-spelet/186">king kong spelet</a> Pengar spelautomater Men om Jack Vegas- eller miljontals dollar? <a href="http://365sportdays.com/casino-salaise-sur-sanne/358

my site To 九九 (3天以前)

Looking for email marketing then Fluttermail Email Marketing Software For Business available online @ xingato http://pop.in

Nona To 九九 (3天以前)

When you want to lay your hands on the most exclusive and exquisite diamonds, you must have the sense to sort it out from worthless pebbles that might look tempting! We, at Elite Diamond Escorts, are equipped with the best diamond-like divas who has studded our gallery- and they are nothing short of the precious diamonds. Looking for the best partner to whisk away time while enjoying her jocund company? Our Nottingham escorts fit the bill perfectly! When you have once sealed the deal

samurai sword blade To 九九 (3天以前)

Smooth transaction! Thank you! <a href="http://www.japanesesamuraikatana.com/" title="samurai sword blade">samurai sword blade</a>

Analisa To 九九 (4天以前)

When you want to lay your hands on the most exclusive and exquisite diamonds, you must have the sense to sort it out from worthless pebbles that might look tempting! We, at Elite Diamond Escorts, are equipped with the best diamond-like divas who has studded our gallery- and they are nothing short of the precious diamonds. Looking for the best partner to whisk away time while enjoying her jocund company? Our Nottingham escorts fit the bill perfectly! When you have once sealed the dea

Beatriz To 九九 (4天以前)

http://www.authenticpharm.com/anabolic-steroids/Winstrol and http://buy-steroids-europe.net/British-Dragon/ is the place where you can buy steroids online which sells real anabolic steroids, injectable steorids, oral steroids by Geneza Pharmaceuticals, Asia Pharma, Biomex labs, Balkan Pharmaceuticals, British Dispensary, British Dragon and others. All their stuff is authentic and of very high quality - here you can buy testosterone, anadrol, trenbolone, human growth hormone, cytomel, T3

PS:多打字可以减肥哦~234字以内。支持表情:

Top