This document provides a summary of MySQL commands in 3 parts. Part 1 covers general commands for databases, tables, data manipulation, and privileges. Commands include USE, SHOW, CREATE TABLE, INSERT, DELETE, GRANT, and REVOKE. The summary explains syntax, purpose, and common options for many basic MySQL statements.
A. Table Basic Data Types- Char, varchar/varchar2, long, number, Fixed Commands to create table Commands for table handling- Alter table, Drop table, Insert records B. Commands for record handling Update, Delete Select with operators like arithmetic, comparison, logical Query Expression operators Ordering the records with orderby Grouping the records C. SQL functions Date, Numeric, Character, conversion Group functions avg, max, min, sum, count Set operations- Union, Union all, intersect, minu
A. Table Basic Data Types- Char, varchar/varchar2, long, number, Fixed Commands to create table Commands for table handling- Alter table, Drop table, Insert records B. Commands for record handling Update, Delete Select with operators like arithmetic, comparison, logical Query Expression operators Ordering the records with orderby Grouping the records C. SQL functions Date, Numeric, Character, conversion Group functions avg, max, min, sum, count Set operations- Union, Union all, intersect, minu
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
Explained how to the handset on SQL. Explain what is a database. How to create database how to drop database how to create a table. Insert Primary Key, Foreign Key all the constraints, dates. It also explained about the Index.
My presentation for Drupal Developers Day 2012 @ Microsoft Office in Ayala Makati, Philippines. This will show you how to save Drupal views in code and convert it to custom module.
This presentation is part of our reports in our Operating System Concepts subject. Included in the presentation are topics about Installing Windows XP, Peer to peer networking, File Sharing, Printer Sharing and Net meeting configuration.
Drupal Checklist for Site Builder and Web adminAdolfo Nasol
I've discuss this presentation in the Business track of PhDrug : Philippine Drupal User Group DrupalCamp Manila Event this Feb 5 2011 in Makati Philippines
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Epistemic Interaction - tuning interfaces to provide information for AI support
Mysql cheatsheet
1. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
Short List of MySQL Commands
Conventions used here:
MySQL key words are shown in CAPS
User-specified names are in small letters
Optional items are enclosed in square brackets [ ]
Items in parentheses must appear in the command, along with the parentheses
Items that can be repeated as often as desired are indicated by an ellipsis ...
Quoting in MySQL statments
Don't quote database, table, or column names
Don't quote column types or modifiers
Don't quote numerical values
Quote (single or double) non-numeric values
Quote file names and passwords
User names are NOT quoted in GRANT or REVOKE statements, but they are
quoted in other statements.
General Commands
USE database_name
Change to this database. You need to change to some database when you first
connect to MySQL.
SHOW DATABASES
Lists all MySQL databases on the system.
SHOW TABLES [FROM database_name]
Lists all tables from the current database or from the database given in the
command.
DESCRIBE table_name
SHOW FIELDS FROM table_name
SHOW COLUMNS FROM table_name
1 of 6
http://danreb.com
Cavhost Web Solutions
2. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
These commands all give a list of all columns (fields) from the given table, along
with column type and other info.
SHOW INDEX FROM table_name
Lists all indexes from this tables.
SET PASSWORD=PASSWORD('new_password')
Allows the user to set his/her own password.
Table Commands
CREATE TABLE table_name (create_clause1, create_clause2, ...)
Creates a table with columns as indicated in the create clauses.
create_clause
column name followed by column type, followed optionally by modifiers. For
example, "gene_id INT AUTO_INCREMENT PRIMARY KEY" (without the quotes)
creates a column of type integer with the modifiers described below.
create_clause modifiers
AUTO_INCREMENT : each data record is assigned the next sequential
number when it is given a NULL value.
PRIMARY KEY : Items in this column have unique names, and the table is
indexed automatically based on this column. One column must be the
PRIMARY KEY, and only one column may be the PRIMARY KEY. This column
should also be NOT NULL.
NOT NULL : No NULL values are allowed in this column: a NULL generates
an error message as the data is inserted into the table.
DEFAULT value : If a NULL value is used in the data for this column, the
default value is entered instead.
DROP TABLE table_name
Removes the table from the database. Permanently! So be careful with this
command!
ALTER TABLE table_name ADD (create_clause1, create_clause2, ...)
Adds the listed columns to the table.
2 of 6
http://danreb.com
Cavhost Web Solutions
3. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
ALTER TABLE table_name DROP column_name
Drops the listed columns from the table.
ALTER TABLE table_name MODIFY create_clause
Changes the type or modifiers to a column. Using MODIFY means that the column
keeps the same name even though its type is altered. MySQL attempts to convert
the data to match the new type: this can cause problems.
ALTER TABLE table_name CHANGE column_name create_clause
Changes the name and type or modifiers of a column. Using CHANGE (instead of
MODIFY) implies that the column is getting a new name.
ALTER TABLE table_name ADD INDEX [index_name] (column_name1,
column_name2, ...)
CREATE INDEX index_name ON table_name (column_name1, column_name2, ...)
Adds an index to this table, based on the listed columns. Note that the order of the
columns is important, because additional indexes are created from all subsets of
the listed columns reading from left to write. The index name is optional if you
use ALTER TABLE, but it is necesary if you use CREATE INDEX. Rarely is the name
of an index useful (in my experience).
Data Commands
INSERT [INTO] table_name VALUES (value1, value2, ...)
Insert a complete row of data, giving a value (or NULL) for every column in the
proper order.
INSERT [INTO] table_name (column_name1, column_name2, ...) VALUES (value1,
value2, ...)
INSERT [INTO] table_name SET column_name1=value1, column_name2=value2,
...
Insert data into the listed columns only. Alternate forms, with the SET form
showing column assignments more explicitly.
INSERT [INTO] table_name (column_name1, column_name2, ...) SELECT
list_of_fields_from_another_table FROM other_table_name WHERE where_clause
3 of 6
http://danreb.com
Cavhost Web Solutions
4. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
Inserts the data resulting from a SELECT statement into the listed columns. Be
sure the number of items taken from the old table match the number of columns
they are put into!
DELETE FROM table_name WHERE where_clause
Delete rows that meet the conditions of the where_clause. If the WHERE statement
is omitted, the table is emptied, although its structure remains intact.
UPDATE table_name SET column_name1=value1, column_name2=value2, ...
[WHERE where_clause]
Alters the data within a column based on the conditions in the where_clause.
LOAD DATA LOCAL INFILE 'path to external file' INTO TABLE table_name
Loads data from the listed file into the table. The default assumption is that fields
in the file are separated by tabs, and each data record is separated from the others
by a newline. It also assumes that nothing is quoted: quote marks are considered
to be part of the data. Also, it assumes that the number of data fields matches the
number of table columns. Columns that are AUTO_INCREMENT should have NULL
as their value in the file.
LOAD DATA LOCAL INFILE 'path to external file' [FIELDS TERMINATED BY
'termination_character'] [FIELDS ENCLOSED BY 'quoting character'] [LINES
TERMINATED BY 'line termination character'] FROM table_name
Loads data from the listed file into the table, using the field termination character
listed (default is tab t), and/or the listed quoting character (default is nothing),
and/or the listed line termination chacracter (default is a newline n).
SELECT column_name1, column_name2, ... INTO OUTFILE 'path to external file'
[FIELDS TERMINATED BY 'termination_character'] [FIELDS ENCLOSED BY
'quoting character'] [LINES TERMINATED BY 'line termination character'] FROM
table_name [WHERE where_clause]
Allows you to move data from a table into an external file. The field and line
termination clauses are the same as for LOAD above. Several tricky features:
1. Note the positions of the table_name and where_clause, after the external file
is given.
2. You must use a complete path, not just a file name. Otherwise MySQL
attempts to write to the directory where the database is stored, where you
don't have permission to write.
3. The user who is writing the file is 'mysql', not you! This means that user
'mysql' needs permission to write to the directory you specify. The best way
4 of 6
http://danreb.com
Cavhost Web Solutions
5. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
to do that is to creat a new directory under your home directory, then change
the directory's permission to 777, then write to it. For example: mkdir
mysql_output, chmod 777 mysql_output.
Privilege Commands
Most of the commands below require MySQL root access
GRANT USAGE ON *.* TO user_name@localhost [IDENTIFIED BY 'password']
Creates a new user on MySQL, with no rights to do anything. The IDENTIFED BY
clause creates or changes the MySQL password, which is not necessarily the same
as the user's system password. The @localhost after the user name allows usage
on the local system, which is usually what we do; leaving this off allows the user
to access the database from another system. User name NOT in quotes.
GRANT SELECT ON *.* TO user_name@localhost
In general, unless data is supposed to be kept private, all users should be able to
view it. A debatable point, and most databases will only grant SELECT privileges
on particular databases. There is no way to grant privileges on all databses
EXCEPT specifically enumerated ones.
GRANT ALL ON database_name.* TO user_name@localhost
Grants permissions on all tables for a specific database (database_name.*) to a
user. Permissions are for: ALTER, CREATE, DELETE, DROP, INDEX, INSERT, SELECT,
UPDATE.
FLUSH PRIVILEGES
Needed to get updated privileges to work immediately. You need RELOAD
privileges to get this to work.
SET PASSWORD=PASSWORD('new_password')
Allows the user to set his/her own password.
REVOKE ALL ON [database_name.]* FROM user_name@localhost
Revokes all permissions for the user, but leaves the user in the MySQL database.
This can be done for all databases using "ON *", or for all tables within a specific
databse, using "ON database_name.*".
5 of 6
http://danreb.com
Cavhost Web Solutions
6. Adolfo Nasol
MYSQL CHEAT SHEET - PART 1
http://cavhost.com
DELETE FROM mysql.user WHERE user='user_name@localhost'
Removes the user from the database, which revokes all privileges. Note that the
user name is in quotes here.
UPDATE mysql.user SET password=PASSWORD('my_password') WHERE
user='user_name'
Sets the user's password. The PASSWORD function encrypts it; otherwise it will be
in plain text.
SELECT user, host, password, select_priv, insert_priv, shutdown_priv, grant_priv
FROM mysql.user
A good view of all users and their approximate privileges. If there is a password, it
will by an encrytped string; if not, this field is blank. Select is a very general
privlege; insert allows table manipulation within a database; shutdown allows
major system changes, and should only be usable by root; the ability to grant
permissions is separate from the others.
SELECT user, host, db, select_priv, insert_priv, grant_priv FROM mysql.db
View permissions for individual databases.
6 of 6
http://danreb.com
Cavhost Web Solutions