×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    MySQL: Difference between revisions

    Content added Content deleted
    imported>ip67-153-93-135.z93-153-67.customer.algx.net
    No edit summary
    imported>mutante
     
    (67 intermediate revisions by 14 users not shown)
    Line 1: Line 1:
    === The World's Most Popular Open Source Database ===
    *[http://camel-cigarettes.newmail.ru/ camel cigarettes]
    *[http://glucose-monitor.newmail.ru/ blood glucose monitor]
    *[http://paper-cut-shredder.hotmail.ru/ paper shredder]
    *[http://shredder-paper.boom.ru/ paper shredder]
    *[http://shredder-for-paper.hotmail.ru/ paper shredder]
    *[http://paper5shredder.chat.ru/ paper shredder]
    *[http://papr-shredder.boom.ru/ paper shredder]
    *[http://paper-best-shredder.hotmail.ru/ paper shredder]
    *[http://shredder4paper.chat.ru/ paper shredder]
    *[http://shredder-4paper.boom.ru/ paper shredder]
    *[http://shredder-4-paper.hotmail.ru/ paper shredder]
    *[http://paper1shredder.chat.ru/ paper shredder]
    *[http://paper--shredder.boom.ru/ paper shredder]
    *[http://paper-shredder.hotmail.ru/ paper shredder]
    *[http://skin1care.chat.ru/ skin care]
    *[http://skin1-care.boom.ru/ sothys skin care]
    *[http://skin-care.hotmail.ru/ skin care]
    *[http://dry1skin.chat.ru/ dry skin]
    *[http://dry-skin.boom.ru/ dry skin]
    *[http://dry-skin.hotmail.ru/ dry skin]
    *[http://serious-skin.boom.ru/ serious skin care]
    *[http://serious-skin-care.hotmail.ru/ serious skin care]
    *[http://skin1tip4care.chat.ru/ skin care tip]
    *[http://skin-care-tip.boom.ru/ skin care tip]
    *[http://skin-care-tip.hotmail.ru/ skin care tip]
    *[http://skin1disease.chat.ru/ skin disease]
    *[http://skin-diseas.boom.ru/ skin disease]
    *[http://skin-disease.hotmail.ru/ skin disease]
    *[http://skin1treatment.chat.ru/ skin treatment]
    *[http://skin-treatm.boom.ru/ skin treatment]
    *[http://skin-treatment.hotmail.ru/ skin treatment]
    *[http://hawaii-hotel.newmail.ru/ Hawaii hotels]
    *[http://hawaii-hot.boom.ru/ hawaii hotel]
    *[http://hawai-hotel.boom.ru/ hawaii hotel]
    *[http://wine-gift.newmail.ru/ wine gift]
    *[http://wine-gift.boom.ru/ wine gift]
    *[http://wine-clubs.newmail.ru/ wine clubs]
    *[http://wine-clubs.boom.ru/ wine clubs]
    *[http://mon-wine-club.newmail.ru/ monthly wine club]
    *[http://wine-club.boom.ru/ wine club]
    *[http://wine-1club.newmail.ru/ wine club]
    *[http://sauna-heater.boom.ru/ sauna heater]
    *[http://sauna-heater.newmail.ru/ sauna heater]
    *[http://sauna-room.boom.ru/ sauna room]
    *[http://sauna-room.newmail.ru/ sauna room]
    *[http://home-sauna.boom.ru/ home sauna]
    *[http://home-sauna.newmail.ru/ home sauna]
    *[http://sauna-kit.newmail.ru/ sauna kit]
    *[http://sauna-kit.boom.ru/ sauna kit]
    *[http://sauna-eq.boom.ru/ sauna equipment]
    *[http://sauna-eq.newmail.ru/ sauna equipment]
    *[http://paper-s.boom.ru/ paper shredder]
    *[http://pp-shredd.boom.ru/ paper shredder]
    *[http://paper-shredder.newmail.ru/ paper shredder]
    *[http://paper1-shredder.boom.ru/ paper shredder]
    *[http://skin1-disease.newmail.ru/ skin disease]
    *[http://skin1-disease.boom.ru/ skin disease]
    *[http://skin-trt.boom.ru/ skin treatment]
    *[http://skin-treat.newmail.ru/ skin treatment]
    *[http://skin-treat.boom.ru/ skin treatment]
    *[http://skin-treatment.nm.ru/ skin treatment]
    *[http://wrinkle.newmail.ru/ wrinkle cream]
    *[http://wrinkle.boom.ru/ anti wrinkle cream]
    *[http://glucometer.newmail.ru/ blood glucose monitor]
    *[http://gluc-mon.boom.ru/ blood glucose monitor]
    *[http://blood-monitor.newmail.ru/ blood glucose monitor]
    *[http://blglmon.boom.ru/ blood glucose monitor]
    *[http://shredder.boom.ru/ paper shredder]
    *[http://skin-treatment.newmail.ru/ skin treatment]
    *[http://skin-disease.newmail.ru/ skin disease]
    *[http://skin-treatment.boom.ru/ skin treatment]
    *[http://skin-disease.boom.ru/ skin disease]
    *[http://paper-shredders.newmail.ru/ paper shredder]
    *[http://club-month.boom.ru/ club month]
    *[http://glucose1monitor.chat.ru/ blood glucose monitor]
    *[http://glucose-monitor.boom.ru/ blood glucose monitor]
    *[http://glucose-monitor.newmail.ru/ blood glucose monitor]
    *[http://michigan-attorney.lbgo.com/ Michigan attorney]
    *[http://christmas-idea1.boom.ru/ christmas gift idea]
    *[http://christmas-idea.boom.ru/ christmas idea]
    *[http://christmas-shop.boom.ru/ christmas shopping]
    *[http://christmas-prsnt.boom.ru/ christmas present]
    *[http://unique-gift.newmail.ru/ unique gift]
    *[http://man-gift.newmail.ru/ the man the gift]
    *[http://gift-idea.newmail.ru/ gift idea]
    *[http://corporate-gift.newmail.ru/ corporate gift]
    *[http://gift-idea-man.newmail.ru/ gift idea for man]
    *[http://christmas-gift.newmail.ru/ christmas gift]
    *[http://business-gift.newmail.ru/ business gift]
    *[http://gift-fruit.newmail.ru/ gift fruit]
    *[http://food-gift-b.newmail.ru/ food gift basket]
    *[http://gift-box.newmail.ru/ gift box]
    *[http://corporate-gift-b.newmail.ru/ corporate gift basket]
    *[http://golf-gift.newmail.ru/ golf gift]
    *[http://gift-for-man.newmail.ru/ gift for man]
    *[http://holiday-gift.newmail.ru/ holiday gift]
    *[http://gift-bag.newmail.ru/ gift bag]
    *[http://promotional-gift.newmail.ru/ promotional gift]
    *[http://baby-gift.newmail.ru/ baby gift]
    *[http://newport-cigarette.newmail.ru/ newport cigarette]
    *[http://tires.newmail.ru/ tires]
    *[http://best-attorney.boom.ru/ attorney]
    *[http://online-prozac.boom.ru/ prozac]
    *[http://cigarette4all.chat.ru/ cigarette]
    *[http://didrex1.chat.ru/ didrex]
    *[http://divorceuncont.chat.ru/ divorce uncontested]
    *[http://nydivorce.chat.ru/ divorce new york]
    *[http://divorce1advice.chat.ru/ advice divorce]
    *[http://divorce1form.chat.ru/ divorce form]
    *[http://divorce1help.chat.ru/ divorce help]
    *[http://ncarolinadivorce.chat.ru/ carolina divorce north]
    *[http://floridadivorce.chat.ru/ divorce florida]
    *[http://wmutualmortgage.chat.ru/ washington mutual mortgage]
    *[http://calif1mortgage.chat.ru/ california mortgage]
    *[http://mortgage1lead.chat.ru/ mortgage lead]
    *[http://ameriqmortgage.chat.ru/ ameriquest mortgage]
    *[http://lowmortgagerate.chat.ru/ lowest mortgage rate]
    *[http://disney1vacation.chat.ru/ disney vacation]
    *[http://coloradovacation.chat.ru/ colorado vacation]
    *[http://califvacation.chat.ru/ california vacation]
    *[http://vacationpackage.chat.ru/ package vacation]
    *[http://italyvacation.chat.ru/ italy vacation]
    *[http://skivacation.chat.ru/ ski vacation]
    *[http://alaskavacation.chat.ru/ alaska vacation]
    *[http://resortvacation.chat.ru/ resort vacation]
    *[http://tropicalvacation.chat.ru/ tropical vacation]
    *[http://spavacation.chat.ru/ spa vacation]
    *[http://disneyvacation.chat.ru/ disney vacation world]
    *[http://floridavacation.chat.ru/ florida vacation]
    *[http://jamaicavacation.chat.ru/ jamaica vacation]
    *[http://cruise1vacation.chat.ru/ cruise vacation]
    *[http://golfvacation.chat.ru/ golf vacation]
    *[http://caribbeanvac.chat.ru/ caribbean vacation]
    *[http://tennesseevac.chat.ru/ tennessee vacation]
    *[http://vacationvermont.chat.ru/ vacation vermont]
    *[http://canadavacation.chat.ru/ canada vacation]
    *[http://arizonavacation.chat.ru/ arizona vacation]
    *[http://cheapvacation.chat.ru/ cheap vacation]
    *[http://ncarolinvacation.chat.ru/ carolina north vacation]
    *[http://bahamasvacation.chat.ru/ bahamas vacation]
    *[http://beachvacation.chat.ru/ beach vacation]
    *[http://mexicovacation.chat.ru/ mexico vacation]
    *[http://orlandovacation.chat.ru/ orlando vacation]
    *[http://laketahoevac.chat.ru/ lake rental tahoe vacation]
    *[http://homevacation.chat.ru/ home vacation]
    *[http://vacationvegas.chat.ru/ vacation vegas]
    *[http://hawaiivacation.chat.ru/ hawaii vacation]
    *[http://homeequityloanr.chat.ru/ home equity loan rate]
    *[http://fastloan.chat.ru/ fast loan]
    *[http://carloan.chat.ru/ car loan]
    *[http://bcrloanmortgage.chat.ru/ bad credit loan mortgage]
    *[http://fastcashloan.chat.ru/ fast cash loan]
    *[http://debtconsloan.chat.ru/ debt consolidation loan]
    *[http://cashloan.chat.ru/ cash loan]
    *[http://bcreditautoloan.chat.ru/ bad credit auto loan]
    *[http://personalloan.chat.ru/ personal loan]
    *[http://vahomeloan.chat.ru/ va home loan]
    *[http://homeloanmortgage.chat.ru/ a home loan mortgage]
    *[http://cashadvanceloan.chat.ru/ cash advance loan]
    *[http://unsecuredploan.chat.ru/ unsecured personal loan]
    *[http://improvementloan.chat.ru/ home improvement loan]
    *[http://bcreditcarloan.chat.ru/ bad credit car loan]
    *[http://badcreditloan1.chat.ru/ bad credit loan]
    *[http://badcreditloan.chat.ru/ bad credit loan]
    *[http://pdloanonline.chat.ru/ payday loan online]
    *[http://fhaloan.chat.ru/ fha loan]
    *[http://mortgageloan.chat.ru/ mortgage loan]
    *[http://nfpaydayloan.chat.ru/ no faxing payday loan]
    *[http://floridahomeloan.chat.ru/ florida home loan]
    *[http://consolidloan.chat.ru/ consolidation loan]
    *[http://countryhomeloan.chat.ru/ countrywide home loan]
    *[http://refinanceloan.chat.ru/ refinance loan]
    *[http://valoan.chat.ru/ va loan]
    *[http://chomeloan.chat.ru/ california home loan]
    *[http://homeequityloan.chat.ru/ home equity loan]
    *[http://eloancom.chat.ru/ e loan]
    *[http://travel2mexico.chat.ru/ travel to mexico]
    *[http://travelinsurance.chat.ru/ travel insurance]
    *[http://studenttravel.chat.ru/ student travel]
    *[http://traveleurope.chat.ru/ travel europe]
    *[http://travel2hawaii.chat.ru/ travel to hawaii]
    *[http://caribbeantravel.chat.ru/ caribbean travel]
    *[http://traveldeal.chat.ru/ travel deal]
    *[http://budgettravel.chat.ru/ budget travel]
    *[http://discounttravel.chat.ru/ discount travel]
    *[http://travelsite.chat.ru/ travel site]
    *[http://businesstravel.chat.ru/ business travel]
    *[http://world1travel.chat.ru/ world travel]
    *[http://intertravel.chat.ru/ international travel]
    *[http://travel1agency.chat.ru/ travel agency]
    *[http://travelreservatio.chat.ru/ travel reservation]
    *[http://cheaptravel.chat.ru/ cheap travel]
    *[http://lastminutetravel.chat.ru/ last minute travel]
    *[http://airlinetravel.chat.ru/ airline travel]
    *[http://travelnursing.chat.ru/ travel nursing]
    *[http://italytravel.chat.ru/ italy travel]
    *[http://cruise1travel.chat.ru/ cruise travel]
    *[http://travel2costarica.chat.ru/ travel to costa rica]
    *[http://travelagent.chat.ru/ travel agent]
    *[http://cruiseholiday.chat.ru/ cruise holiday]
    *[http://starcruise.chat.ru/ star cruise]
    *[http://galvestoncruises.chat.ru/ galveston cruises]
    *[http://celebritycruisel.chat.ru/ celebrity cruise line]
    *[http://neworleanscruise.chat.ru/ new orleans cruises]
    *[http://luxurycruise.chat.ru/ luxury cruise]
    *[http://nilecruises.chat.ru/ nile cruises]
    *[http://disneycruisel.chat.ru/ disney cruise line]
    *[http://carnivalcruisel.chat.ru/ carnival cruise line]
    *[http://cruisereview.chat.ru/ cruise review]
    *[http://cruisepackage.chat.ru/ cruise package]
    *[http://caribbeancruisel.chat.ru/ caribbean cruise line]
    *[http://europecruise.chat.ru/ europe cruise]
    *[http://bermudacruise.chat.ru/ bermuda cruise]
    *[http://mexicocruise.chat.ru/ mexico cruise]
    *[http://bahamascruise.chat.ru/ bahamas cruise]
    *[http://familycruises.chat.ru/ family cruises]
    *[http://hamericacruises.chat.ru/ holland america cruises]
    *[http://disneycruise.chat.ru/ disney cruise]
    *[http://cruisevacation.chat.ru/ cruise vacation]
    *[http://hawaiicruises.chat.ru/ hawaii cruise]
    *[http://cheapcruise.chat.ru/ cheap cruise]
    *[http://newyorkcruises.chat.ru/ new york cruises]
    *[http://carnivalcruises.chat.ru/ carnival cruise ship]
    *[http://alaskacruise.chat.ru/ alaska cruise]
    *[http://cruisespecial.chat.ru/ cruise special]
    *[http://lastminutecruise.chat.ru/ last minute cruise]
    *[http://celebritycruise.chat.ru/ celebrity cruise]
    *[http://cruiseeuropean.chat.ru/ cruise european]
    *[http://honeymooncruise.chat.ru/ honeymoon cruise]
    *[http://discountcruises.chat.ru/ discount cruises]
    *[http://cruiseship.chat.ru/ cruise ship]
    *[http://cruiseline.chat.ru/ cruise line]
    *[http://norwegiancruise.chat.ru/ norwegian cruise]
    *[http://cruiseprincess.chat.ru/ cruise princess]
    *[http://cruisedeal.chat.ru/ cruise deal]
    *[http://norwegiancruisel.chat.ru/ norwegian cruise line]
    *[http://carnivalcruise.chat.ru/ carnival cruise]
    *[http://caribbeancruise.chat.ru/ caribbean cruise]
    *[http://cruisetravel.chat.ru/ cruise travel]
    *[http://pcruiseline.chat.ru/ princess cruise line]
    *[http://panama1cruise.chat.ru/ panama canal cruise]
    *[http://medit1cruise.chat.ru/ mediterranean cruise]
    *[http://radissoncruise.chat.ru/ radisson cruise]
    *[http://costacruises.chat.ru/ costa cruises]
    *[http://crystal1cruise.chat.ru/ crystal cruise]
    *[http://bloodmpressure.boom.ru/ blood medication pressure]
    *[http://blood-opressure.boom.ru/ blood omron pressure]
    *[http://bloodlpressure.boom.ru/ blood lower pressure]
    *[http://career-nursing.boom.ru/ career nursing]
    *[http://blood-pressure-m.boom.ru/ blood monitor pressure]
    *[http://blood-h-pressure.boom.ru/ blood diet high pressure]
    *[http://degree-nursing.boom.ru/ degree nursing]
    *[http://college-nursing.boom.ru/ college nursing]
    *[http://healthinsurances.chat.ru/ self employed health insurance]
    *[http://auto1insuranceo.chat.ru/ auto insurance online]
    *[http://ahealthinsurance.chat.ru/ affordable health insurance]
    *[http://lifeinsurancer.chat.ru/ life insurance rate]
    *[http://lifeinsurancec.chat.ru/ life insurance company]
    *[http://cautoinsurance1.chat.ru/ cheap auto insurance]
    *[http://lifeinsurancep.chat.ru/ life insurance policy]
    *[http://tlifeinsuranceq.chat.ru/ term life insurance quote]
    *[http://car1insurances.chat.ru/ car insurance company]
    *[http://life1insuranceq.chat.ru/ life insurance quote]
    *[http://healthiplan.chat.ru/ health insurance plan]
    *[http://mercuryinsurance.chat.ru/ mercury insurance]
    *[http://home1insurance.chat.ru/ homeowner insurance]
    *[http://health2insurance.chat.ru/ health insurance coverage]
    *[http://ainsurancerate.chat.ru/ auto insurance rate]
    *[http://carinsurrate.chat.ru/ car insurance rate]
    *[http://cautoinsurance.chat.ru/ california auto insurance]
    *[http://rentersinsurance.chat.ru/ renters insurance]
    *[http://insurance5.chat.ru/ online life insurance]
    *[http://hinsurancelead.chat.ru/ health insurance lead]
    *[http://lcost1insurance.chat.ru/ low cost health insurance]
    *[http://healthinsuranceq.chat.ru/ health insurance quote]
    *[http://health1insurance.chat.ru/ california health insurance]
    *[http://dallasattorney.chat.ru/ dallas attorney]
    *[http://nyattorney.chat.ru/ new york attorney]
    *[http://illinoisattorney.chat.ru/ illinois attorney]
    *[http://floridaattorney.chat.ru/ florida attorney]
    *[http://califattorney.chat.ru/ california attorney]
    *[http://sdiego1attorney.chat.ru/ san diego attorney]
    *[http://malpattorney.chat.ru/ malpractice attorney]
    *[http://personal4attorne.chat.ru/ personal injury attorney]
    *[http://la1attorney.chat.ru/ los angeles attorney]
    *[http://sanfr1attorney.chat.ru/ san francisco attorney]
    *[http://michiganattorney.chat.ru/ michigan attorney]
    *[http://duiattorney.chat.ru/ dui attorney]
    *[http://c-auto-insh.boom.ru/ california auto insurance]
    *[http://chealth-insur.boom.ru/ california health insurance]
    *[http://dui-attorney.boom.ru/ dui attorney]
    *[http://cr-defense-attorney.newmail.ru/ criminal defense attorney]
    *[http://brain-injury-attorne.newmail.ru/ brain injury attorney]
    *[http://criminal-attorney.newmail.ru/ criminal attorney]
    *[http://dallas-attorney.newmail.ru/ dallas attorney]
    *[http://new-york-attorney.newmail.ru/ new york attorney]
    *[http://illinois-attorney.newmail.ru/ illinois attorney]
    *[http://florida-attorney.newmail.ru/ florida attorney]
    *[http://california-attorney.newmail.ru/ california attorney]
    *[http://san-diego-attorney.newmail.ru/ san diego attorney]
    *[http://malpractice-attorney.newmail.ru/ malpractice attorney]
    *[http://pers-injury-attorney.newmail.ru/ personal injury attorney]
    *[http://michigan-attorney.hotmail.ru/ michigan attorney]
    *[http://la-attorney.newmail.ru/ los angeles attorney]
    *[http://s-francisco-attorney.newmail.ru/ san francisco attorney]
    *[http://galveston-cruises.newmail.ru/ galveston cruises]
    *[http://carnival-cruise-ship.newmail.ru/ carnival cruise ship]
    *[http://caribbean-cruise-lin.newmail.ru/ caribbean cruise line]
    *[http://nile-cruises.newmail.ru/ nile cruises]
    *[http://disney-cruise-line.newmail.ru/ disney cruise line]
    *[http://cruise-review.newmail.ru/ cruise review]
    *[http://holl-america-cruises.newmail.ru/ holland america cruises]
    *[http://bahamas-cruise.newmail.ru/ bahamas cruise]
    *[http://celebrity-cruise.newmail.ru/ celebrity cruise]
    *[http://mexico-cruise.newmail.ru/ mexico cruise]
    *[http://disney-cruise.newmail.ru/ disney cruise]
    *[http://hawaiian-cruises.newmail.ru/ hawaiian cruises]
    *[http://new-york-cruises.newmail.ru/ new york cruises]
    *[http://europe-cruise.newmail.ru/ europe cruise]
    *[http://last-minute-cruise.newmail.ru/ last minute cruise]
    *[http://cruise-travel.newmail.ru/ cruise travel]
    *[http://alaska-cruise.newmail.ru/ alaska cruise]
    *[http://cruise-special.newmail.ru/ cruise special]
    *[http://discount-cruises.newmail.ru/ discount cruises]
    *[http://honeymoon-cruise.newmail.ru/ honeymoon cruise]
    *[http://mediterranean-cruise.newmail.ru/ mediterranean cruise]
    *[http://cheap-cruise.newmail.ru/ cheap cruise]
    *[http://cruise-princess.newmail.ru/ cruise princess]
    *[http://norwegian-cruise-lin.newmail.ru/ norwegian cruise line]
    *[http://cruise-line.newmail.ru/ cruise line]
    *[http://cruise-european.newmail.ru/ cruise european]
    *[http://norwegian-cruise.newmail.ru/ norwegian cruise]
    *[http://cruise-deal.newmail.ru/ cruise deal]
    *[http://costa-cruises.newmail.ru/ costa cruises]
    *[http://send-flower.boom.ru/ send flower]
    *[http://order-flower.boom.ru/ order flower]
    *[http://flower-arrange.boom.ru/ flower arrangement]
    *[http://carnival-cruise.newmail.ru/ carnival cruise]
    *[http://birthday-flower.boom.ru/ birthday flower]
    *[http://flower-shop.boom.ru/ flower shop]
    *[http://a-1-800-flower.boom.ru/ 1 800 flower]
    *[http://flower-delivery.boom.ru/ flower delivery]
    *[http://hawaii-cruise.newmail.ru/ hawaii cruise]
    *[http://bermuda-cruise.newmail.ru/ bermuda cruise]
    *[http://princess-cruise-line.newmail.ru/ princess cruise line]
    *[http://crystal-cruise.newmail.ru/ crystal cruise]
    *[http://radisson-cruise.newmail.ru/ radisson cruise]
    *[http://toyota-tundra.boom.ru/ toyota tundra]
    *[http://toyota-sequoia.boom.ru/ toyota sequoia]
    *[http://toyotalandcruise.boom.ru/ toyota land cruiser]
    *[http://toyota-sienna.boom.ru/ toyota sienna]
    *[http://toyota-prius.boom.ru/ toyota prius]
    *[http://toyotadealership.boom.ru/ toyota dealership]
    *[http://toyota-dealer.boom.ru/ toyota dealerships]
    *[http://cruise-package.newmail.ru/ cruise package]
    *[http://cruise-ship.newmail.ru/ cruise ship]
    *[http://cruise-vacation.newmail.ru/ cruise vacation]
    *[http://caribbean-cruise.newmail.ru/ caribbean cruise]
    *[http://luxury-cruise.newmail.ru/ luxury cruise]
    *[http://mexico-cruise.boom.ru/ mexico cruise]
    *[http://ny-cruises.boom.ru/ new york cruises]
    *[http://wholesale-cigarette.newmail.ru/ wholesale cigarette]
    *[http://cigarette-tobacco.newmail.ru/ cigarette tobacco]
    *[http://travel-francisco.boom.ru/ travel to san francisco]
    *[http://travel-to-alaska.boom.ru/ travel to alaska]
    *[http://travel-trailer.boom.ru/ travel trailer]
    *[http://travel-package.boom.ru/ travel package]
    *[http://ireland-travel.boom.ru/ ireland travel]
    *[http://firstclasstravel.boom.ru/ first class travel]
    *[http://student-travel.boom.ru/ student travel]
    *[http://adventuretravel.boom.ru/ adventure travel]
    *[http://travel-europe.boom.ru/ travel europe]
    *[http://luxury-travel.boom.ru/ luxury travel]
    *[http://vegas-travel.boom.ru/ vegas travel]
    *[http://travel-guide.boom.ru/ travel guide]
    *[http://inter-travel.boom.ru/ international travel]
    *[http://tire-plus.boom.ru/ tire plus]
    *[http://motorcycle-tire.boom.ru/ motorcycle tire]
    *[http://off-road-tire.boom.ru/ off road tire]
    *[http://tire-wh-package.boom.ru/ tire and wheel package]
    *[http://yokohama-tire.boom.ru/ yokohama tire]
    *[http://tire-dealer.boom.ru/ tire dealer]
    *[http://nitto-tire.boom.ru/ nitto tire]
    *[http://discount-tire.boom.ru/ discount tire]
    *[http://car-tire.boom.ru/ car tire]
    *[http://atv-tire.boom.ru/ atv tire]
    *[http://truck-tire.boom.ru/ truck tire]
    *[http://firestone-tire.boom.ru/ firestone tire]
    *[http://trailer-tire.boom.ru/ trailer tire]
    *[http://goodrich-tire.boom.ru/ bf goodrich tire]
    *[http://bridgestone-tire.boom.ru/ bridgestone tire]
    *[http://goodyear-tire.boom.ru/ goodyear tire]
    *[http://tire-wheels.boom.ru/ tire wheels]
    *[http://tire-rim.boom.ru/ tire rim]
    *[http://michelin-tire.boom.ru/ michelin tire]
    *[http://tire-rack.boom.ru/ tire rack]
    *[http://lastminutetrav.boom.ru/ last minute travel deal]
    *[http://travel-deal.boom.ru/ travel deal]
    *[http://sb-finance.boom.ru/ small business finance]
    *[http://budget-travel.boom.ru/ budget travel]
    *[http://travel-services.boom.ru/ travel services]
    *[http://sb-marketing.boom.ru/ small business marketing]
    *[http://sb-consultant.boom.ru/ small business consultant]
    *[http://sb-tool.boom.ru/ small business tool]
    *[http://travel-site.boom.ru/ travel site]
    *[http://sb-hosting.boom.ru/ small business hosting]
    *[http://travel-hotel.boom.ru/ travel hotel]
    *[http://tragency.boom.ru/ travel agency]
    *[http://travel-reserv.boom.ru/ travel reservation]
    *[http://caribbean-travel.boom.ru/ caribbean travel]
    *[http://sb-owner.boom.ru/ small business owner]
    *[http://sb-web-design.boom.ru/ small business web design]
    *[http://sb-development.boom.ru/ small business development]
    *[http://sb-idea.boom.ru/ small business idea]
    *[http://home-based-sb.boom.ru/ home based small business]
    *[http://small--business.boom.ru/ small home business]
    *[http://sb-accounting.boom.ru/ small business accounting]
    *[http://gg-for-sb.boom.ru/ government grants for small business]
    *[http://sb-for-sale.boom.ru/ small business for sale]
    *[http://sb-credit.boom.ru/ small business credit]
    *[http://sb-plan.boom.ru/ small business plan]
    *[http://sb-grants.boom.ru/ small business grants]
    *[http://sb-start-up.boom.ru/ small business start up]
    *[http://sb-credit-card.boom.ru/ small business credit card]
    *[http://sb-franchise.boom.ru/ small business franchise]
    *[http://sb-startup.boom.ru/ small business startup]
    *[http://lastminutetravel.boom.ru/ last minute travel]
    *[http://sb-information.boom.ru/ small business information]
    *[http://sb-opportunity.boom.ru/ small business opportunity]
    *[http://sb-resource.boom.ru/ small business resource]
    *[http://web-hosting-sb.boom.ru/ web hosting small business]
    *[http://travel-agent.boom.ru/ travel agent]
    *[http://italytravel.boom.ru/ italy travel]
    *[http://sb-web-site.boom.ru/ small business web site]
    *[http://airline-travel.boom.ru/ airline travel]
    *[http://sb-solution.boom.ru/ small business solution]
    *[http://mso-sb.boom.ru/ microsoft office small business]
    *[http://travel-nursing.boom.ru/ travel nursing]
    *[http://sb-software.boom.ru/ small business software]
    *[http://discount-travel.boom.ru/ discount travel]
    *[http://starting-a-sb.boom.ru/ starting a small business]
    *[http://travel-to-hawaii.boom.ru/ travel to hawaii]
    *[http://how-start-sb.boom.ru/ how to start a small business]
    *[http://im-sb.boom.ru/ internet marketing for small business]
    *[http://sb-server.boom.ru/ small business server]
    *[http://sb-services.boom.ru/ small business services]
    *[http://sb-management.boom.ru/ small business management]
    *[http://callaway-ball.boom.ru/ callaway golf ball]
    *[http://callaway-bag.boom.ru/ callaway golf bag]
    *[http://callaway-steel.boom.ru/ callaway steelhead]
    *[http://callaway-golf.boom.ru/ callaway golf club]
    *[http://corelle-callaway.boom.ru/ corelle callaway]
    *[http://galvestoncruises.boom.ru/ galveston cruises]
    *[http://mediterranean.boom.ru/ mediterranean cruise]
    *[http://family-cruises.boom.ru/ family cruises]
    *[http://ccruise-ship.boom.ru/ carnival cruise ship]
    *[http://new-o-cruises.boom.ru/ new orleans cruises]
    *[http://italy-cruise.boom.ru/ italy cruise]
    *[http://cruise-review.boom.ru/ cruise review]
    *[http://caribbeancruisel.boom.ru/ caribbean cruise line]
    *[http://nile-cruises.boom.ru/ nile cruises]
    *[http://disney-cruisel.boom.ru/ disney cruise line]
    *[http://hawaii-cruise.boom.ru/ hawaii cruise]
    *[http://bahamas-cruise.boom.ru/ bahamas cruise]
    *[http://bermuda-cruise.boom.ru/ bermuda cruise]
    *[http://cruise-package.boom.ru/ cruise package]
    *[http://europe-cruise.boom.ru/ europe cruise]
    *[http://travel-costarica.boom.ru/ travel to costa rica]
    *[http://cruise-european.boom.ru/ cruise european]
    *[http://ha-cruises.boom.ru/ holland america cruises]
    *[http://luxury-cruise.boom.ru/ luxury cruise]
    *[http://lminute-cruise.boom.ru/ last minute cruise]
    *[http://cruise-special.boom.ru/ cruise special]
    *[http://hawaiian-cruises.boom.ru/ hawaiian cruises]
    *[http://honeymooncruise.boom.ru/ honeymoon cruise]
    *[http://n-cruise-line.boom.ru/ norwegian cruise line]
    *[http://cruise-line.boom.ru/ cruise line]
    *[http://norwegian-cruise.boom.ru/ norwegian cruise]
    *[http://carnival-cruisel.boom.ru/ carnival cruise line]
    *[http://p-cruise-line.boom.ru/ princess cruise line]
    *[http://cruise-deal.boom.ru/ cruise deal]
    *[http://re-advertising.boom.ru/ real estate advertising]
    *[http://costa-cruises.boom.ru/ costa cruises]
    *[http://carnival-cruise.boom.ru/ carnival cruise]
    *[http://caribbeancruise.boom.ru/ caribbean cruise]
    *[http://scuba-equipment.boom.ru/ scuba equipment]
    *[http://heavy-equipment.boom.ru/ heavy equipment]
    *[http://home-fitness-eq.boom.ru/ home fitness equipment]
    *[http://exe-equipment.boom.ru/ exercise equipment]
    *[http://eq-leasing.boom.ru/ equipment leasing]
    *[http://construction-eq.boom.ru/ construction equipment]
    *[http://surv-equipment.boom.ru/ surveillance equipment]


    The MySQL database server is the world's most popular open source database. Its architecture makes it extremely fast and easy to customize. Extensive reuse of code within the software and a minimalistic approach to producing functionally-rich features has resulted in a database management system unmatched in speed, compactness, stability and ease of deployment. The unique separation of the core server from the storage engine makes it possible to run with strict transaction control or with ultra-fast transactionless disk access, whichever is most appropriate for the situation.


    The MySQL database server is available for free under the [[GNU]] General Public License ([[GPL]]). Commercial licenses are available for users who prefer not to be restricted by the terms of the GPL.


    === Four different versions ===
    ''' Let us introduce [http://final-page.nm.ru/pharmacy.htm Online Pharmacy] #1 on the web: [http://final-page.nm.ru/viagra.htm order VIAGRA online], [http://final-page.nm.ru/cialis.htm cialis]
    Also [http://final-page.nm.ru/phentermine.htm order phentermine online], [http://final-page.nm.ru/xanax.htm buy xanax], [http://final-page.nm.ru/diazepam.htm diazepam online], [http://final-page.nm.ru/prosac.htm prozac online].


    There are four versions of the database server available:


    Buy [http://final-page.nm.ru/cigarettes.htm Cheap cigarettes] online!


    #'''MySQL Standard''' includes the standard MySQL storage engines and the InnoDB storage engine. InnoDB is a transaction-safe, ACID-compliant storage engine with commit, rollback, crash recovery and row-level locking capabilities. This version is for users who want the high-performance MySQL database with full transaction support. MySQL Standard is licensed under the GPL. MySQL Pro is the commercially-licensed version of the server with the same feature-set.
    Find your [http://final-page.nm.ru/newcar.htm new car] or [http://final-page.nm.ru/usedcar.htm used car] online!
    #'''MySQL Max''' is for the user who wants early access to new features. This version includes the standard MySQL storage engines, the InnoDB storage engine, and other extras like the Berkeley database (BDB) storage engine, SSL transport-layer encryption, and support for splitting tables across multiple files to avoid operating system file size limitations. In future releases, MySQL Max will include more cutting-edge features.
    #'''MySQL Pro''' is the commercially licensed version of the MySQL Standard database server, including InnoDB support.
    #'''MySQL Classic''' only includes the standard MySQL storage engines, differing from MySQL Pro and MySQL Standard only by the omission of the InnoDB storage engine. It is only available under a commercial license.


    === Examples ===
    Best searches: [http://first-page.nm.ru/hiq.htm Health insurance quotes], [http://first-page.nm.ru/ihi.htm Individual health insurance], [http://first-page.nm.ru/ciq.htm Car insurance quotes], [http://first-page.nm.ru/sml.htm Second mortgage loan]


    The structure from top to bottom is: server->database->table->field->content


    So get to the place you want in this order:
    Our [http://first-page.nm.ru/skin.htm skin treatment] tips and [http://first-page.nm.ru/wrinkle.htm anti wrinkle cream]!

    '''
    === Connecting to mysql server from the [[shell]]. ===

    shell> mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor.
    mysql>


    === Switching into a database. ===

    mysql> use wikidb;
    Database changed
    mysql>


    === Showing tables ===
    <pre>
    mysql> show tables;
    +------------------+
    | Tables_in_wikidb |
    +------------------+
    | archive |
    | blobs |
    ...
    | imagelinks |
    | interwiki |
    ...
    | watchlist |
    +------------------+
    23 rows in set (0.00 sec)
    </pre>
    === Getting field names ===
    <pre>
    mysql> describe interwiki;
    +-----------+------------+------+-----+---------+-------+
    | Field | Type | Null | Key | Default | Extra |
    +-----------+------------+------+-----+---------+-------+
    | iw_prefix | char(32) | | PRI | | |
    | iw_url | char(127) | | | | |
    | iw_local | tinyint(1) | | | 0 | |
    +-----------+------------+------+-----+---------+-------+
    3 rows in set (0.00 sec)
    </pre>
    === Selecting content ===
    <pre>
    mysql> select iw_prefix from interwiki;
    +-------------------+
    | iw_prefix |
    +-------------------+
    | AbbeNormal |
    | AcadWiki |
    | Acronym |
    | Advogato |
    | AIWiki |
    ...
    | Wiktionary |
    | YpsiEyeball |
    | ZWiki |
    +-------------------+
    107 rows in set (0.00 sec)
    </pre>

    === Using wildcards ===

    You can use [[wildcards]] like in:
    mysql> select * from interwiki;

    === Conditions (WHERE-clause) ===

    You can combine with conditions like in:

    exact match:

    <pre>
    mysql> select iw_url from interwiki where iw_prefix="UseMod";
    +------------------------------------------+
    | iw_url |
    +------------------------------------------+
    | http://www.usemod.com/cgi-bin/wiki.pl?$1 |
    +------------------------------------------+
    1 row in set (0.00 sec)
    </pre>

    approximate match:

    at beginning

    mysql> select cur_title from cur where cur_text LIKE "Fnord%";

    in the middle

    mysql> select cur_title from cur where cur_text LIKE "%Foobar%";


    === Sorting ===

    ==== ascending: ====

    mysql> select rc_id,rc_title from recentchanges ORDER BY rc_id;

    ==== descending: ====

    mysql> select rc_id,rc_title from recentchanges ORDER BY rc_id DESC;

    === Limiting ===
    <pre>

    mysql> select rc_id from recentchanges LIMIT 0,3;
    +-------+
    | rc_id |
    +-------+
    | 1 |
    | 2 |
    | 3 |
    +-------+
    3 rows in set (0.00 sec)

    mysql> select rc_id from recentchanges LIMIT 1,4;
    +-------+
    | rc_id |
    +-------+
    | 2 |
    | 3 |
    | 4 |
    | 5 |
    +-------+
    4 rows in set (0.00 sec)
    </pre>

    (output max. 4 line from offset 1). Starts with offset 0 and 0 is default if second parameter not given.


    === Creating databases and tables ===

    ==== Creating a database ====


    mysql> CREATE DATABASE foobar;
    Query OK, 1 row affected (0.02 sec)

    ==== Switching to database ====

    mysql> use foobar;
    Database changed

    ==== Creating a simple table ====

    mysql> CREATE TABLE blargh (name VARCHAR(20), owner VARCHAR(20), sex CHAR(1), birth DATE);

    ==== Creating a table with auto-incrementing id ====

    mysql> CREATE table fnord (id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id),name VARCHAR(30), whatever VARCHAR(7));
    Query OK, 0 rows affected (0.00 sec)

    === Data field types used in CREATE syntax ===

    ==== Numbers ====

    TINYINT - -128 to 127 normal / 0 to 255 UNSIGNED.

    SMALLINT - -32768 to 32767 normal / 0 to 65535 UNSIGNED.

    MEDIUMINT - -8388608 to 8388607 normal / 0 to 16777215 UNSIGNED.

    INT - a numeric type which can accept values in the range of -2147483648 to 2147483647

    BIGINT( ) - -9223372036854775808 to 9223372036854775807 normal / 0 to 18446744073709551615 UNSIGNED.

    DECIMAL - a numeric type with support for floating-point or decimal numbers

    FLOAT - A small number with a floating decimal point.

    DOUBLE - a numeric type for double-precision floating-point numbers. If you don't know what these are, chances are you won't be using it much.

    ==== Text ====

    CHAR - a string type with a maximum size of 255 characters and a fixed length

    VARCHAR - a string type with a maximum size of 255 characters and a variable length

    TEXT - a string type with a maximum size of 65535 characters

    MEDIUMTEXT - a string with a maximum length of 16777215 characters.

    LONGTEXT A string with a maximum length of 4294967295 characters.

    ==== Date and Time ====

    DATE - a date field in the YYYY-MM-DD format

    TIME - a time field in the HH:MM:SS format

    DATETIME - a combined date/time type in the YYYY-MM-DD HH:MM:SS format

    YEAR - a field specifically for year displays in the range 1901 to 2155, in either YYYY or YY formats

    TIMESTAMP - a timestamp type, in YYYYMMDDHHMMSS format

    ==== Misc ====

    BLOB - a binary type for variable data (MEDIUMBLOB, LONGBLOB .. )

    ENUM - a string type which can accept one value from a list of previously-defined possible values

    SET - a string type which can accept zero or more values from a set of previously-defined possible values

    === Giving access to users ===

    Examples:


    mysql> GRANT ALL PRIVILEGES ON test.* TO 'root'@'localhost' IDENTIFIED BY 'goodsecret' REQUIRE SSL;

    mysql> GRANT SELECT ON foo.bar TO 'fnord'@'somehost' IDENTIFIED BY 'somepass';


    These are random examples, for further syntax check:

    * [http://dev.mysql.com/doc/mysql/en/grant.html MySQL GRANT & REVOKE Syntax]

    ==== Client does not support authentication protocol ====

    If you happen to get ''Client does not support authentication protocol'', The most likely reason is that: '''MySQL 5.0 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients'''.

    You can fix it either by upgrading all client programs to use a 4.1.1 or newer client library or by resetting a password to the old style via:

    mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

    [http://dev.mysql.com/doc/refman/5.0/en/old-client.html read here for details]

    ==== Setting the initial root password ====


    shell> mysql -u root mysql
    mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');

    ==== Reset forgotten root password ====

    #Take down the mysqld server by sending a kill (not kill -9) to the mysqld server.
    #Restart mysqld with the --skip-grant-tables option.
    #mysqladmin -u root password 'mynewpassword'
    #Restart mysqld normally

    You are also able to reset the mysql root password by the help of the following line, while server is up:

    # /etc/init.d/mysql reset-password
    New MySQL root password:
    Verify:
    Setting new MySQL root password


    [http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html How to Reset a Forgotten Root Password]

    === Making backups / mysqldump ===

    ==== Create ====

    mysqldump -u root -p somedatabase > dumpfile.sql

    mysqldump --compatible=mysql40 -u root -p somedatabase > dumpfile.sql

    (to be compatible with certain versions, you can also use other '--compatible=' strings)

    ==== Import ====

    mysql -u root -p somedatabase < dumpfile.sql


    === Sending output to textfile ===

    mysql> select foo from bar INTO OUTFILE '/tmp/dump.txt';

    bash> mv /tmp/dump.txt .

    (if trouble writing because mysql user has different permissions)


    === Taking input from textfile ===


    mysql> mysql -u root -p < dumpfile.sql
    Enter password:


    === Cheat Sheet ===

    *http://www.nparikh.org/unix/mysql.php
    *[http://ferruh.mavituna.com/makale/sql-injection-cheatsheet/ SQL Injection Cheatsheet]

    to prevent SQL injections never trust user input and never insert user filled variables into mysql statements right away, in [[PHP]] [http://www.php.net/mysql_real_escape_string mysql_real_escape_string ()]

    === Get total size of .MYI files ===

    ==== weirdo way ====

    <tt>
    echo "Size of MYI files in current directory: `(for file in \`ls | grep MYI\`; do echo -n "\`du -bs $file | cut -f1\`+"; done; echo "0") | bc` bytes"
    </tt>

    ==== normal way ====

    You can do the same "a little" shorter,too ;) (''< LordFrith> mutante, du -ch *MYI''), *gg*

    <tt>du -ch *MYI | tail -n1</tt>


    ==== symbiosis ====

    <tt>for file in `ls -d /var/lib/mysql/ */`; do echo -n "$file "; du -ch ./$file/*MYI | tail -n1; done</tt>


    <tt>du -ch /var/lib/mysql/*/*MYI</tt>

    ==== Why ? ====

    (*) - "''By adding up the size of the .MYI files for the tables, you'll have a good idea how large to set the buffer.''" [http://dev.mysql.com/books/hpmysql-excerpts/ch06.html]

    === mytop ===

    [[mytop]] - [[top]] like query monitor for MySQL

    === drop tables with wildcard / by prefix ===

    in [[Bash]]:
    <tt>for file in /var/lib/mysql/database/prefix*.MYI; do echo "drop table `basename $file | cut -d. -f1`;" > droptables.sql; done</tt>

    loops through all tables with "prefix*" and writes a bunch of "drop table blah;" statements into a file "droptables.sql". This file can then be executed via something like <tt>mysql -u root -p database < droptables.sql</tt> either manually or as a second line in a bash script. the password should be entered interactively to avoid it showing up in process list on a multiuser host.

    === External Links ===

    * [[http://www.mysql.com/ MySQL Homepage]]

    * [[http://dev.mysql.com/doc/ MySQL Documentation]]

    * [[http://dev.mysql.com/doc/mysql/en/index.html Searchable Reference Manual]]

    * [[http://www.mysql.com/ MySQL Homepage]]

    * [[http://dev.mysql.com/doc/ MySQL Documentation]]

    * [[http://dev.mysql.com/doc/mysql/en/index.html Searchable Reference Manual]]

    * [[http://www.pantz.org/database/mysql/mysqlcommands.shtml Handy MySQL Commands]]

    [[Category:Computer]]
    [[Category:Software]]

    === IRC ===

    Help channels on [[IRC]]:

    #[irc://efnet/mysql #mysql] on [[EfNet]]
    #[irc://freenode/mysql #mysql] on [[Freenode]]


    ==== Group by Delete via temp table ====

    <pre>
    <+mutante> hi, i do something like "select foo,bar,count(id) from table group by foo order by count(id);"
    <+mutante> now i would like to "delete ... where count(id) (from above) = 1"
    <+mutante> can i combine that?
    <+mutante> i want to delete all rows where there is only one foo per bar

    <+salle> mutante: Create temporary table out of the query above
    <+salle> mutante: CREATE TEMPORARY TABLE temp SELECT foo, COUNT(id) AS c FROM tbl GROUP BY foo HAVING c = 1;

    <+salle> mutante: CREATE TEMPORARY TABLE temp SELECT foo AS c FROM tbl GROUP BY foo HAVING c = 1;
    <+salle> mutante: Now use that table in DELETE
    <+salle> mutante: If it's so small MEMORY engine works perfect. If big it's wise to add some index on the fly
    <+salle> mutante: DELETE FROM your_table WHERE foo IN (SELECT foo FROM temp); should work
    <+salle> mutante: MySQL doesn't allow DELETE FROM x WHERE .. (SELECT ... FROM x)
    <+salle> mutante: same for UPDATE. In many cases it is doable with multi-table DELETE and UPDATE syntax, but GROUP BY makes it more difficult if possible at all
    </pre>

    Latest revision as of 07:35, 10 May 2008

    The World's Most Popular Open Source Database[edit]

    The MySQL database server is the world's most popular open source database. Its architecture makes it extremely fast and easy to customize. Extensive reuse of code within the software and a minimalistic approach to producing functionally-rich features has resulted in a database management system unmatched in speed, compactness, stability and ease of deployment. The unique separation of the core server from the storage engine makes it possible to run with strict transaction control or with ultra-fast transactionless disk access, whichever is most appropriate for the situation.

    The MySQL database server is available for free under the GNU General Public License (GPL). Commercial licenses are available for users who prefer not to be restricted by the terms of the GPL.

    Four different versions[edit]

    There are four versions of the database server available:


    1. MySQL Standard includes the standard MySQL storage engines and the InnoDB storage engine. InnoDB is a transaction-safe, ACID-compliant storage engine with commit, rollback, crash recovery and row-level locking capabilities. This version is for users who want the high-performance MySQL database with full transaction support. MySQL Standard is licensed under the GPL. MySQL Pro is the commercially-licensed version of the server with the same feature-set.
    2. MySQL Max is for the user who wants early access to new features. This version includes the standard MySQL storage engines, the InnoDB storage engine, and other extras like the Berkeley database (BDB) storage engine, SSL transport-layer encryption, and support for splitting tables across multiple files to avoid operating system file size limitations. In future releases, MySQL Max will include more cutting-edge features.
    3. MySQL Pro is the commercially licensed version of the MySQL Standard database server, including InnoDB support.
    4. MySQL Classic only includes the standard MySQL storage engines, differing from MySQL Pro and MySQL Standard only by the omission of the InnoDB storage engine. It is only available under a commercial license.

    Examples[edit]

    The structure from top to bottom is: server->database->table->field->content

    So get to the place you want in this order:

    Connecting to mysql server from the shell.[edit]

    shell> mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor.
    mysql>
    


    Switching into a database.[edit]

    mysql> use wikidb;
    Database changed
    mysql>
    


    Showing tables[edit]

    mysql> show tables;
    +------------------+
    | Tables_in_wikidb |
    +------------------+
    | archive          |
    | blobs            |
    ...
    | imagelinks       |
    | interwiki        |
    ...
    | watchlist        |
    +------------------+
    23 rows in set (0.00 sec)
    

    Getting field names[edit]

    mysql> describe interwiki;
    +-----------+------------+------+-----+---------+-------+
    | Field     | Type       | Null | Key | Default | Extra |
    +-----------+------------+------+-----+---------+-------+
    | iw_prefix | char(32)   |      | PRI |         |       |
    | iw_url    | char(127)  |      |     |         |       |
    | iw_local  | tinyint(1) |      |     | 0       |       |
    +-----------+------------+------+-----+---------+-------+
    3 rows in set (0.00 sec)
    

    Selecting content[edit]

    mysql> select iw_prefix from interwiki;
    +-------------------+
    | iw_prefix         |
    +-------------------+
    | AbbeNormal        |
    | AcadWiki          |
    | Acronym           |
    | Advogato          |
    | AIWiki            |
    ...
    | Wiktionary        |
    | YpsiEyeball       |
    | ZWiki             |
    +-------------------+
    107 rows in set (0.00 sec)
    

    Using wildcards[edit]

    You can use wildcards like in:

    mysql> select * from interwiki;
    

    Conditions (WHERE-clause)[edit]

    You can combine with conditions like in:

    exact match:

    mysql> select iw_url from interwiki where iw_prefix="UseMod";
    +------------------------------------------+
    | iw_url                                   |
    +------------------------------------------+
    | http://www.usemod.com/cgi-bin/wiki.pl?$1 |
    +------------------------------------------+
    1 row in set (0.00 sec)
    

    approximate match:

    at beginning

    mysql> select cur_title from cur where cur_text LIKE "Fnord%";
    

    in the middle

    mysql> select cur_title from cur where cur_text LIKE "%Foobar%";
    


    Sorting[edit]

    ascending:[edit]

    mysql> select rc_id,rc_title from recentchanges ORDER BY rc_id;
    

    descending:[edit]

    mysql> select rc_id,rc_title from recentchanges ORDER BY rc_id DESC;
    

    Limiting[edit]

    
    mysql> select rc_id from recentchanges LIMIT 0,3;
    +-------+
    | rc_id |
    +-------+
    |     1 |
    |     2 |
    |     3 |
    +-------+
    3 rows in set (0.00 sec)
    
    mysql> select rc_id from recentchanges LIMIT 1,4;
    +-------+
    | rc_id |
    +-------+
    |     2 |
    |     3 |
    |     4 |
    |     5 |
    +-------+
    4 rows in set (0.00 sec)
    

    (output max. 4 line from offset 1). Starts with offset 0 and 0 is default if second parameter not given.


    Creating databases and tables[edit]

    Creating a database[edit]

    mysql> CREATE DATABASE foobar;
    Query OK, 1 row affected (0.02 sec)
    

    Switching to database[edit]

    mysql> use foobar;
    Database changed
    

    Creating a simple table[edit]

    mysql> CREATE TABLE blargh (name VARCHAR(20), owner VARCHAR(20), sex CHAR(1), birth DATE);
    

    Creating a table with auto-incrementing id[edit]

    mysql> CREATE table fnord (id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id),name VARCHAR(30), whatever VARCHAR(7));
    Query OK, 0 rows affected (0.00 sec)
    

    Data field types used in CREATE syntax[edit]

    Numbers[edit]

    TINYINT - -128 to 127 normal / 0 to 255 UNSIGNED.

    SMALLINT - -32768 to 32767 normal / 0 to 65535 UNSIGNED.

    MEDIUMINT - -8388608 to 8388607 normal / 0 to 16777215 UNSIGNED.

    INT - a numeric type which can accept values in the range of -2147483648 to 2147483647

    BIGINT( ) - -9223372036854775808 to 9223372036854775807 normal / 0 to 18446744073709551615 UNSIGNED.

    DECIMAL - a numeric type with support for floating-point or decimal numbers

    FLOAT - A small number with a floating decimal point.

    DOUBLE - a numeric type for double-precision floating-point numbers. If you don't know what these are, chances are you won't be using it much.

    Text[edit]

    CHAR - a string type with a maximum size of 255 characters and a fixed length

    VARCHAR - a string type with a maximum size of 255 characters and a variable length

    TEXT - a string type with a maximum size of 65535 characters

    MEDIUMTEXT - a string with a maximum length of 16777215 characters.

    LONGTEXT A string with a maximum length of 4294967295 characters.

    Date and Time[edit]

    DATE - a date field in the YYYY-MM-DD format

    TIME - a time field in the HH:MM:SS format

    DATETIME - a combined date/time type in the YYYY-MM-DD HH:MM:SS format

    YEAR - a field specifically for year displays in the range 1901 to 2155, in either YYYY or YY formats

    TIMESTAMP - a timestamp type, in YYYYMMDDHHMMSS format

    Misc[edit]

    BLOB - a binary type for variable data (MEDIUMBLOB, LONGBLOB .. )

    ENUM - a string type which can accept one value from a list of previously-defined possible values

    SET - a string type which can accept zero or more values from a set of previously-defined possible values

    Giving access to users[edit]

    Examples:


    mysql> GRANT ALL PRIVILEGES ON test.* TO 'root'@'localhost' IDENTIFIED BY 'goodsecret' REQUIRE SSL;
    
    mysql> GRANT SELECT ON foo.bar TO 'fnord'@'somehost' IDENTIFIED BY 'somepass';
    


    These are random examples, for further syntax check:

    Client does not support authentication protocol[edit]

    If you happen to get Client does not support authentication protocol, The most likely reason is that: MySQL 5.0 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients.

    You can fix it either by upgrading all client programs to use a 4.1.1 or newer client library or by resetting a password to the old style via:

    mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
    

    read here for details

    Setting the initial root password[edit]

    shell> mysql -u root mysql
    mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');
    

    Reset forgotten root password[edit]

    1. Take down the mysqld server by sending a kill (not kill -9) to the mysqld server.
    2. Restart mysqld with the --skip-grant-tables option.
    3. mysqladmin -u root password 'mynewpassword'
    4. Restart mysqld normally

    You are also able to reset the mysql root password by the help of the following line, while server is up:

    # /etc/init.d/mysql reset-password
    New MySQL root password:
    Verify:
    Setting new MySQL root password
    


    How to Reset a Forgotten Root Password

    Making backups / mysqldump[edit]

    Create[edit]

    mysqldump -u root -p somedatabase > dumpfile.sql
    
    mysqldump --compatible=mysql40 -u root -p somedatabase > dumpfile.sql 
    

    (to be compatible with certain versions, you can also use other '--compatible=' strings)

    Import[edit]

    mysql -u root -p somedatabase < dumpfile.sql
    


    Sending output to textfile[edit]

    mysql> select foo from bar INTO OUTFILE '/tmp/dump.txt';
    
    bash> mv /tmp/dump.txt .
    

    (if trouble writing because mysql user has different permissions)


    Taking input from textfile[edit]

    mysql> mysql -u root -p < dumpfile.sql
    Enter password:
    


    Cheat Sheet[edit]

    to prevent SQL injections never trust user input and never insert user filled variables into mysql statements right away, in PHP mysql_real_escape_string ()

    Get total size of .MYI files[edit]

    weirdo way[edit]

    echo "Size of MYI files in current directory: `(for file in \`ls | grep MYI\`; do echo -n "\`du -bs $file | cut -f1\`+"; done; echo "0") | bc` bytes"

    normal way[edit]

    You can do the same "a little" shorter,too ;) (< LordFrith> mutante, du -ch *MYI), *gg*

    du -ch *MYI | tail -n1


    symbiosis[edit]

    for file in `ls -d /var/lib/mysql/ */`; do echo -n "$file "; du -ch ./$file/*MYI | tail -n1; done


    du -ch /var/lib/mysql/*/*MYI

    Why ?[edit]

    (*) - "By adding up the size of the .MYI files for the tables, you'll have a good idea how large to set the buffer." [1]

    mytop[edit]

    mytop - top like query monitor for MySQL
    

    drop tables with wildcard / by prefix[edit]

    in Bash: for file in /var/lib/mysql/database/prefix*.MYI; do echo "drop table `basename $file | cut -d. -f1`;" > droptables.sql; done

    loops through all tables with "prefix*" and writes a bunch of "drop table blah;" statements into a file "droptables.sql". This file can then be executed via something like mysql -u root -p database < droptables.sql either manually or as a second line in a bash script. the password should be entered interactively to avoid it showing up in process list on a multiuser host.

    External Links[edit]

    IRC[edit]

    Help channels on IRC:

    1. #mysql on EfNet
    2. #mysql on Freenode


    Group by Delete via temp table[edit]

    <+mutante> hi, i do something like "select foo,bar,count(id) from table group by foo order by count(id);"
    <+mutante> now i would like to "delete ... where count(id) (from above) = 1"
    <+mutante> can i combine that?
    <+mutante> i want to delete all rows where there is only one foo per bar
    
    <+salle> mutante: Create temporary table out of the query above
    <+salle> mutante: CREATE TEMPORARY TABLE temp SELECT foo, COUNT(id) AS c FROM tbl GROUP BY foo HAVING c = 1;
    
    <+salle> mutante: CREATE TEMPORARY TABLE temp SELECT foo AS c FROM tbl GROUP BY foo HAVING c = 1;
    <+salle> mutante: Now use that table in DELETE
    <+salle> mutante: If it's so small MEMORY engine works perfect. If big it's wise to add some index on the fly
    <+salle> mutante: DELETE FROM your_table WHERE foo IN (SELECT foo FROM temp); should work
    <+salle> mutante: MySQL doesn't allow DELETE FROM x WHERE .. (SELECT ... FROM x)
    <+salle> mutante: same for UPDATE. In many cases it is doable with multi-table DELETE and UPDATE syntax, but GROUP BY makes it more difficult if possible at all
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.