[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572797-105":53,"doc-detail-572797-en":127},{"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":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","mysql-cheat-sheet-part-3-recommended-for-mastering-databases-basics","MySQL Cheat Sheet - Part 3 - Recommended for mastering databases basics","","MySQL Cheat Sheet provides a structured, practical guide to using MySQL for building and managing web databases. It covers essential setup steps such as establishing an active SSH session and connecting with root credentials, then proceeds to creating user accounts and databases, including deletion commands. The guide summarizes core SQL operations (SELECT, UPDATE, DELETE, INSERT, CREATE, ALTER, DROP) and shows how to work with tables and columns using commands like CREATE TABLE, SHOW TABLES, DESCRIBE, and DROP TABLE.",{"@graph":63,"@context":119},[64,80,102],{"@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":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/mysql-cheat-sheet-part-3-recommended-for-mastering-databases-basics/572797/",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/mysql-cheat-sheet-part-3-recommended-for-mastering-databases-basics/572797.png","ImageObject",442,249,{"name":88,"@type":89},"MrHarris58","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-19","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do you connect to MySQL for initial work?","Question",{"text":109,"@type":110},"Establish an active SSH session, then connect using a mysql command with the root username (and password switch if applicable).","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What commands create and delete MySQL users and databases?",{"text":114,"@type":110},"Create a user with CREATE USER ... IDENTIFIED BY ..., delete with DROP USER ...; create a database with CREATE DATABASE ..., and delete with DROP DATABASE ... .",{"name":116,"@type":107,"acceptedAnswer":117},"Which essential SQL commands are included in the cheat sheet?",{"text":118,"@type":110},"The cheat sheet summarizes SELECT, UPDATE, DELETE, INSERT INTO, CREATE DATABASE, ALTER DATABASE, CREATE TABLE, ALTER TABLE, and DROP TABLE, plus index commands like CREATE INDEX and DROP INDEX.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572797,1792086214,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":136,"language":137,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":61,"update_tm":141,"read_time":142},687212988360,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","1 2  \n3 4  \n5 6  \n7 8  \n9  \n10  \n11  \n12  \n13  \n14  \n15  \n//New methodchaining usedfor executing an SQL SELECT // Recommended way for executing queries var employees = db.getTable('employee'); [var](var res = employees.select)[ res = employees.](var res = employees.select)[select](var res = employees.select)(['name', 'age']). where('name like :param'). orderBy(['name']). bind('param', 'm%').execute();// Traditional SQL execution bypassing an SQL string //Itshould only be used when absolutely necessary var result = session.sql('SELECT name, age ' +'FROM employee ' +  \n'WHERE name like? ' +'ORDER BY name').bind('m%').execute();  \nstatement  \nMySQL  \nCheat Sheet  \nReady to advance your coding skills and master databases? Great! Then you will find our MySQL cheat sheet absolutely handy.  \nMySQL is a popular, open-source, relational database that you can use to build all sorts of web databases —from simple ones, cataloging some basic information like book recommendations to more complex data warehouses, hosting hundreds of thousands of records. Learning MySQL is a great next step for those who already know PHP or Perl. In this case, you can create websites that interact with a MySQL database in real-time and display searchable and categorized records to users.  \nSounds promising? Let’s jump in then!  \nTable of Contents  \n03 MySQL 101: Getting Started  \n03 How to Connect to MySQL  \n03 Create a new MySQL User Account  \n04 Create a New Database  \n04 Delete a MySQL Database  \n04 Essential MySQL Commands  \n05 Working with Tables  \n06 Working With Table Columns  \n08 Data Types  \n12 Working With Indexes  \n12 Working with Views  \n14 Working with Triggers  \n15 Stored Procedures for MySQL  \n16 Logical Operators  \n17 Aggregate Functions  \n18 Arithmetic, Bitwise, Comparison, and Compound Operators  \n18 SQL Database Backup Commands  \n18 Conclusions  \nMySQL Cheat Sheet 3  \nMySQL 101: Getting Started  \nSimilar to other programming languages like PHP, JavaScript, HTML, and jQuery, MySQL relies on commenting to execute any commands.  \nYou can write two types of comments in MySQL:  \n• Single-Line Comments: These start with “–”. Any text that goes after the dash and till the end of the line will not be taken into account by the compiler.  \nExample:  \n-Update all:  \nSELECT * FROM Movies;  \n• Multi-Line Comments: These start with /* and end with */. Again, any text that is beyond the slashes lines will be ignored by the compiler.  \nExample:  \n/*Select all the columns of all the records in the Movies table:*/ SELECT * FROM Movies;  \nKeeping this in mind, let’s get started with actual coding.  \nHow to Connect to MySQL  \nTo start working with MySQL, you’ll need to establish an active SSH session on your server.  \nmysql-u root-p  \nIf you didn’t set a password for your MySQL root user, you omit the-p switch.  \nCreate a new MySQL User Account  \nNext, you can create a new test user for practice. To do that, run the following command:  \nCREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘password’;  \nIf you need to delete a user later on you, use this command:  \nDROP USER ‘someuser’@’localhost’;  \n[WebsiteSetup.org](WebsiteSetup.org-MySQL Cheat Sheet)[-MySQL Cheat Sheet](WebsiteSetup.org-MySQL Cheat Sheet)   \nCreate a New Database  \nTo set up a new database use this line:  \nCREATE DATABASE yourcoolname  \nYou can then view all your databases with this command:  \nmysql> show databases;  \nLater on, you can quickly navigate to a particular database using this command:  \n[root@server ~]\\# mysql-u root-p mydatabase \u003C radius.sql  \nDelete a MySQL Database  \nTo get rid of a database just type:  \nDROP DATABASE dbName  \nIf you are done for the day, just type “exit” in the command line to finish your session.  \nEssential MySQL Commands  \nSELECT —choose specific data from your database UPDATE —update data in your database DELETE —deletes data from your database INSERT INTO —inserts new data into a database CREATE DATABASE —generate a new database ALTER DATABASE —modify an ex","cbCaidDlKLQs0got","https://ap.wps.com/l/cbCaidDlKLQs0got","pdf",366094,19,"English","# MySQL 101: Getting Started\n## How to Connect to MySQL\n## Create a new MySQL User Account\n## Create a New Database\n## Delete a MySQL Database\n## Essential MySQL Commands\n## Working with Tables\n## Working With Table Columns","[{\"question\":\"How do you connect to MySQL for initial work?\",\"answer\":\"Establish an active SSH session, then connect using a mysql command with the root username (and password switch if applicable).\"},{\"question\":\"What commands create and delete MySQL users and databases?\",\"answer\":\"Create a user with CREATE USER ... IDENTIFIED BY ..., delete with DROP USER ...; create a database with CREATE DATABASE ..., and delete with DROP DATABASE ... .\"},{\"question\":\"Which essential SQL commands are included in the cheat sheet?\",\"answer\":\"The cheat sheet summarizes SELECT, UPDATE, DELETE, INSERT INTO, CREATE DATABASE, ALTER DATABASE, CREATE TABLE, ALTER TABLE, and DROP TABLE, plus index commands like CREATE INDEX and DROP INDEX.\"}]","MySQL Cheat Sheet - Part 3 - Recommended for mastering databases basics | PDF",1791929297,7]