{"id":902,"date":"2010-09-17T03:23:41","date_gmt":"2010-09-17T03:23:41","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=902"},"modified":"2010-09-17T04:42:07","modified_gmt":"2010-09-17T04:42:07","slug":"what-are-mysql-frequently-used-commands","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2010\/09\/what-are-mysql-frequently-used-commands\/","title":{"rendered":"MySql frequently used commands?"},"content":{"rendered":"<div class=\"boxcenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-910\" title=\"phpmind-mysql\" src=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/09\/phpmind-mysql.gif\" alt=\"\" width=\"321\" height=\"159\" srcset=\"https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/09\/phpmind-mysql.gif 321w, https:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/09\/phpmind-mysql-300x148.gif 300w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/>MySQL is one of the best and globally used database. It will be good to learn the basic commands in Mysql to work interactively with the website and database servers. It is an GPL software as well as paid version is available with support. MySQL uses Structured Query Language (SQL-pronounced sequel), here i have listed mostly used commands\u00a0 for requesting information from a database.\u00a0 Mysql sends each SQL statement that you issue to the server to be executed.\u00a0 Because of its fast performance, reliability, ease of use, and versatility in working with programming languages NASA, FedEx, Yahoo other big php application are using mysql as backend.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-915\" title=\"phpmind-terminal\" src=\"http:\/\/www.phpmind.com\/blog\/wp-content\/uploads\/2010\/09\/phpmind-terminal1.png\" alt=\"\" width=\"128\" height=\"103\" \/>This is a list of handy MySQL mysql-textboxs that I use time and time again. At the bottom are statements, clauses, and functions you can use in MySQL. Below that are PHP\u00a0 functions you can use to interface with MySQL.<\/p>\n<p>Below when you see # it means from the unix shell. When you see mysql&gt; it means from a MySQL prompt after logging into MySQL.<\/p>\n<h4>To login (from unix shell) use -h only if needed.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysql -h hostname -u root -p<\/p>\n<h4>Create a database on the sql server.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; create database [databasename];<\/p>\n<h4>List all databases on the sql server.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; show databases;<\/p>\n<h4>Switch to a database.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; use [db name];<\/p>\n<h4>To see all the tables in the db.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; show tables;<\/p>\n<h4>To see database&#8217;s field formats.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; describe [table name];<\/p>\n<h4>To delete a db.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; drop database [database name];<\/p>\n<h4>To delete a table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; drop table [table name];<\/p>\n<h4>Show all data in a table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name];<\/p>\n<h4>Returns the columns and column information pertaining to the designated table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; show columns from [table name];<\/p>\n<h4>Show certain selected rows with the value &#8220;whatever&#8221;.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE [field name] = &#8220;whatever&#8221;;<\/p>\n<h4>Show all records containing the name &#8220;Bob&#8221; AND the phone number &#8216;3444444&#8217;.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE name = &#8220;Bob&#8221; AND phone_number = &#8216;3444444&#8217;;<\/p>\n<h4>Show all records not containing the name &#8220;Bob&#8221; AND the phone number &#8216;3444444&#8217; order by the phone_number field.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE name != &#8220;Bob&#8221; AND phone_number = &#8216;3444444&#8217; order by phone_number;<\/p>\n<h4>Show all records starting with the letters &#8216;bob&#8217; AND the phone number &#8216;3444444&#8217;.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE name like &#8220;Bob%&#8221; AND phone_number = &#8216;3444444&#8217;;<\/p>\n<h4>Show all records starting with the letters &#8216;bob&#8217; AND the phone number &#8216;3444444&#8217; limit to records 1 through 5.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE name like &#8220;Bob%&#8221; AND phone_number = &#8216;3444444&#8217; limit 1,5;<\/p>\n<h4>Use a regular expression to find records. Use &#8220;REGEXP BINARY&#8221; to force case-sensitivity. This finds any record beginning with a.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT * FROM [table name] WHERE rec RLIKE &#8220;^a&#8221;;<\/p>\n<h4>Show unique records.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT DISTINCT [column name] FROM [table name];<\/p>\n<h4>Show selected records sorted in an ascending (asc) or descending (desc).<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC;<\/p>\n<h4>Return number of rows.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT COUNT(*) FROM [table name];<\/p>\n<h4>Sum column.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; SELECT SUM(*) FROM [table name];<\/p>\n<h4>Join tables on common columns.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on<br \/>\nlookup.personid=person.personid=statement to join birthday in person table with primary illustration id;<\/p>\n<h4>Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.<\/h4>\n<p class=\"mysql-textbox\"># mysql -u root -p<\/p>\n<p>mysql&gt; use mysql;<\/p>\n<p>mysql&gt; INSERT INTO user (Host,User,Password) VALUES(&#8216;%&#8217;,&#8217;username&#8217;,PASSWORD(&#8216;password&#8217;));<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<h4>Change a users password from unix shell.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysqladmin -u username -h hostname.blah.org -p password &#8216;new-password&#8217;<\/p>\n<h4>Change a users password from MySQL prompt. Login as root. Set the password. Update privs.<\/h4>\n<p class=\"mysql-textbox\"># mysql -u root -p<\/p>\n<p>mysql&gt; SET PASSWORD FOR &#8216;user&#8217;@&#8217;hostname&#8217; = PASSWORD(&#8216;passwordhere&#8217;);<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<h4>Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables.<br \/>\nLogin to MySQL as root. Set new password. Exit MySQL and restart MySQL server.<\/h4>\n<p class=\"mysql-textbox\"># \/etc\/init.d\/mysql stop<\/p>\n<p># mysqld_safe &#8211;skip-grant-tables &amp;<\/p>\n<p># mysql -u root<\/p>\n<p>mysql&gt; use mysql;<\/p>\n<p>mysql&gt; update user set password=PASSWORD(&#8220;newrootpassword&#8221;) where User=&#8217;root&#8217;;<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<p>mysql&gt; quit<\/p>\n<p># \/etc\/init.d\/mysql stop<\/p>\n<p># \/etc\/init.d\/mysql start<\/p>\n<h4>Set a root password if there is on root password.<\/h4>\n<p class=\"mysql-textbox\"># mysqladmin -u root password newpassword<\/p>\n<h4>Update a root password.<\/h4>\n<p class=\"mysql-textbox\"># mysqladmin -u root -p oldpassword newpassword<\/p>\n<h4>Allow the user &#8220;bob&#8221; to connect to the server from localhost using the password &#8220;passwd&#8221;.<br \/>\nLogin as root. Switch to the MySQL db. Give privs. Update privs.<\/h4>\n<p class=\"mysql-textbox\"># mysql -u root -p<\/p>\n<p>mysql&gt; use mysql;<\/p>\n<p>mysql&gt; grant usage on *.* to bob@localhost identified by &#8216;passwd&#8217;;<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<h4>Give user privilages for a db. Login as root. Switch to the MySQL db. Grant privs. Update privs.<\/h4>\n<p class=\"mysql-textbox\"># mysql -u root -p<\/p>\n<p>mysql&gt; use mysql;<\/p>\n<p>mysql&gt; INSERT INTO db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) VALUES<br \/>\n(&#8216;%&#8217;,&#8217;databasename&#8217;,&#8217;username&#8217;,&#8217;Y&#8217;,&#8217;Y&#8217;,&#8217;Y&#8217;,&#8217;Y&#8217;,&#8217;Y&#8217;,&#8217;N&#8217;);<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<p>or<\/p>\n<p>mysql&gt; grant all privileges on databasename.* to username@localhost;<\/p>\n<p>mysql&gt; flush privileges;<\/p>\n<h4>To update info already in a table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; UPDATE [table name] SET Select_priv = &#8216;Y&#8217;,Insert_priv = &#8216;Y&#8217;,Update_priv = &#8216;Y&#8217; where [field name] = &#8216;user&#8217;;<\/p>\n<h4>Delete a row(s) from a table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; DELETE from [table name] where [field name] = &#8216;whatever&#8217;;<\/p>\n<h4>Update database permissions\/privilages.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; flush privileges;<\/p>\n<h4>Delete a column.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] drop column [column name];<\/p>\n<h4>Add a new column to db.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] add column [new column name] varchar (20);<\/p>\n<h4>Change column name.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] change [old column name] [new column name] varchar (50);<\/p>\n<h4>Make a unique column so you get no dupes.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] add unique ([column name]);<\/p>\n<h4>Make a column bigger.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] modify [column name] VARCHAR(3);<\/p>\n<h4>Delete unique from table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; alter table [table name] drop index [colmn name];<\/p>\n<h4>Load a CSV file into a table.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; LOAD DATA INFILE &#8216;\/tmp\/filename.csv&#8217; replace INTO TABLE [table name] FIELDS TERMINATED BY &#8216;,&#8217; LINES TERMINATED BY &#8216;\\n&#8217; (field1,field2,field3);<\/p>\n<h4>Dump all databases for backup. Backup file is sql mysql-textboxs to recreate all db&#8217;s.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysqldump -u root -ppassword &#8211;opt &gt;\/tmp\/alldatabases.sql<\/p>\n<h4>Dump one database for backup.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysqldump -u username -ppassword &#8211;databases databasename &gt;\/tmp\/databasename.sql<\/p>\n<h4>Dump a table from a database.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysqldump -c -u username -ppassword databasename tablename &gt; \/tmp\/databasename.tablename.sql<\/p>\n<h4>Restore database (or database table) from backup.<\/h4>\n<p class=\"mysql-textbox\"># [mysql dir]\/bin\/mysql -u username -ppassword databasename &lt; \/tmp\/databasename.sql<\/p>\n<h4>Create Table Example 1.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; CREATE TABLE [table name] (firstname VARCHAR(20), middleinitial VARCHAR(3), lastname VARCHAR(35),suffix VARCHAR(3),officeid VARCHAR(10),userid<br \/>\nVARCHAR(15),username VARCHAR(8),email VARCHAR(35),phone VARCHAR(25), groups VARCHAR(15),datestamp DATE,timestamp time,pgpemail VARCHAR(255));<\/p>\n<h4>Create Table Example 2.<\/h4>\n<p class=\"mysql-textbox\">mysql&gt; create table [table name] (personid int(50) not null auto_increment primary key,firstname varchar(35),middlename varchar(50),lastnamevarchar(50) default<br \/>\n&#8216;bato&#8217;);<\/p>\n<table border=\"0\" cellspacing=\"2\" cellpadding=\"4\" width=\"100%\">\n<tbody>\n<tr>\n<td class=\"mysql-textbox\" width=\"33%\"><strong>MYSQL Statements and clauses<\/strong><\/td>\n<td class=\"mysql-textbox\" width=\"32%\"><strong>String Functions<\/strong><\/td>\n<td class=\"mysql-textbox\" width=\"35%\"><strong>Date and Time Functions<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\" align=\"left\" valign=\"top\">ALTER DATABASE<\/p>\n<p>ALTER TABLE<\/p>\n<p>ALTER VIEW<\/p>\n<p>ANALYZE TABLE<\/p>\n<p>BACKUP TABLE<\/p>\n<p>CACHE INDEX<\/p>\n<p>CHANGE MASTER TO<\/p>\n<p>CHECK TABLE<\/p>\n<p>CHECKSUM TABLE<\/p>\n<p>COMMIT<\/p>\n<p>CREATE DATABASE<\/p>\n<p>CREATE INDEX<\/p>\n<p>CREATE TABLE<\/p>\n<p>CREATE VIEW<\/p>\n<p>DELETE<\/p>\n<p>DESCRIBE<\/p>\n<p>DO<\/p>\n<p>DROP DATABASE<\/p>\n<p>DROP INDEX<\/p>\n<p>DROP TABLE<\/p>\n<p>DROP USER<\/p>\n<p>DROP VIEW<\/p>\n<p>EXPLAIN<\/p>\n<p>FLUSH<\/p>\n<p>GRANT<\/p>\n<p>HANDLER<\/p>\n<p>INSERT<\/p>\n<p>JOIN<\/p>\n<p>KILL<\/p>\n<p>LOAD DATA FROM MASTER<\/p>\n<p>LOAD DATA INFILE<\/p>\n<p>LOAD INDEX INTO CACHE<\/p>\n<p>LOAD TABLE&#8230;FROM MASTER<\/p>\n<p>LOCK TABLES<\/p>\n<p>OPTIMIZE TABLE<\/p>\n<p>PURGE MASTER LOGS<\/p>\n<p>RENAME TABLE<\/p>\n<p>REPAIR TABLE<\/p>\n<p>REPLACE<\/p>\n<p>RESET<\/p>\n<p>RESET MASTER<\/p>\n<p>RESET SLAVE<\/p>\n<p>RESTORE TABLE<\/p>\n<p>REVOKE<\/p>\n<p>ROLLBACK<\/p>\n<p>ROLLBACK TO SAVEPOINT<\/p>\n<p>SAVEPOINT<\/p>\n<p>SELECT<\/p>\n<p>SET<\/p>\n<p>SET PASSWORD<\/p>\n<p>SET SQL_LOG_BIN<\/p>\n<p>SET TRANSACTION<\/p>\n<p>SHOW BINLOG EVENTS<\/p>\n<p>SHOW CHARACTER SET<\/p>\n<p>SHOW COLLATION<\/p>\n<p>SHOW COLUMNS<\/p>\n<p>SHOW CREATE DATABASE<\/p>\n<p>SHOW CREATE TABLE<\/p>\n<p>SHOW CREATE VIEW<\/p>\n<p>SHOW DATABASES<\/p>\n<p>SHOW ENGINES<\/p>\n<p>SHOW ERRORS<\/p>\n<p>SHOW GRANTS<\/p>\n<p>SHOW INDEX<\/p>\n<p>SHOW INNODB STATUS<\/p>\n<p>SHOW LOGS<\/p>\n<p>SHOW MASTER LOGS<\/p>\n<p>SHOW MASTER STATUS<\/p>\n<p>SHOW PRIVILEGES<\/p>\n<p>SHOW PROCESSLIST<\/p>\n<p>SHOW SLAVE HOSTS<\/p>\n<p>SHOW SLAVE STATUS<\/p>\n<p>SHOW STATUS<\/p>\n<p>SHOW TABLE STATUS<\/p>\n<p>SHOW TABLES<\/p>\n<p>SHOW VARIABLES<\/p>\n<p>SHOW WARNINGS<\/p>\n<p>START SLAVE<\/p>\n<p>START TRANSACTION<\/p>\n<p>STOP SLAVE<\/p>\n<p>TRUNCATE TABLE<\/p>\n<p>UNION<\/p>\n<p>UNLOCK TABLES<\/p>\n<p>USE<\/td>\n<td width=\"32%\" align=\"left\" valign=\"top\">AES_DECRYPT<\/p>\n<p>AES_ENCRYPT<\/p>\n<p>ASCII<\/p>\n<p>BIN<\/p>\n<p>BINARY<\/p>\n<p>BIT_LENGTH<\/p>\n<p>CHAR<\/p>\n<p>CHAR_LENGTH<\/p>\n<p>CHARACTER_LENGTH<\/p>\n<p>COMPRESS<\/p>\n<p>CONCAT<\/p>\n<p>CONCAT_WS<\/p>\n<p>CONV<\/p>\n<p>DECODE<\/p>\n<p>DES_DECRYPT<\/p>\n<p>DES_ENCRYPT<\/p>\n<p>ELT<\/p>\n<p>ENCODE<\/p>\n<p>ENCRYPT<\/p>\n<p>EXPORT_SET<\/p>\n<p>FIELD<\/p>\n<p>FIND_IN_SET<\/p>\n<p>HEX<\/p>\n<p>INET_ATON<\/p>\n<p>INET_NTOA<\/p>\n<p>INSERT<\/p>\n<p>INSTR<\/p>\n<p>LCASE<\/p>\n<p>LEFT<\/p>\n<p>LENGTH<\/p>\n<p>LOAD_FILE<\/p>\n<p>LOCATE<\/p>\n<p>LOWER<\/p>\n<p>LPAD<\/p>\n<p>LTRIM<\/p>\n<p>MAKE_SET<\/p>\n<p>MATCH AGAINST<\/p>\n<p>MD5<\/p>\n<p>MID<\/p>\n<p>OCT<\/p>\n<p>OCTET_LENGTH<\/p>\n<p>OLD_PASSWORD<\/p>\n<p>ORD<\/p>\n<p>PASSWORD<\/p>\n<p>POSITION<\/p>\n<p>QUOTE<\/p>\n<p>REPEAT<\/p>\n<p>REPLACE<\/p>\n<p>REVERSE<\/p>\n<p>RIGHT<\/p>\n<p>RPAD<\/p>\n<p>RTRIM<\/p>\n<p>SHA<\/p>\n<p>SHA1<\/p>\n<p>SOUNDEX<\/p>\n<p>SPACE<\/p>\n<p>STRCMP<\/p>\n<p>SUBSTRING<\/p>\n<p>SUBSTRING_INDEX<\/p>\n<p>TRIM<\/p>\n<p>UCASE<\/p>\n<p>UNCOMPRESS<\/p>\n<p>UNCOMPRESSED_LENGTH<\/p>\n<p>UNHEX<\/p>\n<p>UPPER<\/td>\n<td width=\"35%\" align=\"left\" valign=\"top\">ADDDATE<\/p>\n<p>ADDTIME<\/p>\n<p>CONVERT_TZ<\/p>\n<p>CURDATE<\/p>\n<p>CURRENT_DATE<\/p>\n<p>CURRENT_TIME<\/p>\n<p>CURRENT_TIMESTAMP<\/p>\n<p>CURTIME<\/p>\n<p>DATE<\/p>\n<p>DATE_ADD<\/p>\n<p>DATE_FORMAT<\/p>\n<p>DATE_SUB<\/p>\n<p>DATEDIFF<\/p>\n<p>DAY<\/p>\n<p>DAYNAME<\/p>\n<p>DAYOFMONTH<\/p>\n<p>DAYOFWEEK<\/p>\n<p>DAYOFYEAR<\/p>\n<p>EXTRACT<\/p>\n<p>FROM_DAYS<\/p>\n<p>FROM_UNIXTIME<\/p>\n<p>GET_FORMAT<\/p>\n<p>HOUR<\/p>\n<p>LAST_DAY<\/p>\n<p>LOCALTIME<\/p>\n<p>LOCALTIMESTAMP<\/p>\n<p>MAKEDATE<\/p>\n<p>MAKETIME<\/p>\n<p>MICROSECOND<\/p>\n<p>MINUTE<\/p>\n<p>MONTH<\/p>\n<p>MONTHNAME<\/p>\n<p>NOW<\/p>\n<p>PERIOD_ADD<\/p>\n<p>PERIOD_DIFF<\/p>\n<p>QUARTER<\/p>\n<p>SEC_TO_TIME<\/p>\n<p>SECOND<\/p>\n<p>STR_TO_DATE<\/p>\n<p>SUBDATE<\/p>\n<p>SUBTIME<\/p>\n<p>SYSDATE<\/p>\n<p>TIME<\/p>\n<p>TIMEDIFF<\/p>\n<p>TIMESTAMP<\/p>\n<p>TIMESTAMPDIFF<\/p>\n<p>TIMESTAMPADD<\/p>\n<p>TIME_FORMAT<\/p>\n<p>TIME_TO_SEC<\/p>\n<p>TO_DAYS<\/p>\n<p>UNIX_TIMESTAMP<\/p>\n<p>UTC_DATE<\/p>\n<p>UTC_TIME<\/p>\n<p>UTC_TIMESTAMP<\/p>\n<p>WEEK<\/p>\n<p>WEEKDAY<\/p>\n<p>WEEKOFYEAR<\/p>\n<p>YEAR<\/p>\n<p>YEARWEEK<\/td>\n<\/tr>\n<tr>\n<td width=\"33%\"><\/td>\n<td width=\"32%\"><\/td>\n<td width=\"35%\"><\/td>\n<\/tr>\n<tr>\n<td width=\"33%\"><\/td>\n<td width=\"32%\"><\/td>\n<td width=\"35%\"><\/td>\n<\/tr>\n<tr>\n<td class=\"mysql-textbox\" width=\"33%\" align=\"left\" valign=\"top\"><strong>Mathematical and Aggregate Functions<\/strong><\/td>\n<td class=\"mysql-textbox\" width=\"32%\" align=\"left\" valign=\"top\"><strong>Flow Control Functions\/Command-Line Utilities<\/strong><\/td>\n<td class=\"mysql-textbox\" width=\"35%\" align=\"left\" valign=\"top\"><strong>PHP API &#8211; using functions built into PHP with MySQL<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\">ABS<\/p>\n<p>ACOS<\/p>\n<p>ASIN<\/p>\n<p>ATAN<\/p>\n<p>ATAN2<\/p>\n<p>AVG<\/p>\n<p>BIT_AND<\/p>\n<p>BIT_OR<\/p>\n<p>BIT_XOR<\/p>\n<p>CEIL<\/p>\n<p>CEILING<\/p>\n<p>COS<\/p>\n<p>COT<\/p>\n<p>COUNT<\/p>\n<p>CRC32<\/p>\n<p>DEGREES<\/p>\n<p>EXP<\/p>\n<p>FLOOR<\/p>\n<p>FORMAT<\/p>\n<p>GREATEST<\/p>\n<p>GROUP_CONCAT<\/p>\n<p>LEAST<\/p>\n<p>LN<\/p>\n<p>LOG<\/p>\n<p>LOG2<\/p>\n<p>LOG10<\/p>\n<p>MAX<\/p>\n<p>MIN<\/p>\n<p>MOD<\/p>\n<p>PI<\/p>\n<p>POW<\/p>\n<p>POWER<\/p>\n<p>RADIANS<\/p>\n<p>RAND<\/p>\n<p>ROUND<\/p>\n<p>SIGN<\/p>\n<p>SIN<\/p>\n<p>SQRT<\/p>\n<p>STD<\/p>\n<p>STDDEV<\/p>\n<p>SUM<\/p>\n<p>TAN<\/p>\n<p>TRUNCATE<\/p>\n<p>VARIANCE<\/td>\n<td align=\"left\" valign=\"top\">CASE<\/p>\n<p>IF<\/p>\n<p>IFNULL<\/p>\n<p>NULLIF<\/p>\n<p><strong>Command-Line Utilities<\/strong><\/p>\n<p>comp_err<\/p>\n<p>isamchk<\/p>\n<p>make_binary_distribution<\/p>\n<p>msql2mysql<\/p>\n<p>my_print_defaults<\/p>\n<p>myisamchk<\/p>\n<p>myisamlog<\/p>\n<p>myisampack<\/p>\n<p>mysqlaccess<\/p>\n<p>mysqladmin<\/p>\n<p>mysqlbinlog<\/p>\n<p>mysqlbug<\/p>\n<p>mysqlcheck<\/p>\n<p>mysqldump<\/p>\n<p>mysqldumpslow<\/p>\n<p>mysqlhotcopy<\/p>\n<p>mysqlimport<\/p>\n<p>mysqlshow<\/p>\n<p>perror<\/td>\n<td align=\"left\" valign=\"top\">mysql_affected_rows<\/p>\n<p>mysql_change_user<\/p>\n<p>mysql_client_encoding<\/p>\n<p>mysql_close<\/p>\n<p>mysql_connect<\/p>\n<p>mysql_create_db<\/p>\n<p>mysql_data_seek<\/p>\n<p>mysql_db_name<\/p>\n<p>mysql_db_query<\/p>\n<p>mysql_drop_db<\/p>\n<p>mysql_errno<\/p>\n<p>mysql_error<\/p>\n<p>mysql_escape_string<\/p>\n<p>mysql_fetch_array<\/p>\n<p>mysql_fetch_assoc<\/p>\n<p>mysql_fetch_field<\/p>\n<p>mysql_fetch_lengths<\/p>\n<p>mysql_fetch_object<\/p>\n<p>mysql_fetch_row<\/p>\n<p>mysql_field_flags<\/p>\n<p>mysql_field_len<\/p>\n<p>mysql_field_name<\/p>\n<p>mysql_field_seek<\/p>\n<p>mysql_field_table<\/p>\n<p>mysql_field_type<\/p>\n<p>mysql_free_result<\/p>\n<p>mysql_get_client_info<\/p>\n<p>mysql_get_host_info<\/p>\n<p>mysql_get_proto_info<\/p>\n<p>mysql_get_server_info<\/p>\n<p>mysql_info<\/p>\n<p>mysql_insert_id<\/p>\n<p>mysql_list_dbs<\/p>\n<p>mysql_list_fields<\/p>\n<p>mysql_list_processes<\/p>\n<p>mysql_list_tables<\/p>\n<p>mysql_num_fields<\/p>\n<p>mysql_num_rows<\/p>\n<p>mysql_pconnect<\/p>\n<p>mysql_ping<\/p>\n<p>mysql_query<\/p>\n<p>mysql_real_escape_string<\/p>\n<p>mysql_result<\/p>\n<p>mysql_select_db<\/p>\n<p>mysql_stat<\/p>\n<p>mysql_tablename<\/p>\n<p>mysql_thread_id<\/p>\n<p>mysql_unbuffered_query<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MySQL is one of the best and globally used database. It will be good to learn the basic commands in Mysql to work interactively with the website and database servers. It is an GPL software as well as paid version is available with support. MySQL uses Structured Query Language (SQL-pronounced sequel), here i have listed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":11,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/902\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}