[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573376-105":53,"doc-detail-573376-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","mariadb-standard-developer_cheat-sheet-mariadb-client-sql-commands","mariadb-standard-developer_cheat-sheet - MariaDB client - SQL commands","","A concise MariaDB standard developer cheat sheet focused on using the MariaDB command-line client to connect to a server, authenticate, and optionally select a specific database. It provides quick-reference SQL syntax for creating, altering, and dropping databases and tables, browsing schemas and fields, and performing core DML operations such as SELECT, INSERT, UPDATE, and DELETE. It also includes administrative tasks like listing users and creating, updating, and removing database users, plus connection options such as SSL and host/port parameters.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/mariadb-standard-developer_cheat-sheet-mariadb-client-sql-commands/573376/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/mariadb-standard-developer_cheat-sheet-mariadb-client-sql-commands/573376.png","ImageObject",442,249,{"name":88,"@type":89},"River Wang","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-18","2026-10-14",true,{"@type":98,"interactionType":99,"userInteractionCount":76},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"How do I connect to a MariaDB server using the command-line client?","Question",{"text":108,"@type":109},"Use mariadb with -u [username] -p to provide credentials, optionally add -h [host_address] and -P [port_], and include -D [database] to select a database. The page also lists mariadb --ssl for encrypted connections.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"What SQL commands are included for managing databases and tables?",{"text":113,"@type":109},"The sheet lists CREATE DATABASE, DROP DATABASE, CREATE TABLE, and DROP TABLE, plus ALTER TABLE variants for modifying, adding, and dropping columns.",{"name":115,"@type":106,"acceptedAnswer":116},"Which operations are covered for querying and changing data?",{"text":117,"@type":109},"It includes SELECT queries (including CROSS JOIN and LEFT JOIN with ON), sorting via ORDER BY, and data changes with INSERT INTO, UPDATE ... SET ... WHERE, and DELETE FROM ... WHERE.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573376,1792181325,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":76,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":135,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":61,"update_tm":139,"read_time":9},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","MARIADB STANDARD DEVELOPER  \nCHEAT SHEET  \nMARIADB CLIENT CLI  \nConnect and communicate with MariaDB using the MariaDB command-line client.  \nmariadb -u [username] -p  \nConnect to a MariaDB Server using a username and password (will prompt for password)  \nmariadb -u [username] -p [database]  \nmariadb -u [username] -p -D [database]  \nConnect to a MariaDB Server and specify a database. Note that the first free parameter will be treated as a DB name; the DB name can also be given with the-D flag.  \n\n| mariadb\u003Cbr>number] | -h | [host_address] | -P | [port_ |\n| --- | --- | --- | --- | --- |\n| Connect to a MariaDB Server by specifying the host address and port number (default 3306) |  |  |  |  |\n\nmariadb --ssl  \nConnect to a MariaDB Server with an encrypted connection.  \nCREATE / ALTER / DROP / REMOVE  \nConnect and communicate with MariaDB using the MariaDB command-line client.  \nCREATE DATABASE database_name;  \nCreate a database  \nDROP DATABASE [IF EXISTS] database_name;  \nDrop a database  \nCREATE TABLE [IF NOT EXISTS] table_name (  \nfield name field type  \n);  \nCreate a table  \nBROWSING  \nShow details of schemas, tables and fields.  \n| SHOW DATABASES; |\n| --- |\n| Show all available database in current MariaDB database server |\n| SHOW TABLES; |\n| Show all tables in a current database |\n| SHOW CREATE TABLE table_name; |\n| Show the create table statement that creates a specified table |\n\nSHOW FIELDS FROM table_name / DESCRIBE table_name;  \nShow the field information for a specified table  \nUSE database_name;  \nUse a database or change the current database to another database to use  \nSELECT  \nSelect data from a MariaDB table.  \n| SELECT * FROM table_name; |  |  |\n| --- | --- | --- |\n| Select all rows from a table |  |  |\n| SELECT column1, FROM table_name | column2, | … |\n| Select data from one or more columns |  |  |\n| DROP TABLE [IF EXISTS] table_name; |  |  |\n| Drop a table |  |  |\n| ALTER TABLE table_name MODIFY [COLUMN] field name field type [NOT NULL]; |  |  |\n| Modify an existing field |  |  |\n\nALTER TABLE table_name ADD [COLUMN] field name field type [NOT NULL];  \nAdd a new field to a table  \nMARIADB EDUCATION CHEAT SHEET  \nMARIADB STANDARD DEVELOPER  \nALTER TABLE table_name DROP [COLUMN] field name;  \nDrop a column from a table  \nORDER BY field name[, field name][ASC] |DESC;  \nSorting a result set  \nINSERT / UPDATE / DELETE  \nInserting, updating and deleting data within a MariaDB table  \n| INSERT INTO table name (field name [, field name, . . . ]) VALUES (value [, value, …]); |\n| --- |\n| Insert a row into a table |\n| UPDATE table name SET field name = value [, field name = value, …])[WHERE condition]; |\n| Update rows in a table |\n| DELETE FROM table_name [WHERE condition]; |\n| Delete rows from a table |\n| SELECT field list FROM table_name WHERE condition; |\n| Select data with a filter using a WHERE clause |\n| SELECT field list FROM table_name WHERE condition\u003Cbr>GROUP BY field name[, field name]; |\n| Grouping rows using the GROUP BY clause |\n\nSELECT field list  \nSELECT field list  \nFROM table_name_1 CROSS JOIN table_name_2;  \nSelect data from multiple tables using CROSS JOIN  \nSELECT-JOIN  \nSelect data by joining multiple tables  \nSELECT field list  \nFROM table_name_1 LEFT JOIN table_name_2 ON condition;  \nSelect data from multiple tables using LEFT JOIN  \nADMIN TASKS  \nPerform common admin tasks  \n| SELECT user,host FROM mysql .user; |  |\n| --- | --- |\n| List all users on the database instance |  |\n| CREATE USER user[@'host'] IDENTIFIED BY 'plain-textpassword'; |  |\n| Create a new user with a given password |  |\n| SET PASSWORD FOR user[@'host'] = PASSWORD('new-plain-textpassword'); |  |\n| Change the password for a user. Can also be done with ALTER USER |  |\n| DROP USER user[@'host'] |  |\n| Remove a user from the system |  |\n| CREATE DATABASE db_name |  |\n| Create a new, empty database with a given name |  |\n| GRANT ALL ON db name .* user[@'host'] | TO |\n| Grant all privileges on a given database to a particular user. |  |\n\nDR","cbCaijMVqJJCPkIj","https://ap.wps.com/l/cbCaijMVqJJCPkIj","pdf",776515,"English","# MariaDB Client CLI\n## Connection commands (host, port, database, SSL)\n## CREATE / ALTER / DROP / REMOVE\n## Browsing schemas, tables, and fields\n## USE database\n## SELECT and joins\n## INSERT / UPDATE / DELETE\n## Admin tasks (users, privileges)","[{\"question\":\"How do I connect to a MariaDB server using the command-line client?\",\"answer\":\"Use mariadb with -u [username] -p to provide credentials, optionally add -h [host_address] and -P [port_], and include -D [database] to select a database. The page also lists mariadb --ssl for encrypted connections.\"},{\"question\":\"What SQL commands are included for managing databases and tables?\",\"answer\":\"The sheet lists CREATE DATABASE, DROP DATABASE, CREATE TABLE, and DROP TABLE, plus ALTER TABLE variants for modifying, adding, and dropping columns.\"},{\"question\":\"Which operations are covered for querying and changing data?\",\"answer\":\"It includes SELECT queries (including CROSS JOIN and LEFT JOIN with ON), sorting via ORDER BY, and data changes with INSERT INTO, UPDATE ... SET ... WHERE, and DELETE FROM ... WHERE.\"}]","mariadb-standard-developer_cheat-sheet - MariaDB client - SQL commands | PDF",1791938482]