MYSQL 5.5

1,354 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,354
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

MYSQL 5.5

  1. 1. MYSQL 5.5BYSUNNY OKORO
  2. 2. 1ContentsApplications................................................................................................................................................................................................................ 2Database Diagram...................................................................................................................................................................................................... 4Built-In-Function ........................................................................................................................................................................................................ 6DBA Work................................................................................................................................................................................................................. 30Triggers-After......................................................................................................................................................................................................... 188Triggers-Before ...................................................................................................................................................................................................... 195Stored Procedures ................................................................................................................................................................................................. 200
  3. 3. 2ApplicationsMySQL Command Line ClientMySQL Workbeanch
  4. 4. 3Microsoft Power Pivot
  5. 5. 4Microsoft VisioDatabase Diagram
  6. 6. 5categoryPK category_id TINYINTname LONGVARBINARYlast_update DATETIMEcityPK city_id TINYINTcity LONGVARBINARYFK1,I1 country_id TINYINTlast_update DATETIMEinventoryPK inventory_id INTEGERFK1,I2,I1 film_id TINYINTFK2,I2 store_id TINYINTlast_update DATETIMEcountryPK country_id TINYINTcountry LONGVARBINARYlast_update DATETIMEfilmPK film_id TINYINTI1 title LONGVARBINARYdescription LONGVARBINARYrelease_year TINYINTFK1,I2 language_id TINYINTFK2,I3 original_language_id TINYINTrental_duration TINYINTrental_rate DECIMAL(4,2)length TINYINTreplacement_cost DECIMAL(5,2)rating LONGVARBINARYspecial_features LONGVARBINARYlast_update DATETIMEstaffPK staff_id TINYINTfirst_name LONGVARBINARYlast_name LONGVARBINARYFK1,I2 address_id TINYINTpicture LONGVARBINARYemail LONGVARBINARYFK2,I1 store_id TINYINTactive TINYINTusername LONGVARBINARYpassword LONGVARBINARYlast_update DATETIMElanguagePK language_id TINYINTname LONGVARBINARYlast_update DATETIMEactorPK actor_id TINYINTfirst_name LONGVARBINARYI1 last_name LONGVARBINARYlast_update DATETIMEpaymentPK payment_id TINYINTFK1,I2 customer_id TINYINTFK3,I1 staff_id TINYINTFK2,I3 rental_id INTEGERamount DECIMAL(5,2)payment_date DATETIMElast_update DATETIMEcustomerPK customer_id TINYINTFK2,I1 store_id TINYINTfirst_name LONGVARBINARYI3 last_name LONGVARBINARYemail LONGVARBINARYFK1,I2 address_id TINYINTactive TINYINTcreate_date DATETIMElast_update DATETIMEaddressPK address_id TINYINTaddress LONGVARBINARYaddress2 LONGVARBINARYdistrict LONGVARBINARYFK1,I1 city_id TINYINTpostal_code LONGVARBINARYphone LONGVARBINARYlast_update DATETIMEstorePK store_id TINYINTFK2,U1 manager_staff_id TINYINTFK1,I1 address_id TINYINTlast_update DATETIMEfilm_actorPK,FK1 actor_id TINYINTPK,FK2,I1 film_id TINYINTlast_update DATETIMErentalPK rental_id INTEGERU1 rental_date DATETIMEFK2,I1,U1 inventory_id INTEGERFK1,I2,U1 customer_id TINYINTreturn_date DATETIMEFK3,I3 staff_id TINYINTlast_update DATETIMEfilm_categoryPK,FK2 film_id TINYINTPK,FK1,I1 category_id TINYINTlast_update DATETIME
  7. 7. 6Built-In-FunctionDate Functionsmysql>mysql> select date_format(current_timestamp,%M-%e-%Y);+-------------------------------------------+| date_format(current_timestamp,%M-%e-%Y) |+-------------------------------------------+| February-22-2013 |+-------------------------------------------+1 row in set (0.00 sec)mysql> select date_format(current_timestamp,%M-%e-%Y)AS CurrentDate G*************************** 1. row ***************************CurrentDate: February-22-20131 row in set (0.00 sec)mysql> select date_format(current_timestamp,%M-%e-%Y)AS CurrentDate g+------------------+| CurrentDate |+------------------+| February-22-2013 |+------------------+1 row in set (0.00 sec)mysql> SELECT date_format(current_timestamp,%h:%i)as CurrentTime;+-------------+| CurrentTime |
  8. 8. 7+-------------+| 11:49 |+-------------+1 row in set (0.00 sec)mysql> SELECT date_format(current_timestamp,%h:%i:%s:%p)as CurrentTime;+-------------+| CurrentTime |+-------------+| 11:49:43:PM |+-------------+1 row in set (0.00 sec)mysql> select date_format(current_timestamp,%M-%e-%Y-%h:%i:%s:%p)as CurrDateTime;+------------------------------+| CurrDateTime |+------------------------------+| February-22-2013-11:58:08:PM |+------------------------------+1 row in set (0.00 sec)mysql> select week(current_timestamp);+-------------------------+| week(current_timestamp) |+-------------------------+| 7 |+-------------------------+1 row in set (0.00 sec)mysql> SELECT TO_DAYS(CURRENT_TIMESTAMP);+----------------------------+| TO_DAYS(CURRENT_TIMESTAMP) |+----------------------------+| 735287 |
  9. 9. 8+----------------------------+1 row in set (0.06 sec)mysql> SET @D=(SELECT CURRENT_TIMESTAMP)-> ;Query OK, 0 rows affected (0.00 sec)mysql> SELECT LAST_DAY(@D);+--------------+| LAST_DAY(@D) |+--------------+| 2013-02-28 |+--------------+1 row in set (0.01 sec)mysql> SELECT DATEDIFF(@D, LAST_UPDATE)AS DATE_DIFFERENCE,COUNTRY, LAST_UPDATE, @D FROM COUNTRY G*************************** 1. row ***************************DATE_DIFFERENCE: 2565COUNTRY: AfghanistanLAST_UPDATE: 2006-02-15 04:44:00@D: 2013-02-23 00:05:46*************************** 2. row ***************************DATE_DIFFERENCE: 2565COUNTRY: AlgeriaLAST_UPDATE: 2006-02-15 04:44:00@D: 2013-02-23 00:05:46*************************** 3. row ***************************DATE_DIFFERENCE: 2565COUNTRY: American SamoaLAST_UPDATE: 2006-02-15 04:44:00@D: 2013-02-23 00:05:46*************************** 4. row ***************************
  10. 10. 9mysql> SELECT LAST_DAY( LAST_UPDATE)AS DATE_DIFFERENCE,COUNTRY, LAST_UPDATE FROM COUNTRY G;*************************** 1. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: AfghanistanLAST_UPDATE: 2006-02-15 04:44:00*************************** 2. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: AlgeriaLAST_UPDATE: 2006-02-15 04:44:00*************************** 3. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: American SamoaLAST_UPDATE: 2006-02-15 04:44:00*************************** 4. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: AngolaLAST_UPDATE: 2006-02-15 04:44:00*************************** 5. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: AnguillaLAST_UPDATE: 2006-02-15 04:44:00*************************** 6. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: ArgentinaLAST_UPDATE: 2006-02-15 04:44:00*************************** 7. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: ArmeniaLAST_UPDATE: 2006-02-15 04:44:00*************************** 8. row ***************************DATE_DIFFERENCE: 2006-02-28COUNTRY: AustraliaLAST_UPDATE: 2006-02-15 04:44:00
  11. 11. 10*************************** 9. row ***************************mysql> SELECT DATE(@D)AS CURR_DATE;+------------+| CURR_DATE |+------------+| 2013-02-23 |+------------+1 row in set (0.00 sec)mysql> SELECT FROM_DAYS(@D);+---------------+| FROM_DAYS(@D) |+---------------+| 0005-07-06 |+---------------+1 row in set (0.02 sec)String Functionsselect character_length(country) as CharLength, Country from country order by country descCharLength Country11 Afghanistan7 Algeria14 American Samoa6 Angola8 Anguilla9 Argentina7 Armenia9 Australia7 Austria10 Azerbaijan
  12. 12. 117 Bahrain10 Bangladesh7 Belarus7 Bolivia6 Brazil6 Brunei8 Bulgaria8 Cambodia8 Cameroon6 Canada4 Chad5 Chile5 China8 Colombia37Congo, The DemocraticRepublic of the14 Czech Republic18 Dominican Republic7 Ecuador5 Egypt7 Estonia8 Ethiopia13 Faroe Islands7 Finland6 France13 French Guiana16 French Polynesia6 GambiaRESULTS (ABRIDGED)
  13. 13. 12select c.customer_id, c.store_id, CONCAT_WS (,,c.last_name, c.first_name) as Cust_Name ,a.address, a.address2,a.phone, t.city,a.postal_code, con.countryfrom customer cinner joinaddress aon c.address_id = a.address_idinner joincity ton a.city_id = t.city_idinner join country conon t.country_id = con.country_idorder by c.last_name,c.first_namecustomer_id store_id Cust_Name address address2 phone city postal_code country96 1 ALEXANDER,DIANA 1308 Arecibo Way 6171054059 Augusta-RichmondCounty30695 UnitedStates345 1 ARTIS,CARL 1628 NagareyamaLane20064292617 San Lorenzo 60079 Paraguay79 1 BARNES,RACHEL 586 Tete Way 18581624103 Kamakura 1079 Japan134 1 BOYD,EMMA 765 SouthamptonDrive23712411567 Qalyub 4285 Egypt5 1 BROWN,ELIZABETH 53 Idfu Parkway 10655648674 Nantou 42399 Taiwan95 2 BRYANT,PAULA 1697 Tanauan Lane 4764773857 Pathankot 22870 India290 1 CHAMBERS,KRISTINA 544 TarsusBoulevard892523334 Valle de laPascua53145 Venezuela535 1 ELROD,JAVIER 195 Ilorin Street 8912935608 NDjamna 49250 Chad29 2 HERNANDEZ,ANGELA 786 Aurora Avenue 18461860151 Shimonoseki 65750 Japan490 1 MCDUFFIE,SAM 656 Matamoros Drive 17305839123 Sogamoso 19489 Colombia
  14. 14. 13229 1 NGUYEN,TAMARA 356 Olomouc Manor 22326410776 Anpolis 93323 Brazil575 2 OGLESBY,ISAAC 186 Skikda Lane 14465669789 Cuernavaca 89422 Mexico416 2 PINSON,JEFFERY 966 Arecibo Loop 15273765306 Dadu 94018 Pakistan140 1 RAMOS,EVA 1666 Beni-MellalPlace9099941466 Clarksville 13377 UnitedStates61 2 RIVERA,KATHERINE 915 Ponce Place 1395251317 Basel 83980 Switzerland404 2 SCROGGINS,STANLEY 1266 LaredoParkway1483365694 Omiya 7664 JapanRESULTS (ABRIDGED)select c.customer_id, c.store_id, CONCAT(c.last_name,,, c.first_name) as Cust_Name ,a.address, a.address2,a.phone, t.city,a.postal_code, con.countryfrom customer cinner joinaddress aon c.address_id = a.address_idinner joincity ton a.city_id = t.city_idinner join country conon t.country_id = con.country_idorder by c.last_name,c.first_namecustomer_id store_id Cust_Name address address2 phone city postal_code country96 1 ALEXANDER,DIANA 1308 Arecibo Way 6171054059 Augusta-RichmondCounty30695 UnitedStates345 1 ARTIS,CARL 1628 NagareyamaLane20064292617 San Lorenzo 60079 Paraguay
  15. 15. 1479 1 BARNES,RACHEL 586 Tete Way 18581624103 Kamakura 1079 Japan134 1 BOYD,EMMA 765 SouthamptonDrive23712411567 Qalyub 4285 Egypt5 1 BROWN,ELIZABETH 53 Idfu Parkway 10655648674 Nantou 42399 Taiwan95 2 BRYANT,PAULA 1697 Tanauan Lane 4764773857 Pathankot 22870 India290 1 CHAMBERS,KRISTINA 544 TarsusBoulevard892523334 Valle de laPascua53145 Venezuela535 1 ELROD,JAVIER 195 Ilorin Street 8912935608 NDjamna 49250 Chad29 2 HERNANDEZ,ANGELA 786 Aurora Avenue 18461860151 Shimonoseki 65750 Japan490 1 MCDUFFIE,SAM 656 Matamoros Drive 17305839123 Sogamoso 19489 Colombia229 1 NGUYEN,TAMARA 356 Olomouc Manor 22326410776 Anpolis 93323 Brazil575 2 OGLESBY,ISAAC 186 Skikda Lane 14465669789 Cuernavaca 89422 Mexico416 2 PINSON,JEFFERY 966 Arecibo Loop 15273765306 Dadu 94018 Pakistan140 1 RAMOS,EVA 1666 Beni-MellalPlace9099941466 Clarksville 13377 UnitedStates61 2 RIVERA,KATHERINE 915 Ponce Place 1395251317 Basel 83980 Switzerland404 2 SCROGGINS,STANLEY 1266 LaredoParkway1483365694 Omiya 7664 JapanRESULTS (ABRIDGED)mysql> SELECT GROUP_CONCAT(COUNTRY) FROM COUNTRY LIMIT 1;| GROUP_CONCAT(COUNTRY)|| Afghanistan,Algeria,AmericanSamoa,Angola,Anguilla,Argentina,Armenia,Australia,Austria,Azerbaijan,Bahrain,Bangladesh,Belarus,Bolivia,Brazil,Brunei,Bulgaria,Cambodia,Cameroon,Canada,Chad,Chile,China,Colombia,Congo, The Democratic Republic of the,Czech Republic,DominicanRepublic,Ecuador,Egypt,Estonia,Ethiopia,Faroe Islands,Finland,France,French Guiana,French Polynesia,Gambia,Germany,Greece,Greenland,HolySee (Vatican City State),HongKong,Hungary,India,Indonesia,Iran,Iraq,Israel,Italy,Japan,Kazakstan,Kenya,Kuwait,Latvia,Liechtenstein,Lithuania,Madagascar,Malawi,Malaysia,Mexico,Moldova,Morocco,Mozambique,Myanmar,Nauru,Nepal,Netherlands,New Zealand,Nigeria,NorthKorea,Oman,Pakistan,Paraguay,Peru,Philippines,Poland,Puerto Rico,Romania,Runion,Russian Federation,Saint Vincent and the Grenadines,Saudi
  16. 16. 15Arabia,Senegal,Slovakia,South Africa,South Korea,Spain,SriLanka,Sudan,Sweden,Switzerland,Taiwan,Tanzania,Thailand,Tonga,Tunisia,Turkey,Turkmenistan,Tuvalu,Ukraine,United Arab Emirates,UnitedKingdom,United States,Vene |+1 row in set, 1 warning (0.00 sec)select upper(country) as uppercase,lower(country)as lowercase from countryuppercase lowercaseAFGHANISTAN afghanistanALGERIA algeriaAMERICAN SAMOA american samoaANGOLA angolaANGUILLA anguillaARGENTINA argentinaARMENIA armeniaAUSTRALIA australiaAUSTRIA austriaAZERBAIJAN azerbaijanBAHRAIN bahrainBANGLADESH bangladeshBELARUS belarusBOLIVIA boliviaBRAZIL brazilBRUNEI bruneiBULGARIA bulgariaCAMBODIA cambodiaCAMEROON cameroon
  17. 17. 16CANADA canadaRESULTS (ABRIDGED)SELECT COUNTRY AS COUNTRY_NAME, CASEWHEN CHARACTER_LENGTH(COUNTRY <= 6) THEN LPAD(COUNTRY,4,4)WHEN CHARACTER_LENGTH(COUNTRY <=10) THEN LPAD(COUNTRY,6,6)WHEN CHARACTER_LENGTH(COUNTRY <=15) THEN LPAD(COUNTRY,5,5)WHEN CHARACTER_LENGTH(COUNTRY <=20) THEN LPAD(COUNTRY,7,7)END AS COUNTRYFROM COUNTRYCOUNTRY_NAME COUNTRYAfghanistan AfghAlgeria AlgeAmerican Samoa AmerAngola AngoAnguilla AnguArgentina ArgeArmenia ArmeAustralia AustAustria AustAzerbaijan AzerBahrain BahrBangladesh BangBelarus BelaBolivia Boli
  18. 18. 17Brazil BrazBrunei BrunBulgaria BulgCambodia CambCameroon CameCanada CanaChad ChadChile ChilChina ChinColombia ColoCzech Republic CzecDominican Republic DomiEcuador EcuaEgypt EgypEstonia EstoEthiopia EthiFaroe Islands FaroFinland FinlFrance FranFrench Guiana FrenFrench Polynesia FrenGambia GambGermany GermGreece GreeHoly See (Vatican CityState)HolyHong Kong HongHungary HungIndia IndiIndonesia IndoIran Iran
  19. 19. 18Iraq IraqIsrael IsraItaly ItalJapan JapaKazakstan KazaKenya KenyKuwait KuwaLatvia LatvLiechtenstein LiecLithuania LithMadagascar MadaMalawi MalaMalaysia MalaMexico MexiMoldova MoldMorocco MoroMozambique MozaMyanmar MyanNauru NaurNepal NepaNetherlands NethNew Zealand NewNigeria NigeNorth Korea NortOman OmanPakistan PakiParaguay ParaPeru PeruPhilippines PhilPoland PolaPuerto Rico Puer
  20. 20. 19Romania RomaRunion RuniRussian Federation RussSaint Vincent and theGrenadinesSainSaudi Arabia SaudSenegal SeneSlovakia SlovSouth Africa SoutSouth Korea SoutSpain SpaiSri Lanka SriSudan SudaSweden SwedSwitzerland SwitTaiwan TaiwTanzania TanzThailand ThaiTonga TongTunisia TuniTurkey TurkTurkmenistan TurkTuvalu TuvaUkraine UkraUnited Arab Emirates UnitUnited Kingdom UnitUnited States UnitVenezuela VeneVietnam VietVirgin Islands, U.S. VirgYemen Yeme
  21. 21. 20Yugoslavia YugoZambia ZambRESULTS (ABRIDGED)mysql> SELECT MIN(CHARACTER_LENGTH(COUNTRY)) AS SmallestChar,Max(character_length(country))as HighestChar FROM COUNTRY;+--------------+-------------+| SmallestChar | HighestChar |+--------------+-------------+| 4 | 37 |+--------------+-------------+1 row in set (0.00 sec)SELECT COUNTRY AS COUNTRY_NAME, CASEWHEN CHARACTER_LENGTH(COUNTRY <= 6) THEN RPAD(COUNTRY,4,4)WHEN CHARACTER_LENGTH(COUNTRY <=10) THEN RPAD(COUNTRY,6,9)WHEN CHARACTER_LENGTH(COUNTRY <=15) THEN RPAD(COUNTRY,5,10)WHEN CHARACTER_LENGTH(COUNTRY <=20) THEN RPAD(COUNTRY,7,10)END AS COUNTRYFROM COUNTRYCOUNTRY_NAME COUNTRYAfghanistan AfghAlgeria AlgeAmerican Samoa AmerAngola AngoAnguilla AnguArgentina ArgeArmenia Arme
  22. 22. 21Australia AustAustria AustAzerbaijan AzerBahrain BahrBangladesh BangBelarus BelaBolivia BoliBrazil BrazBrunei BrunBulgaria BulgCambodia CambCameroon CameCanada CanaChad ChadChile ChilChina ChinColombia ColoCongo, The Democratic Republic oftheCongCzech Republic CzecDominican Republic DomiEcuador EcuaEgypt EgypEstonia EstoEthiopia EthiFaroe Islands FaroFinland FinlFrance FranFrench Guiana FrenFrench Polynesia FrenGambia Gamb
  23. 23. 22Germany GermGreece GreeGreenland GreeHoly See (Vatican City State) HolyHong Kong HongHungary HungIndia IndiIndonesia IndoIran IranIraq IraqIsrael IsraItaly ItalJapan JapaKazakstan KazaKenya KenyKuwait KuwaLatvia LatvLiechtenstein LiecLithuania LithMadagascar MadaMalawi MalaMalaysia MalaMexico MexiMoldova MoldMorocco MoroMozambique MozaMyanmar MyanNauru NaurNepal NepaNetherlands NethNew Zealand New
  24. 24. 23Nigeria NigeNorth Korea NortOman OmanPakistan PakiParaguay ParaPeru PeruPhilippines PhilPoland PolaPuerto Rico PuerRomania RomaRunion RuniRussian Federation RussSaint Vincent and the Grenadines SainSaudi Arabia SaudSenegal SeneSlovakia SlovSouth Africa SoutSouth Korea SoutSpain SpaiSri Lanka SriSudan SudaSweden SwedSwitzerland SwitRESULTS (ABRIDGED)SELECT LPAD(CUSTOMER_ID,9,*****) AS CUSTID, LAST_NAME, FIRST_NAME FROM CUSTOMER;CUSTID LAST_NAME FIRST_NAME********1 SMITH Sam
  25. 25. 24********2 JOHNSON PATRICIA********3 WILLIAMS LINDA********4 JONES BARBARA********5 BROWN ELIZABETH********6 DAVIS JENNIFER********7 MILLER MARIA********8 WILSON SUSAN********9 MOORE MARGARET*******10 TAYLOR DOROTHY*******11 ANDERSON LISA*******12 THOMAS NANCY*******13 JACKSON KAREN*******14 WHITE BETTY*******15 HARRIS HELEN*******16 MARTIN SANDRA*******17 THOMPSON DONNA*******18 GARCIA CAROL*******19 MARTINEZ RUTH*******20 ROBINSON SHARON*******21 CLARK MICHELLERESULTS (ABRIDGED)SELECT SUBSTRING(LPAD(CUSTOMER_ID,12,***),9,9)AS CUST_ID, FIRST_NAME,LAST_NAME FROM CUSTOMERCUST_ID FIRST_NAME LAST_NAME***1 Sam SMITH***2 PATRICIA JOHNSON***3 LINDA WILLIAMS***4 BARBARA JONES
  26. 26. 25***5 ELIZABETH BROWN***6 JENNIFER DAVIS***7 MARIA MILLER***8 SUSAN WILSON**16 SANDRA MARTIN**23 SARAH LEWIS**24 KIMBERLY LEE**63 ASHLEY RICHARDSON**64 JUDITH COX*108 TRACY COLE*109 EDNA WEST*110 TIFFANY JORDAN*111 CARMEN OWENS*112 ROSA REYNOLDSRESULTS (ABRIDGED)Numeric Functionsselect c.customer_id, first_name,last_name, p.amount,round(p.amount)as roundedamount from customer c inner join payment p onc.customer_id =p.customer_id ;customer_id first_name last_name amount roundedamount1 Sam SMITH 4.99 51 Sam SMITH 4.99 51 Sam SMITH 4.99 51 Sam SMITH 4.99 51 Sam SMITH 4.99 51 Sam SMITH 4.99 51 Sam SMITH 4.99 5
  27. 27. 26RESULTS (ABRIDGED)select c.customer_id, first_name,last_name, round(avg(p.amount)) as Avg_Amount, Max(p.amount) Highest_Amount, Min(p.amount) asSnallest_Amount,round(sum(p.amount))as rounded_amount from customer c inner join payment p on c.customer_id =p.customer_id group byc.customer_id*************************** 1. row ***************************customer_id: 1first_name: MARYlast_name: SMITHAvg_Amount: 4Highest_Amount: 9.99Snallest_Amount: 0.991 Sam SMITH 4.99 52 PATRICIA JOHNSON 4.99 52 PATRICIA JOHNSON 4.99 52 PATRICIA JOHNSON 4.99 52 PATRICIA JOHNSON 4.99 52 PATRICIA JOHNSON 4.99 52 PATRICIA JOHNSON 4.99 53 LINDA WILLIAMS 4.99 53 LINDA WILLIAMS 4.99 53 LINDA WILLIAMS 4.99 53 LINDA WILLIAMS 4.99 53 LINDA WILLIAMS 4.99 53 LINDA WILLIAMS 4.99 54 BARBARA JONES 4.99 54 BARBARA JONES 4.99 54 BARBARA JONES 4.99 55 ELIZABETH BROWN 4.99 5
  28. 28. 27rounded_amount: 119*************************** 2. row ***************************customer_id: 2first_name: PATRICIAlast_name: JOHNSONAvg_Amount: 5Highest_Amount: 10.99Snallest_Amount: 0.99rounded_amount: 129*************************** 3. row ***************************customer_id: 3first_name: LINDAlast_name: WILLIAMSAvg_Amount: 5Highest_Amount: 10.99Snallest_Amount: 0.99rounded_amount: 136*************************** 4. row ***************************customer_id: 4first_name: BARBARAlast_name: JONESAvg_Amount: 4Highest_Amount: 8.99Snallest_Amount: 0.99rounded_amount: 82*************************** 5. row ***************************customer_id: 5first_name: ELIZABETHlast_name: BROWNAvg_Amount: 4Highest_Amount: 9.99Snallest_Amount: 0.99rounded_amount: 145
  29. 29. 28mysql> select c.customer_id, first_name,last_name, amount, cos(amount), tan(amount),sin(amount) from customer c inner join payment p onc.customer_id =p.customer_id group by c.customer_id G*************************** 1. row ***************************customer_id: 1first_name: MARYlast_name: SMITHamount: 2.99cos(amount): -0.988531820827396tan(amount): -0.1527646443995571sin(amount): 0.15101271208634384*************************** 2. row ***************************customer_id: 2first_name: PATRICIAlast_name: JOHNSONamount: 4.99cos(amount): 0.27405891954542744tan(amount): -3.5091465186462645sin(amount): -0.9617129034267934*************************** 3. row ***************************customer_id: 3first_name: LINDAlast_name: WILLIAMSamount: 1.99cos(amount): -0.4070332066592655tan(amount): -2.244075781526737sin(amount): 0.9134133613412252*************************** 4. row ***************************customer_id: 4first_name: BARBARAlast_name: JONESamount: 4.99cos(amount): 0.27405891954542744tan(amount): -3.5091465186462645sin(amount): -0.9617129034267934
  30. 30. 29*************************** 5. row ***************************customer_id: 5first_name: ELIZABETHlast_name: BROWNamount: 0.99cos(amount): 0.5486898605815875tan(amount): 1.5236767410179022sin(amount): 0.8360259786005205*************************** 6. row ***************************customer_id: 6first_name: JENNIFERlast_name: DAVISamount: 4.99cos(amount): 0.27405891954542744tan(amount): -3.5091465186462645sin(amount): -0.9617129034267934*************************** 7. row ***************************customer_id: 7first_name: MARIAlast_name: MILLERamount: 5.99cos(amount): 0.9573281701231308tan(amount): -0.30188505822636535sin(amount): -0.2890030703793611*************************** 8. row ***************************customer_id: 8first_name: SUSANlast_name: WILSONamount: 6.99cos(amount): 0.7604343160346811tan(amount): 0.8540051902908776sin(amount): 0.6494148527689112
  31. 31. 30DBA Workmysql> show columns from customer G*************************** 1. row ***************************Field: customer_idType: smallint(5) unsignedNull: NOKey: PRIDefault: NULLExtra: auto_increment*************************** 2. row ***************************Field: store_idType: tinyint(3) unsignedNull: NOKey: MULDefault: NULLExtra:*************************** 3. row ***************************Field: first_nameType: varchar(45)Null: NOKey:Default: NULLExtra:*************************** 4. row ***************************Field: last_nameType: varchar(45)Null: NOKey: MULDefault: NULLExtra:*************************** 5. row ***************************Field: emailType: varchar(50)
  32. 32. 31Null: YESKey:Default: NULLExtra:*************************** 6. row ***************************Field: address_idType: smallint(5) unsignedNull: NOKey: MULDefault: NULLExtra:*************************** 7. row ***************************Field: activeType: tinyint(1)Null: NOKey:Default: 1Extra:*************************** 8. row ***************************Field: create_dateType: datetimeNull: NOKey:Default: NULLExtra:*************************** 9. row ***************************Field: last_updateType: timestampNull: NOKey:Default: CURRENT_TIMESTAMPExtra: on update CURRENT_TIMESTAMP9 rows in set (0.01 sec)
  33. 33. 32mysql> show full columns from customer G*************************** 1. row ***************************Field: customer_idType: smallint(5) unsignedCollation: NULLNull: NOKey: PRIDefault: NULLExtra: auto_incrementPrivileges: select,insert,update,referencesComment:*************************** 2. row ***************************Field: store_idType: tinyint(3) unsignedCollation: NULLNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 3. row ***************************Field: first_nameType: varchar(45)Collation: utf8_general_ciNull: NOKey:Default: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 4. row ***************************
  34. 34. 33Field: last_nameType: varchar(45)Collation: utf8_general_ciNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 5. row ***************************Field: emailType: varchar(50)Collation: utf8_general_ciNull: YESKey:Default: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 6. row ***************************Field: address_idType: smallint(5) unsignedCollation: NULLNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 7. row ***************************Field: activeType: tinyint(1)Collation: NULLNull: NO
  35. 35. 34Key:Default: 1Extra:Privileges: select,insert,update,referencesComment:*************************** 8. row ***************************Field: create_dateType: datetimeCollation: NULLNull: NOKey:Default: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 9. row ***************************Field: last_updateType: timestampCollation: NULLNull: NOKey:Default: CURRENT_TIMESTAMPExtra: on update CURRENT_TIMESTAMPPrivileges: select,insert,update,referencesComment:9 rows in set (0.01 sec)
  36. 36. 35mysql> SHOW INDEX FROM CUSTOMER G*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 4Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_address_idSeq_in_index: 1
  37. 37. 36Column_name: address_idCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> SHOW KEYS FROM CUSTOMER G*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 577
  38. 38. 37Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 3Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_address_idSeq_in_index: 1Column_name: address_idCollation: ACardinality: 577Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:
  39. 39. 38*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 577Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> SHOW INDEX FROM CUSTOMER G*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 505Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1
  40. 40. 39Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 3Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_address_idSeq_in_index: 1Column_name: address_idCollation: ACardinality: 505Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 505Sub_part: NULL
  41. 41. 40Packed: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> show columns from customers GERROR 1146 (42S02): Table sakila.customers doesnt existmysql> show columns from customer G*************************** 1. row ***************************Field: customer_idType: smallint(5) unsignedNull: NOKey: PRIDefault: NULLExtra: auto_increment*************************** 2. row ***************************Field: store_idType: tinyint(3) unsignedNull: NOKey: MULDefault: NULLExtra:*************************** 3. row ***************************Field: first_nameType: varchar(45)Null: NOKey:Default: NULLExtra:*************************** 4. row ***************************Field: last_name
  42. 42. 41Type: varchar(45)Null: NOKey: MULDefault: NULLExtra:*************************** 5. row ***************************Field: emailType: varchar(50)Null: YESKey:Default: NULLExtra:*************************** 6. row ***************************Field: address_idType: smallint(5) unsignedNull: NOKey: MULDefault: NULLExtra:*************************** 7. row ***************************Field: activeType: tinyint(1)Null: NOKey:Default: 1Extra:*************************** 8. row ***************************Field: create_dateType: datetimeNull: NOKey:Default: NULLExtra:*************************** 9. row ***************************
  43. 43. 42Field: last_updateType: timestampNull: NOKey:Default: CURRENT_TIMESTAMPExtra: on update CURRENT_TIMESTAMP9 rows in set (0.01 sec)mysql> SHOW INDEX FROM CUSTOMER G*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 4Sub_part: NULLPacked: NULLNull:
  44. 44. 43Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_address_idSeq_in_index: 1Column_name: address_idCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 671Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> SHOW KEYS FROM CUSTOMER G
  45. 45. 44*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 577Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 3Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_address_idSeq_in_index: 1Column_name: address_id
  46. 46. 45Collation: ACardinality: 577Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 577Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> SHOW INDEX FROM CUSTOMER;+----------+------------+-------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type |Comment | Index_comment |+----------+------------+-------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| CUSTOMER | 0 | PRIMARY | 1 | customer_id | A | 646 | NULL | NULL | | BTREE | | || CUSTOMER | 1 | idx_fk_store_id | 1 | store_id | A | 3 | NULL | NULL | | BTREE | | || CUSTOMER | 1 | idx_fk_address_id | 1 | address_id | A | 646 | NULL | NULL | | BTREE | | || CUSTOMER | 1 | idx_last_name | 1 | last_name | A | 646 | NULL | NULL | | BTREE | | |+----------+------------+-------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
  47. 47. 464 rows in set (0.00 sec)mysql> SHOW INDEX FROM CUSTOMER G*************************** 1. row ***************************Table: CUSTOMERNon_unique: 0Key_name: PRIMARYSeq_in_index: 1Column_name: customer_idCollation: ACardinality: 505Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 2. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_fk_store_idSeq_in_index: 1Column_name: store_idCollation: ACardinality: 3Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 3. row ***************************Table: CUSTOMERNon_unique: 1
  48. 48. 47Key_name: idx_fk_address_idSeq_in_index: 1Column_name: address_idCollation: ACardinality: 505Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:*************************** 4. row ***************************Table: CUSTOMERNon_unique: 1Key_name: idx_last_nameSeq_in_index: 1Column_name: last_nameCollation: ACardinality: 505Sub_part: NULLPacked: NULLNull:Index_type: BTREEComment:Index_comment:4 rows in set (0.00 sec)mysql> desc customer G*************************** 1. row ***************************Field: customer_idType: smallint(5) unsignedNull: NOKey: PRIDefault: NULL
  49. 49. 48Extra: auto_increment*************************** 2. row ***************************Field: store_idType: tinyint(3) unsignedNull: NOKey: MULDefault: NULLExtra:*************************** 3. row ***************************Field: first_nameType: varchar(45)Null: NOKey:Default: NULLExtra:*************************** 4. row ***************************Field: last_nameType: varchar(45)Null: NOKey: MULDefault: NULLExtra:*************************** 5. row ***************************Field: emailType: varchar(50)Null: YESKey:Default: NULLExtra:*************************** 6. row ***************************Field: address_idType: smallint(5) unsignedNull: NOKey: MUL
  50. 50. 49Default: NULLExtra:*************************** 7. row ***************************Field: activeType: tinyint(1)Null: NOKey:Default: 1Extra:*************************** 8. row ***************************Field: create_dateType: datetimeNull: NOKey:Default: NULLExtra:*************************** 9. row ***************************Field: last_updateType: timestampNull: NOKey:Default: CURRENT_TIMESTAMPExtra: on update CURRENT_TIMESTAMP9 rows in set (0.01 sec)mysql> SHOW Character set G*************************** 1. row ***************************Charset: big5Description: Big5 Traditional ChineseDefault collation: big5_chinese_ciMaxlen: 2*************************** 2. row ***************************Charset: dec8Description: DEC West European
  51. 51. 50Default collation: dec8_swedish_ciMaxlen: 1*************************** 3. row ***************************Charset: cp850Description: DOS West EuropeanDefault collation: cp850_general_ciMaxlen: 1*************************** 4. row ***************************Charset: hp8Description: HP West EuropeanDefault collation: hp8_english_ciMaxlen: 1*************************** 5. row ***************************Charset: koi8rDescription: KOI8-R Relcom RussianDefault collation: koi8r_general_ciMaxlen: 1*************************** 6. row ***************************Charset: latin1Description: cp1252 West EuropeanDefault collation: latin1_swedish_ciMaxlen: 1*************************** 7. row ***************************Charset: latin2Description: ISO 8859-2 Central EuropeanDefault collation: latin2_general_ciMaxlen: 1*************************** 8. row ***************************Charset: swe7Description: 7bit SwedishDefault collation: swe7_swedish_ciMaxlen: 1*************************** 9. row ***************************Charset: ascii
  52. 52. 51Description: US ASCIIDefault collation: ascii_general_ciMaxlen: 1*************************** 10. row ***************************Charset: ujisDescription: EUC-JP JapaneseDefault collation: ujis_japanese_ciMaxlen: 3*************************** 11. row ***************************Charset: sjisDescription: Shift-JIS JapaneseDefault collation: sjis_japanese_ciMaxlen: 2*************************** 12. row ***************************Charset: hebrewDescription: ISO 8859-8 HebrewDefault collation: hebrew_general_ciMaxlen: 1*************************** 13. row ***************************Charset: tis620Description: TIS620 ThaiDefault collation: tis620_thai_ciMaxlen: 1*************************** 14. row ***************************Charset: euckrDescription: EUC-KR KoreanDefault collation: euckr_korean_ciMaxlen: 2*************************** 15. row ***************************Charset: koi8uDescription: KOI8-U UkrainianDefault collation: koi8u_general_ciMaxlen: 1*************************** 16. row ***************************
  53. 53. 52Charset: gb2312Description: GB2312 Simplified ChineseDefault collation: gb2312_chinese_ciMaxlen: 2*************************** 17. row ***************************Charset: greekDescription: ISO 8859-7 GreekDefault collation: greek_general_ciMaxlen: 1*************************** 18. row ***************************Charset: cp1250Description: Windows Central EuropeanDefault collation: cp1250_general_ciMaxlen: 1*************************** 19. row ***************************Charset: gbkDescription: GBK Simplified ChineseDefault collation: gbk_chinese_ciMaxlen: 2*************************** 20. row ***************************Charset: latin5Description: ISO 8859-9 TurkishDefault collation: latin5_turkish_ciMaxlen: 1*************************** 21. row ***************************Charset: armscii8Description: ARMSCII-8 ArmenianDefault collation: armscii8_general_ciMaxlen: 1*************************** 22. row ***************************Charset: utf8Description: UTF-8 UnicodeDefault collation: utf8_general_ciMaxlen: 3
  54. 54. 53*************************** 23. row ***************************Charset: ucs2Description: UCS-2 UnicodeDefault collation: ucs2_general_ciMaxlen: 2*************************** 24. row ***************************Charset: cp866Description: DOS RussianDefault collation: cp866_general_ciMaxlen: 1*************************** 25. row ***************************Charset: keybcs2Description: DOS Kamenicky Czech-SlovakDefault collation: keybcs2_general_ciMaxlen: 1*************************** 26. row ***************************Charset: macceDescription: Mac Central EuropeanDefault collation: macce_general_ciMaxlen: 1*************************** 27. row ***************************Charset: macromanDescription: Mac West EuropeanDefault collation: macroman_general_ciMaxlen: 1*************************** 28. row ***************************Charset: cp852Description: DOS Central EuropeanDefault collation: cp852_general_ciMaxlen: 1*************************** 29. row ***************************Charset: latin7Description: ISO 8859-13 BalticDefault collation: latin7_general_ci
  55. 55. 54Maxlen: 1*************************** 30. row ***************************Charset: utf8mb4Description: UTF-8 UnicodeDefault collation: utf8mb4_general_ciMaxlen: 4*************************** 31. row ***************************Charset: cp1251Description: Windows CyrillicDefault collation: cp1251_general_ciMaxlen: 1*************************** 32. row ***************************Charset: utf16Description: UTF-16 UnicodeDefault collation: utf16_general_ciMaxlen: 4*************************** 33. row ***************************Charset: cp1256Description: Windows ArabicDefault collation: cp1256_general_ciMaxlen: 1*************************** 34. row ***************************Charset: cp1257Description: Windows BalticDefault collation: cp1257_general_ciMaxlen: 1*************************** 35. row ***************************Charset: utf32Description: UTF-32 UnicodeDefault collation: utf32_general_ciMaxlen: 4*************************** 36. row ***************************Charset: binaryDescription: Binary pseudo charset
  56. 56. 55Default collation: binaryMaxlen: 1*************************** 37. row ***************************Charset: geostd8Description: GEOSTD8 GeorgianDefault collation: geostd8_general_ciMaxlen: 1*************************** 38. row ***************************Charset: cp932Description: SJIS for Windows JapaneseDefault collation: cp932_japanese_ciMaxlen: 2*************************** 39. row ***************************Charset: eucjpmsDescription: UJIS for Windows JapaneseDefault collation: eucjpms_japanese_ciMaxlen: 339 rows in set (0.00 sec)mysql> SHOW Character set from customer;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntaxto use near from customer at line 1mysql> SHOW Character set ;+----------+-----------------------------+---------------------+--------+| Charset | Description | Default collation | Maxlen |+----------+-----------------------------+---------------------+--------+| big5 | Big5 Traditional Chinese | big5_chinese_ci | 2 || dec8 | DEC West European | dec8_swedish_ci | 1 || cp850 | DOS West European | cp850_general_ci | 1 || hp8 | HP West European | hp8_english_ci | 1 || koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 || latin1 | cp1252 West European | latin1_swedish_ci | 1 || latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 || swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
  57. 57. 56| ascii | US ASCII | ascii_general_ci | 1 || ujis | EUC-JP Japanese | ujis_japanese_ci | 3 || sjis | Shift-JIS Japanese | sjis_japanese_ci | 2 || hebrew | ISO 8859-8 Hebrew | hebrew_general_ci | 1 || tis620 | TIS620 Thai | tis620_thai_ci | 1 || euckr | EUC-KR Korean | euckr_korean_ci | 2 || koi8u | KOI8-U Ukrainian | koi8u_general_ci | 1 || gb2312 | GB2312 Simplified Chinese | gb2312_chinese_ci | 2 || greek | ISO 8859-7 Greek | greek_general_ci | 1 || cp1250 | Windows Central European | cp1250_general_ci | 1 || gbk | GBK Simplified Chinese | gbk_chinese_ci | 2 || latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 || armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 || utf8 | UTF-8 Unicode | utf8_general_ci | 3 || ucs2 | UCS-2 Unicode | ucs2_general_ci | 2 || cp866 | DOS Russian | cp866_general_ci | 1 || keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2_general_ci | 1 || macce | Mac Central European | macce_general_ci | 1 || macroman | Mac West European | macroman_general_ci | 1 || cp852 | DOS Central European | cp852_general_ci | 1 || latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 || utf8mb4 | UTF-8 Unicode | utf8mb4_general_ci | 4 || cp1251 | Windows Cyrillic | cp1251_general_ci | 1 || utf16 | UTF-16 Unicode | utf16_general_ci | 4 || cp1256 | Windows Arabic | cp1256_general_ci | 1 || cp1257 | Windows Baltic | cp1257_general_ci | 1 || utf32 | UTF-32 Unicode | utf32_general_ci | 4 || binary | Binary pseudo charset | binary | 1 || geostd8 | GEOSTD8 Georgian | geostd8_general_ci | 1 || cp932 | SJIS for Windows Japanese | cp932_japanese_ci | 2 || eucjpms | UJIS for Windows Japanese | eucjpms_japanese_ci | 3 |+----------+-----------------------------+---------------------+--------+39 rows in set (0.00 sec)
  58. 58. 57mysql> SHOW Character COLLATION;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntaxto use near COLLATION at line 1mysql> SHOW Character collation;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntaxto use near collation at line 1mysql> SHOW collation;+-----------------------+----------+-----+---------+----------+---------+| Collation | Charset | Id | Default | Compiled | Sortlen |+-----------------------+----------+-----+---------+----------+---------+| big5_chinese_ci | big5 | 1 | Yes | Yes | 1 || big5_bin | big5 | 84 | | Yes | 1 || dec8_swedish_ci | dec8 | 3 | Yes | Yes | 1 || dec8_bin | dec8 | 69 | | Yes | 1 || cp850_general_ci | cp850 | 4 | Yes | Yes | 1 || cp850_bin | cp850 | 80 | | Yes | 1 || hp8_english_ci | hp8 | 6 | Yes | Yes | 1 || hp8_bin | hp8 | 72 | | Yes | 1 || koi8r_general_ci | koi8r | 7 | Yes | Yes | 1 || koi8r_bin | koi8r | 74 | | Yes | 1 || latin1_german1_ci | latin1 | 5 | | Yes | 1 || latin1_swedish_ci | latin1 | 8 | Yes | Yes | 1 || latin1_danish_ci | latin1 | 15 | | Yes | 1 || latin1_german2_ci | latin1 | 31 | | Yes | 2 || latin1_bin | latin1 | 47 | | Yes | 1 || latin1_general_ci | latin1 | 48 | | Yes | 1 || latin1_general_cs | latin1 | 49 | | Yes | 1 || latin1_spanish_ci | latin1 | 94 | | Yes | 1 || latin2_czech_cs | latin2 | 2 | | Yes | 4 || latin2_general_ci | latin2 | 9 | Yes | Yes | 1 || latin2_hungarian_ci | latin2 | 21 | | Yes | 1 || latin2_croatian_ci | latin2 | 27 | | Yes | 1 || latin2_bin | latin2 | 77 | | Yes | 1 || swe7_swedish_ci | swe7 | 10 | Yes | Yes | 1 |
  59. 59. 58| swe7_bin | swe7 | 82 | | Yes | 1 || ascii_general_ci | ascii | 11 | Yes | Yes | 1 || ascii_bin | ascii | 65 | | Yes | 1 || ujis_japanese_ci | ujis | 12 | Yes | Yes | 1 || ujis_bin | ujis | 91 | | Yes | 1 || sjis_japanese_ci | sjis | 13 | Yes | Yes | 1 || sjis_bin | sjis | 88 | | Yes | 1 || hebrew_general_ci | hebrew | 16 | Yes | Yes | 1 || hebrew_bin | hebrew | 71 | | Yes | 1 || tis620_thai_ci | tis620 | 18 | Yes | Yes | 4 || tis620_bin | tis620 | 89 | | Yes | 1 || euckr_korean_ci | euckr | 19 | Yes | Yes | 1 || euckr_bin | euckr | 85 | | Yes | 1 || koi8u_general_ci | koi8u | 22 | Yes | Yes | 1 || koi8u_bin | koi8u | 75 | | Yes | 1 || gb2312_chinese_ci | gb2312 | 24 | Yes | Yes | 1 || gb2312_bin | gb2312 | 86 | | Yes | 1 || greek_general_ci | greek | 25 | Yes | Yes | 1 || greek_bin | greek | 70 | | Yes | 1 || cp1250_general_ci | cp1250 | 26 | Yes | Yes | 1 || cp1250_czech_cs | cp1250 | 34 | | Yes | 2 || cp1250_croatian_ci | cp1250 | 44 | | Yes | 1 || cp1250_bin | cp1250 | 66 | | Yes | 1 || cp1250_polish_ci | cp1250 | 99 | | Yes | 1 || gbk_chinese_ci | gbk | 28 | Yes | Yes | 1 || gbk_bin | gbk | 87 | | Yes | 1 || latin5_turkish_ci | latin5 | 30 | Yes | Yes | 1 || latin5_bin | latin5 | 78 | | Yes | 1 || armscii8_general_ci | armscii8 | 32 | Yes | Yes | 1 || armscii8_bin | armscii8 | 64 | | Yes | 1 || utf8_general_ci | utf8 | 33 | Yes | Yes | 1 || utf8_bin | utf8 | 83 | | Yes | 1 || utf8_unicode_ci | utf8 | 192 | | Yes | 8 || utf8_icelandic_ci | utf8 | 193 | | Yes | 8 |
  60. 60. 59| utf8_latvian_ci | utf8 | 194 | | Yes | 8 || utf8_romanian_ci | utf8 | 195 | | Yes | 8 || utf8_slovenian_ci | utf8 | 196 | | Yes | 8 || utf8_polish_ci | utf8 | 197 | | Yes | 8 || utf8_estonian_ci | utf8 | 198 | | Yes | 8 || utf8_spanish_ci | utf8 | 199 | | Yes | 8 || utf8_swedish_ci | utf8 | 200 | | Yes | 8 || utf8_turkish_ci | utf8 | 201 | | Yes | 8 || utf8_czech_ci | utf8 | 202 | | Yes | 8 || utf8_danish_ci | utf8 | 203 | | Yes | 8 || utf8_lithuanian_ci | utf8 | 204 | | Yes | 8 || utf8_slovak_ci | utf8 | 205 | | Yes | 8 || utf8_spanish2_ci | utf8 | 206 | | Yes | 8 || utf8_roman_ci | utf8 | 207 | | Yes | 8 || utf8_persian_ci | utf8 | 208 | | Yes | 8 || utf8_esperanto_ci | utf8 | 209 | | Yes | 8 || utf8_hungarian_ci | utf8 | 210 | | Yes | 8 || utf8_sinhala_ci | utf8 | 211 | | Yes | 8 || ucs2_general_ci | ucs2 | 35 | Yes | Yes | 1 || ucs2_bin | ucs2 | 90 | | Yes | 1 || ucs2_unicode_ci | ucs2 | 128 | | Yes | 8 || ucs2_icelandic_ci | ucs2 | 129 | | Yes | 8 || ucs2_latvian_ci | ucs2 | 130 | | Yes | 8 || ucs2_romanian_ci | ucs2 | 131 | | Yes | 8 || ucs2_slovenian_ci | ucs2 | 132 | | Yes | 8 || ucs2_polish_ci | ucs2 | 133 | | Yes | 8 || ucs2_estonian_ci | ucs2 | 134 | | Yes | 8 || ucs2_spanish_ci | ucs2 | 135 | | Yes | 8 || ucs2_swedish_ci | ucs2 | 136 | | Yes | 8 || ucs2_turkish_ci | ucs2 | 137 | | Yes | 8 || ucs2_czech_ci | ucs2 | 138 | | Yes | 8 || ucs2_danish_ci | ucs2 | 139 | | Yes | 8 || ucs2_lithuanian_ci | ucs2 | 140 | | Yes | 8 || ucs2_slovak_ci | ucs2 | 141 | | Yes | 8 |
  61. 61. 60| ucs2_spanish2_ci | ucs2 | 142 | | Yes | 8 || ucs2_roman_ci | ucs2 | 143 | | Yes | 8 || ucs2_persian_ci | ucs2 | 144 | | Yes | 8 || ucs2_esperanto_ci | ucs2 | 145 | | Yes | 8 || ucs2_hungarian_ci | ucs2 | 146 | | Yes | 8 || ucs2_sinhala_ci | ucs2 | 147 | | Yes | 8 || cp866_general_ci | cp866 | 36 | Yes | Yes | 1 || cp866_bin | cp866 | 68 | | Yes | 1 || keybcs2_general_ci | keybcs2 | 37 | Yes | Yes | 1 || keybcs2_bin | keybcs2 | 73 | | Yes | 1 || macce_general_ci | macce | 38 | Yes | Yes | 1 || macce_bin | macce | 43 | | Yes | 1 || macroman_general_ci | macroman | 39 | Yes | Yes | 1 || macroman_bin | macroman | 53 | | Yes | 1 || cp852_general_ci | cp852 | 40 | Yes | Yes | 1 || cp852_bin | cp852 | 81 | | Yes | 1 || latin7_estonian_cs | latin7 | 20 | | Yes | 1 || latin7_general_ci | latin7 | 41 | Yes | Yes | 1 || latin7_general_cs | latin7 | 42 | | Yes | 1 || latin7_bin | latin7 | 79 | | Yes | 1 || utf8mb4_general_ci | utf8mb4 | 45 | Yes | Yes | 1 || utf8mb4_bin | utf8mb4 | 46 | | Yes | 1 || utf8mb4_unicode_ci | utf8mb4 | 224 | | Yes | 8 || utf8mb4_icelandic_ci | utf8mb4 | 225 | | Yes | 8 || utf8mb4_latvian_ci | utf8mb4 | 226 | | Yes | 8 || utf8mb4_romanian_ci | utf8mb4 | 227 | | Yes | 8 || utf8mb4_slovenian_ci | utf8mb4 | 228 | | Yes | 8 || utf8mb4_polish_ci | utf8mb4 | 229 | | Yes | 8 || utf8mb4_estonian_ci | utf8mb4 | 230 | | Yes | 8 || utf8mb4_spanish_ci | utf8mb4 | 231 | | Yes | 8 || utf8mb4_swedish_ci | utf8mb4 | 232 | | Yes | 8 || utf8mb4_turkish_ci | utf8mb4 | 233 | | Yes | 8 || utf8mb4_czech_ci | utf8mb4 | 234 | | Yes | 8 || utf8mb4_danish_ci | utf8mb4 | 235 | | Yes | 8 |
  62. 62. 61| utf8mb4_lithuanian_ci | utf8mb4 | 236 | | Yes | 8 || utf8mb4_slovak_ci | utf8mb4 | 237 | | Yes | 8 || utf8mb4_spanish2_ci | utf8mb4 | 238 | | Yes | 8 || utf8mb4_roman_ci | utf8mb4 | 239 | | Yes | 8 || utf8mb4_persian_ci | utf8mb4 | 240 | | Yes | 8 || utf8mb4_esperanto_ci | utf8mb4 | 241 | | Yes | 8 || utf8mb4_hungarian_ci | utf8mb4 | 242 | | Yes | 8 || utf8mb4_sinhala_ci | utf8mb4 | 243 | | Yes | 8 || cp1251_bulgarian_ci | cp1251 | 14 | | Yes | 1 || cp1251_ukrainian_ci | cp1251 | 23 | | Yes | 1 || cp1251_bin | cp1251 | 50 | | Yes | 1 || cp1251_general_ci | cp1251 | 51 | Yes | Yes | 1 || cp1251_general_cs | cp1251 | 52 | | Yes | 1 || utf16_general_ci | utf16 | 54 | Yes | Yes | 1 || utf16_bin | utf16 | 55 | | Yes | 1 || utf16_unicode_ci | utf16 | 101 | | Yes | 8 || utf16_icelandic_ci | utf16 | 102 | | Yes | 8 || utf16_latvian_ci | utf16 | 103 | | Yes | 8 || utf16_romanian_ci | utf16 | 104 | | Yes | 8 || utf16_slovenian_ci | utf16 | 105 | | Yes | 8 || utf16_polish_ci | utf16 | 106 | | Yes | 8 || utf16_estonian_ci | utf16 | 107 | | Yes | 8 || utf16_spanish_ci | utf16 | 108 | | Yes | 8 || utf16_swedish_ci | utf16 | 109 | | Yes | 8 || utf16_turkish_ci | utf16 | 110 | | Yes | 8 || utf16_czech_ci | utf16 | 111 | | Yes | 8 || utf16_danish_ci | utf16 | 112 | | Yes | 8 || utf16_lithuanian_ci | utf16 | 113 | | Yes | 8 || utf16_slovak_ci | utf16 | 114 | | Yes | 8 || utf16_spanish2_ci | utf16 | 115 | | Yes | 8 || utf16_roman_ci | utf16 | 116 | | Yes | 8 || utf16_persian_ci | utf16 | 117 | | Yes | 8 || utf16_esperanto_ci | utf16 | 118 | | Yes | 8 || utf16_hungarian_ci | utf16 | 119 | | Yes | 8 |
  63. 63. 62| utf16_sinhala_ci | utf16 | 120 | | Yes | 8 || cp1256_general_ci | cp1256 | 57 | Yes | Yes | 1 || cp1256_bin | cp1256 | 67 | | Yes | 1 || cp1257_lithuanian_ci | cp1257 | 29 | | Yes | 1 || cp1257_bin | cp1257 | 58 | | Yes | 1 || cp1257_general_ci | cp1257 | 59 | Yes | Yes | 1 || utf32_general_ci | utf32 | 60 | Yes | Yes | 1 || utf32_bin | utf32 | 61 | | Yes | 1 || utf32_unicode_ci | utf32 | 160 | | Yes | 8 || utf32_icelandic_ci | utf32 | 161 | | Yes | 8 || utf32_latvian_ci | utf32 | 162 | | Yes | 8 || utf32_romanian_ci | utf32 | 163 | | Yes | 8 || utf32_slovenian_ci | utf32 | 164 | | Yes | 8 || utf32_polish_ci | utf32 | 165 | | Yes | 8 || utf32_estonian_ci | utf32 | 166 | | Yes | 8 || utf32_spanish_ci | utf32 | 167 | | Yes | 8 || utf32_swedish_ci | utf32 | 168 | | Yes | 8 || utf32_turkish_ci | utf32 | 169 | | Yes | 8 || utf32_czech_ci | utf32 | 170 | | Yes | 8 || utf32_danish_ci | utf32 | 171 | | Yes | 8 || utf32_lithuanian_ci | utf32 | 172 | | Yes | 8 || utf32_slovak_ci | utf32 | 173 | | Yes | 8 || utf32_spanish2_ci | utf32 | 174 | | Yes | 8 || utf32_roman_ci | utf32 | 175 | | Yes | 8 || utf32_persian_ci | utf32 | 176 | | Yes | 8 || utf32_esperanto_ci | utf32 | 177 | | Yes | 8 || utf32_hungarian_ci | utf32 | 178 | | Yes | 8 || utf32_sinhala_ci | utf32 | 179 | | Yes | 8 || binary | binary | 63 | Yes | Yes | 1 || geostd8_general_ci | geostd8 | 92 | Yes | Yes | 1 || geostd8_bin | geostd8 | 93 | | Yes | 1 || cp932_japanese_ci | cp932 | 95 | Yes | Yes | 1 || cp932_bin | cp932 | 96 | | Yes | 1 || eucjpms_japanese_ci | eucjpms | 97 | Yes | Yes | 1 |
  64. 64. 63| eucjpms_bin | eucjpms | 98 | | Yes | 1 |+-----------------------+----------+-----+---------+----------+---------+195 rows in set (0.00 sec)mysql> show full columns from customer;+-------------+----------------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+---------+| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |+-------------+----------------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+---------+| customer_id | smallint(5) unsigned | NULL | NO | PRI | NULL | auto_increment | select,insert,update,references | || store_id | tinyint(3) unsigned | NULL | NO | MUL | NULL | | select,insert,update,references | || first_name | varchar(45) | utf8_general_ci | NO | | NULL | | select,insert,update,references | || last_name | varchar(45) | utf8_general_ci | NO | MUL | NULL | | select,insert,update,references | || email | varchar(50) | utf8_general_ci | YES | | NULL | | select,insert,update,references | || address_id | smallint(5) unsigned | NULL | NO | MUL | NULL | | select,insert,update,references | || active | tinyint(1) | NULL | NO | | 1 | | select,insert,update,references | || create_date | datetime | NULL | NO | | NULL | | select,insert,update,references | || last_update | timestamp | NULL | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |select,insert,update,references | |+-------------+----------------------+-----------------+------+-----+-------------------+-----------------------------+---------------------------------+---------+9 rows in set (0.00 sec)mysql> show full columns from customer G*************************** 1. row ***************************Field: customer_idType: smallint(5) unsignedCollation: NULLNull: NOKey: PRIDefault: NULLExtra: auto_incrementPrivileges: select,insert,update,referencesComment:*************************** 2. row ***************************Field: store_id
  65. 65. 64Type: tinyint(3) unsignedCollation: NULLNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 3. row ***************************Field: first_nameType: varchar(45)Collation: utf8_general_ciNull: NOKey:Default: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 4. row ***************************Field: last_nameType: varchar(45)Collation: utf8_general_ciNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 5. row ***************************Field: emailType: varchar(50)Collation: utf8_general_ciNull: YESKey:
  66. 66. 65Default: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 6. row ***************************Field: address_idType: smallint(5) unsignedCollation: NULLNull: NOKey: MULDefault: NULLExtra:Privileges: select,insert,update,referencesComment:*************************** 7. row ***************************Field: activeType: tinyint(1)Collation: NULLNull: NOKey:Default: 1Extra:Privileges: select,insert,update,referencesComment:*************************** 8. row ***************************Field: create_dateType: datetimeCollation: NULLNull: NOKey:Default: NULLExtra:Privileges: select,insert,update,referencesComment:
  67. 67. 66*************************** 9. row ***************************Field: last_updateType: timestampCollation: NULLNull: NOKey:Default: CURRENT_TIMESTAMPExtra: on update CURRENT_TIMESTAMPPrivileges: select,insert,update,referencesComment:9 rows in set (0.01 sec)mysql> SHOW TABLES;+----------------------------+| Tables_in_sakila |+----------------------------+| actor || actor_info || address || books || category || city || country || country2 || country3 || customer || customer_list || film || film_actor || film_category || film_list || film_text || grade_summary || inventory |
  68. 68. 67| language || nicer_but_slower_film_list || orders23 || payment || rental || sales_by_film_category || sales_by_store || singers || singers2 || singers4 || staff || staff_list || store || stud || stud2 || studb || studb6 |+----------------------------+35 rows in set (0.53 sec)mysql>mysql> SELECT TABLE_NAME,ROW_FORMAT FROM INFORMATION_SCHEMA.TABLES;+----------------------------------------------+------------+| TABLE_NAME | ROW_FORMAT |+----------------------------------------------+------------+| CHARACTER_SETS | Fixed || COLLATIONS | Fixed || COLLATION_CHARACTER_SET_APPLICABILITY | Fixed || COLUMNS | Dynamic || COLUMN_PRIVILEGES | Fixed || ENGINES | Fixed || EVENTS | Dynamic || FILES | Fixed || GLOBAL_STATUS | Fixed |
  69. 69. 68| GLOBAL_VARIABLES | Fixed || KEY_COLUMN_USAGE | Fixed || PARAMETERS | Dynamic || PARTITIONS | Dynamic || PLUGINS | Dynamic || PROCESSLIST | Dynamic || PROFILING | Fixed || REFERENTIAL_CONSTRAINTS | Fixed || ROUTINES | Dynamic || SCHEMATA | Fixed || SCHEMA_PRIVILEGES | Fixed || SESSION_STATUS | Fixed || SESSION_VARIABLES | Fixed || STATISTICS | Fixed || TABLES | Fixed || TABLESPACES | Fixed || TABLE_CONSTRAINTS | Fixed || TABLE_PRIVILEGES | Fixed || TRIGGERS | Dynamic || USER_PRIVILEGES | Fixed || VIEWS | Dynamic || INNODB_CMP_RESET | Fixed || INNODB_TRX | Fixed || INNODB_CMPMEM_RESET | Fixed || INNODB_LOCK_WAITS | Fixed || INNODB_CMPMEM | Fixed || INNODB_CMP | Fixed || INNODB_LOCKS | Fixed || columns_priv | Fixed || db | Fixed || event | Dynamic || func | Fixed || general_log | Dynamic || help_category | Fixed |
  70. 70. 69| help_keyword | Fixed || help_relation | Fixed || help_topic | Dynamic || host | Fixed || ndb_binlog_index | Dynamic || plugin | Dynamic || proc | Dynamic || procs_priv | Fixed || proxies_priv | Fixed || servers | Fixed || slow_log | Dynamic || tables_priv | Fixed || time_zone | Fixed || time_zone_leap_second | Fixed || time_zone_name | Fixed || time_zone_transition | Fixed || time_zone_transition_type | Fixed || user | Dynamic || cond_instances | Dynamic || events_waits_current | Dynamic || events_waits_history | Dynamic || events_waits_history_long | Dynamic || events_waits_summary_by_instance | Dynamic || events_waits_summary_by_thread_by_event_name | Dynamic || events_waits_summary_global_by_event_name | Dynamic || file_instances | Dynamic || file_summary_by_event_name | Dynamic || file_summary_by_instance | Dynamic || mutex_instances | Dynamic || performance_timers | Fixed || rwlock_instances | Dynamic || setup_consumers | Dynamic || setup_instruments | Dynamic || setup_timers | Dynamic |
  71. 71. 70| threads | Dynamic || actor | Compact || actor_info | NULL || address | Compact || books | Compact || category | Compact || city | Compact || country | Compact || country2 | Compact || country3 | Compact || customer | Compact || customer_list | NULL || film | Compact || film_actor | Compact || film_category | Compact || film_list | NULL || film_text | Dynamic || grade_summary | Compact || inventory | Compact || language | Compact || nicer_but_slower_film_list | NULL || orders23 | Compact || payment | Compact || rental | Compact || sales_by_film_category | NULL || sales_by_store | NULL || singers | Compact || singers2 | Compact || singers4 | Compact || staff | Compact || staff_list | NULL || store | Compact || stud | Compact || stud2 | Compact |
  72. 72. 71| studb | Fixed || studb6 | Fixed |+----------------------------------------------+------------+113 rows in set (0.91 sec)mysql> SELECT * FROM INFORMATION_SCHEMA.TABLES G*************************** 1. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: CHARACTER_SETSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 384DATA_LENGTH: 0MAX_DATA_LENGTH: 16434816INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=43690TABLE_COMMENT:*************************** 2. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: COLLATIONSTABLE_TYPE: SYSTEM VIEW
  73. 73. 72ENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 231DATA_LENGTH: 0MAX_DATA_LENGTH: 16704765INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=72628TABLE_COMMENT:*************************** 3. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: COLLATION_CHARACTER_SET_APPLICABILITYTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 195DATA_LENGTH: 0MAX_DATA_LENGTH: 16357770INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULL
  74. 74. 73CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=86037TABLE_COMMENT:*************************** 4. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: COLUMNSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=6130TABLE_COMMENT:*************************** 5. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: COLUMN_PRIVILEGESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10
  75. 75. 74ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 2565DATA_LENGTH: 0MAX_DATA_LENGTH: 16757145INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=6540TABLE_COMMENT:*************************** 6. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: ENGINESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 490DATA_LENGTH: 0MAX_DATA_LENGTH: 16574250INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ci
  76. 76. 75CHECKSUM: NULLCREATE_OPTIONS: max_rows=34239TABLE_COMMENT:*************************** 7. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: EVENTSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=1353TABLE_COMMENT:*************************** 8. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: FILESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULL
  77. 77. 76AVG_ROW_LENGTH: 2677DATA_LENGTH: 0MAX_DATA_LENGTH: 16758020INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=6267TABLE_COMMENT:*************************** 9. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: GLOBAL_STATUSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 3268DATA_LENGTH: 0MAX_DATA_LENGTH: 16755036INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=5133
  78. 78. 77TABLE_COMMENT:*************************** 10. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: GLOBAL_VARIABLESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 3268DATA_LENGTH: 0MAX_DATA_LENGTH: 16755036INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=5133TABLE_COMMENT:*************************** 11. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: KEY_COLUMN_USAGETABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 4637DATA_LENGTH: 0
  79. 79. 78MAX_DATA_LENGTH: 16762755INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=3618TABLE_COMMENT:*************************** 12. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: PARAMETERSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=13234TABLE_COMMENT:*************************** 13. row ***************************
  80. 80. 79TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: PARTITIONSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=12204TABLE_COMMENT:*************************** 14. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: PLUGINSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024
  81. 81. 80DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=24780TABLE_COMMENT:*************************** 15. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: PROCESSLISTTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=52279TABLE_COMMENT:*************************** 16. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schema
  82. 82. 81TABLE_NAME: PROFILINGTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 308DATA_LENGTH: 0MAX_DATA_LENGTH: 16562084INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=54471TABLE_COMMENT:*************************** 17. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: REFERENTIAL_CONSTRAINTSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 4814DATA_LENGTH: 0MAX_DATA_LENGTH: 16767162INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULL
  83. 83. 82CREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=3485TABLE_COMMENT:*************************** 18. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: ROUTINESTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=1276TABLE_COMMENT:*************************** 19. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: SCHEMATATABLE_TYPE: SYSTEM VIEW
  84. 84. 83ENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 3464DATA_LENGTH: 0MAX_DATA_LENGTH: 16738048INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=4843TABLE_COMMENT:*************************** 20. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: SCHEMA_PRIVILEGESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 2179DATA_LENGTH: 0MAX_DATA_LENGTH: 16736899INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULL
  85. 85. 84CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=7699TABLE_COMMENT:*************************** 21. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: SESSION_STATUSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 3268DATA_LENGTH: 0MAX_DATA_LENGTH: 16755036INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=5133TABLE_COMMENT:*************************** 22. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: SESSION_VARIABLESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10
  86. 86. 85ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 3268DATA_LENGTH: 0MAX_DATA_LENGTH: 16755036INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=5133TABLE_COMMENT:*************************** 23. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: STATISTICSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 5753DATA_LENGTH: 0MAX_DATA_LENGTH: 16752736INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ci
  87. 87. 86CHECKSUM: NULLCREATE_OPTIONS: max_rows=2916TABLE_COMMENT:*************************** 24. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: TABLESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 9450DATA_LENGTH: 0MAX_DATA_LENGTH: 16764300INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=1775TABLE_COMMENT:*************************** 25. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: TABLESPACESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULL
  88. 88. 87AVG_ROW_LENGTH: 6951DATA_LENGTH: 0MAX_DATA_LENGTH: 16772763INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=2413TABLE_COMMENT:*************************** 26. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: TABLE_CONSTRAINTSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 2504DATA_LENGTH: 0MAX_DATA_LENGTH: 16721712INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=6700
  89. 89. 88TABLE_COMMENT:*************************** 27. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: TABLE_PRIVILEGESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 2372DATA_LENGTH: 0MAX_DATA_LENGTH: 16748692INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=7073TABLE_COMMENT:*************************** 28. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: TRIGGERSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0
  90. 90. 89MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=1245TABLE_COMMENT:*************************** 29. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: USER_PRIVILEGESTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 1986DATA_LENGTH: 0MAX_DATA_LENGTH: 16726092INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=8447TABLE_COMMENT:*************************** 30. row ***************************
  91. 91. 90TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: VIEWSTABLE_TYPE: SYSTEM VIEWENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: NULLAVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2013-02-23 06:38:30UPDATE_TIME: 2013-02-23 06:38:30CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=15171TABLE_COMMENT:*************************** 31. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_CMP_RESETTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 25DATA_LENGTH: 0MAX_DATA_LENGTH: 13107200INDEX_LENGTH: 0
  92. 92. 91DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=671088TABLE_COMMENT:*************************** 32. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_TRXTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 4534DATA_LENGTH: 0MAX_DATA_LENGTH: 16766732INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=3700TABLE_COMMENT:*************************** 33. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schema
  93. 93. 92TABLE_NAME: INNODB_CMPMEM_RESETTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 29DATA_LENGTH: 0MAX_DATA_LENGTH: 15204352INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=578524TABLE_COMMENT:*************************** 34. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_LOCK_WAITSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 599DATA_LENGTH: 0MAX_DATA_LENGTH: 16749238INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULL
  94. 94. 93CREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=28008TABLE_COMMENT:*************************** 35. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_CMPMEMTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 29DATA_LENGTH: 0MAX_DATA_LENGTH: 15204352INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=578524TABLE_COMMENT:*************************** 36. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_CMPTABLE_TYPE: SYSTEM VIEW
  95. 95. 94ENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 25DATA_LENGTH: 0MAX_DATA_LENGTH: 13107200INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=671088TABLE_COMMENT:*************************** 37. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: information_schemaTABLE_NAME: INNODB_LOCKSTABLE_TYPE: SYSTEM VIEWENGINE: MEMORYVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: NULLAVG_ROW_LENGTH: 31244DATA_LENGTH: 0MAX_DATA_LENGTH: 16746784INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULL
  96. 96. 95CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS: max_rows=536TABLE_COMMENT:*************************** 38. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: columns_privTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 227994731135631359INDEX_LENGTH: 4096DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Column privileges*************************** 39. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: dbTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10
  97. 97. 96ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 880MAX_DATA_LENGTH: 123848989752688639INDEX_LENGTH: 5120DATA_FREE: 880AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2013-01-14 07:41:32CHECK_TIME: 2011-03-31 09:53:38TABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Database privileges*************************** 40. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: eventTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 2048DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ci
  98. 98. 97CHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Events*************************** 41. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: funcTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 162974011515469823INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: User defined functions*************************** 42. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: general_logTABLE_TYPE: BASE TABLEENGINE: CSVVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 2
  99. 99. 98AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 0INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: General log*************************** 43. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: help_categoryTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 38AVG_ROW_LENGTH: 581DATA_LENGTH: 22078MAX_DATA_LENGTH: 163536961468891135INDEX_LENGTH: 3072DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:40CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:
  100. 100. 99TABLE_COMMENT: help categories*************************** 44. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: help_keywordTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 453AVG_ROW_LENGTH: 197DATA_LENGTH: 89241MAX_DATA_LENGTH: 55450570411999231INDEX_LENGTH: 16384DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:40CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: help keywords*************************** 45. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: help_relationTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 992AVG_ROW_LENGTH: 9DATA_LENGTH: 8928
  101. 101. 100MAX_DATA_LENGTH: 2533274790395903INDEX_LENGTH: 18432DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:40CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: keyword-topic relation*************************** 46. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: help_topicTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 505AVG_ROW_LENGTH: 832DATA_LENGTH: 420296MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 20480DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:40CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: help topics*************************** 47. row ***************************
  102. 102. 101TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: hostTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 110056715893866495INDEX_LENGTH: 2048DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Host privileges; Merged with database privileges*************************** 48. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: ndb_binlog_indexTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024
  103. 103. 102DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: latin1_swedish_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT:*************************** 49. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: pluginTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: MySQL plugins*************************** 50. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysql
  104. 104. 103TABLE_NAME: procTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 6AVG_ROW_LENGTH: 1725DATA_LENGTH: 10352MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 4096DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2013-01-27 01:28:55CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Stored Procedures*************************** 51. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: procs_privTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 239253730204057599INDEX_LENGTH: 4096DATA_FREE: 0AUTO_INCREMENT: NULL
  105. 105. 104CREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Procedure privileges*************************** 52. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: proxies_privTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 1AVG_ROW_LENGTH: 693DATA_LENGTH: 693MAX_DATA_LENGTH: 195062158860484607INDEX_LENGTH: 5120DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:38UPDATE_TIME: 2011-03-31 17:53:40CHECK_TIME: 2011-03-31 09:53:38TABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: User proxy privileges*************************** 53. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: serversTABLE_TYPE: BASE TABLE
  106. 106. 105ENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 433752939111120895INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: MySQL Foreign Servers table*************************** 54. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: slow_logTABLE_TYPE: BASE TABLEENGINE: CSVVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 2AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 0INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULL
  107. 107. 106CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Slow log*************************** 55. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: tables_privTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 239535205180768255INDEX_LENGTH: 4096DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Table privileges*************************** 56. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: time_zoneTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10
  108. 108. 107ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 1970324836974591INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: 1CREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Time zones*************************** 57. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: time_zone_leap_secondTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 3659174697238527INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ci
  109. 109. 108CHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Leap seconds information for time zones*************************** 58. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: time_zone_nameTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 55450570411999231INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Time zone names*************************** 59. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: time_zone_transitionTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0
  110. 110. 109AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 4785074604081151INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Time zone transitions*************************** 60. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: time_zone_transition_typeTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: FixedTABLE_ROWS: 0AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 10696049115004927INDEX_LENGTH: 1024DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:37UPDATE_TIME: 2011-03-31 17:53:38CHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:
  111. 111. 110TABLE_COMMENT: Time zone transition types*************************** 61. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: mysqlTABLE_NAME: userTABLE_TYPE: BASE TABLEENGINE: MyISAMVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 1AVG_ROW_LENGTH: 108DATA_LENGTH: 368MAX_DATA_LENGTH: 281474976710655INDEX_LENGTH: 2048DATA_FREE: 260AUTO_INCREMENT: NULLCREATE_TIME: 2011-03-31 09:53:36UPDATE_TIME: 2013-01-14 07:11:49CHECK_TIME: NULLTABLE_COLLATION: utf8_binCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT: Users and global privileges*************************** 62. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: performance_schemaTABLE_NAME: cond_instancesTABLE_TYPE: BASE TABLEENGINE: PERFORMANCE_SCHEMAVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 1000AVG_ROW_LENGTH: 0DATA_LENGTH: 0
  112. 112. 111MAX_DATA_LENGTH: 0INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT:*************************** 63. row ***************************TABLE_CATALOG: defTABLE_SCHEMA: performance_schemaTABLE_NAME: events_waits_currentTABLE_TYPE: BASE TABLEENGINE: PERFORMANCE_SCHEMAVERSION: 10ROW_FORMAT: DynamicTABLE_ROWS: 1000AVG_ROW_LENGTH: 0DATA_LENGTH: 0MAX_DATA_LENGTH: 0INDEX_LENGTH: 0DATA_FREE: 0AUTO_INCREMENT: NULLCREATE_TIME: NULLUPDATE_TIME: NULLCHECK_TIME: NULLTABLE_COLLATION: utf8_general_ciCHECKSUM: NULLCREATE_OPTIONS:TABLE_COMMENT:*************************** 64. row ***************************

×