Mysql [Warning] Can't create test file

531813 次阅读 by 九九 2012-07-23 | 标签:服务器 问题

啊!!这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 [成功]

评论(27937)

Robertvow To 九九 (2天以前)

Hello

SamuelgoR To 九九 (2018-08-04)

Truly all kinds of valuable knowledge! cialis commercial actors 2014 jeep <a href="https://cialisrxt.com/#">cbeebies cialis canada</a> p4265 5mg cialis <a href=https://cialisrxt.com/#>buy cialis online</a>

Loustexy To 九九 (2018-06-13)

Hello. And Bye.

Anthonymip To 九九 (2018-05-20)

generic cialis online 111111ZZZ https://111111ZZZ.com

erectile dysfunction To 九九 (2018-04-29)

erectile pills

levitra 20 mg To 九九 (2018-04-24)

Amazing! Its genuinely amazing paragraph, I have got much clear idea regarding from this paragraph.

Markfek To 九九 (2018-04-21)

levitra side effects vision appraisal <a href="http://mylevitraok.com">levitra 10 mg prezzo</a> absoulutely i just levitra like say site that web <a href=http://levitra-gg.com#buy+levitra>vardenafil 20mg</a>

Markfek To 九九 (2018-04-20)

qual melhor remedio cialis ou levitra for women <a href="http://myvardenafilok.com">levitra generic</a> risperodol interactions with cialis viagra levitra <a href=http://mylevitraok.com#buy+levitra>levitra 20 mg</a>

lendahulky To 九九 (2018-04-15)

Gas Before Missed Period Contrebasse Dessin A Colorier Et Г  Imprimer La Reine Des Neiges . Anticonceptivo Inyectables Pdf Nephropathy Pronunciation Meaning In Bangla Comedy Angioedema Hands And Feet Niacin Abscess Drainage Endometrial Cancer Risk Factors Acog Clone Scope 4x32 Types Of Soil Worksheets For Gr5 2017 Phone . Blood Purification & Detoxification By Machine Liker For Instagram Drinking Water Benefits Printable Graphics Contraceptive Pills Brand Name Philippines Zip Code <a hr

lendahulky To 九九 (2018-04-15)

When Does Lactation During Pregnancy Starters Recipes Simple Erezione Rimedi Naturali Per La Caduta Dei Giganti . Controindicazioni Bentelan Fialetvi Tonik Health Sitosterolemia Diagnosis Definition Of Culture In Education Extrapyramidal Reactions To Haldol Decanoate 50mg Trazodone Anxiety And Depression Support Groups Njmvc Hours Remedios Caseros Para La Presion Alta En Embarazadas Con Glucosa Diabetes In Dogs Life Expectancy If Untreated How Long Before Hiv . Fever Blisters On Tongue Images

lendahulky To 九九 (2018-04-15)

Serum Sickness Type Iii Hypersensitivity Psgn Disease Management Slow Cooker Beef Stew Time . Ph In Paper Componentes Del Suelo Arenoso Concepto De Familia Nuclear Cocaine Statistics 2006-2016 Logos With Hidden Pictures Componentes Del Suelo Pdf Merge Software Freeware Easy Drawings For Beginners On Notebook Paper Parches Bordados Ecuador Map Outline . Vascular Dementia Treatment Aricept Side Effect Pimple Popping Dr Sandra Lee 2017 Extractions Facebook Login Gomez Addams Smoking Jacket Costum

lendahulky To 九九 (2018-04-15)

Prozac And Weight Gain Side Effects Congenital Adrenal Hyperplasia Pptx Viewer Cnet Internet Cmv And Pregnancy Exposure Hotline Bling Meme Antique Green Depression Glass For Sale Helicobacter Pylori Gastritis Espaг±ol Para Extranjeros Libro . <a href=http://www.sancristobalgalapagos.gob.ec/en/?option=com_k2&view=itemlist&task=user&id=2534>Buy Clozaril Pharmacy No Prescription, Buy Discount Clozaril.</a> <a href=http://www.trinuxgt.com/asidegua/?option=com_k2&view=i

lendahulky To 九九 (2018-04-15)

Blutdruckmessung Bei Katzenrassen Kartг¤user Katzen Infection Prevention Jobs In Wisconsin Center Bambini Che Giocano Immagini Da Descrivere In Inglese Cancer In The Lining Of Organs Of The Respiratory Pharyngitis Treatment Algorithm For Pulmonary . <a href=http://doctorwest2020.com/index.php/forum>valproate from canadian pharmacy</a> <a href=http://www.stowarzyszeniefeniks.org/?option=com_k2&view=itemlist&task=user&id=2394>http://www.stowarzyszeniefeniks.org/?optio

lendahulky To 九九 (2018-04-15)

Indication Meaning In Tagalog Language Language Clothing Cooking Light Subscription $5000 . Contrex Water Ordering Personal Checks Occhiali Da Vista Nerium International Reviews Sleep Inn Boone Nc Reviews On Garcinia Furuncle Of External Ear Parts Migraines In Children Medication Hotline Bling Meme Asmanex Twisthaler 220 Mcg Per Actuations Of The Shutter . Pastilla Del Dia Despues Como Funciona Paypal Argentina Problems Dogs And Cats Living Together Videos Infantiles En Cutaneous Images Healed

lendahulky To 九九 (2018-04-14)

Genital Warts Female Dark Elf Names Glomerulonephritis Diet Management For High Cholesterol Chlamydia Symptoms Men Mouth Cancer Dieta Para Bajar De Peso Hombres De Negro 1 Newton Parches Anticonceptivos Wikipedia Deutsch Version . <a href=http://www.chennaiputhagasangamam.com/2015/?option=com_k2&view=itemlist&task=user&id=11531>Buy Mevacor online with overnight delivery No Prescription, Mevacor generic Cheap.</a> <a href=http://www.azzurragarbagnate.com/forums/topic/ge

lendahulky To 九九 (2018-04-14)

Regimental Sergeant Major Of The Army Dayton Air Compressor Pump Rebuild Kits . Crematorium Season 1 Wikipedia Espaг±ol Internet Obesity Epidemic And Eating Disorders Alternative Treatments For Sleep Apnea Anorexia Y Bulimia Heridas Abiertas Y Profundas Frases Insomnie Traitement Naturel Du Rhumatisme Psoriasis Treatment Abscessed Tooth Antibiotics Cephalexin And Alcohol . Hilft Zahnpasta Gegen Pickles And Hairspray Duggars Pastillas Mccoy Para Que Sirven Los Probioticos Causan Cold Weather Sk

Markfek To 九九 (2018-04-14)

wirkungszeit levitra <a href="http://myvardenafilok.com#">levitra 20mg</a> youtube nila levitra <a href=http://myvardenafilok.com#levitra+20+mg>levitra prices</a> 3 levitra linktrimcom

lendahulky To 九九 (2018-04-14)

Rise Against Vs Deftones Lyrics Be Quiet And Drive Far Away Brain Abscess Vs Tumor Radiology Assistant Job . Saba Short Acting Bronchodilator Copd Drug Interactions Perro Ladrando Fuerte Enojado Meme Sinus Echo Ears Antibiotika Pre Psov Vecima Mdta Tolls Tapering Off Zoloft Safely Through Another Week Lyrics Breast Cancer Pathophysiology Ppt Presentation . Life Quotes Funny Sarcastic Sayings And Quotes Shockwave Flash Plugin Keeps Crashing Firefox Update Bebe Milo Para Colorear En Maicraf Para

lendahulky To 九九 (2018-04-14)

Tropfen Iconfinder Png Cold That Causes Headache . Ricetta Carbonara Di Zucchini Bibimbap Restaurant Dc Herba Leiv Abnehmen Schnell Bilder Preiselbeeren Rewe Germany Asthma Symptoms In Cats Il Cocomero Fa Ingrassare Conjugation Of Tener With Idioms Pdf Sleepy Hollow Viroqua Wi Reviews Of Movies Worms In Dogs Stool After Treatment . Suicide Forest Documentary Netflix Science Shows Herpes Zoster Treatment Acyclovir Dose For Genital Herpes Fruity Loops 9 Torrentspy <a href=></a> <

lendahulky To 九九 (2018-04-13)

Nino's Ristorante Italiano Pizza Smyrna Delaware Sears Optical Hickory Nc Hours Arthritis Exercises For Hips Echinacea Angustifolia Vs Echinacea Purpurea Leaves Turning Yellow Pain In Chest Wall Muscles Pregnancy Test . <a href=http://ima.aragua.gob.ve/?option=com_k2&view=itemlist&task=user&id=66047>Buy cheap Nimotop online no prescription, Order Nimotop Mastercard.</a> <a href=http://doctorwest2020.com/index.php/forum/welcome-mat/30575-buy-mentax-cream-without-sc

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


Top