Skip to main content

Posts

MongoDB Compass

MongoDB Compass allows users to easily analyze and understand the contents of their data collections within MongoDB and perform queries, without requiring knowledge of MongoDB query syntax.

MongoDB Compass provides users with a graphical view of their MongoDB schema by randomly sampling a subset of documents from the collection. Sampling documents minimizes performance impact on the database and can produce results quickly.

Features of Compass

1.Real Time Server Stats.
2.View, add, and delete databases and collections.
3.View and interact with documents with full CRUD functionality.
4.Build and run ad hoc queries
5.View and optimize query performance with visual explain plans
6.Manage indexes: view stats, create, and delete.
7.Create and execute aggregation pipelines.

Thanks for reading Plz dont forget to like Facebook Page..
https://www.facebook.com/pages/Sql-DBAcoin/523110684456757
Recent posts

Lets Virtualize Data using PowerBI

It's my 2nd post on PowerBI and Data Virtualization. PowerBI is one of the most popular software as service for Data Virtualization. Today I am sharing how to embed the powerbi report with other external application like html page . To embed start with downloading powerbi.
1.) Download- Install PowerBi Desktop and start flying with Data. ·Install from Microsoft portal. ·Connect to heterogeneous data-sources data sources (structure, un-structure, data-warehouse, hadoop, Data Lake, aws s3, azure blob). ·Design and run a report (static and interactive quick and fast ). 2.) Enable Subscription on PowerBI cloud Service ·Signup of Powerbi Service app with pro subscription (60 Days trail) 3.) Backup to powerbi desktop and sign-in powerbi service account. ·After sign-in you will able see name on power-bi desktop. ·Publish report on workplace. 4.) Back to PowerBI cloud service. ·Review published report and there authorization and authentication . ·Review DataSet and DataSource(If you want to auto…

Step by Step publish PowerBI Dashboard with Postgres Data

Hi Friends,
After a month I am back on my Blog with Microsoft Modern Reporting environment PowerBI. Today I will share my post related to Powerbi and How I integrated powerbi with postgres sql database.
Basically, Power BI provides a set of tools to gather, prepare and interactively visualize and share data across your organization, in an optimal, secure way. You can create reports fast and easy, with enterprise-grade quality.  Power BI provides three main tools: data discovery, data preparation and data visualization.
In this tip we will show how Power BI works and how to create a simple report from scratch and the options available for creating reports.
How does Power BI work? According to this Microsoft documentation, Power BI consists of three parts: Power BI Desktop: to create reports in a friendly user interface.Power BI Service: a cloud SaaS used to publish and maintain reports via dashboards.Mobile Power BI: apps available for consuming reports on mobile devices.
Here is steps…

How to encrypt and decrypt Table data in postgres

For encrypting and decrypting , we must use the bytea data type on the column which we implement. Bcoz bytea will use the pgcrypto method by default.

However, you will need to create the pgcrypto extension to enable these functions as they are not pre-defined in PostgreSQL/PPAS.
Example
CREATE EXTENSION pgcrypto;
CREATE TABLE userinfo (username varchar(20), password bytea);
>>    Inserting the data in an encrypted format
INSERT INTO userinfo VALUES(' suman ',encrypt('111222','password','aes'));
select * from userinfo ;







>>    Retrieving the data as decrypted format
SELECT decrypt(password,decode('password','escape'::text),'aes'::text) FROM userinfo;


Thanks for reading Plz dont forget to like Facebook Page..
https://www.facebook.com/pages/Sql-DBAcoin/523110684456757

History of MySQL from AB Corp to Cloud Database

MySQL was created by a Swedish company, MySQL AB, founded by David Axmark, Allan Larsson and Michael "Monty" Widenius. Original development of MySQL by Widenius and Axmark began in 1994. The first version of MySQL appeared on 23 May 1995. Its name is a combination of "My", the name of co-founder Michael Widenius's daughter,and "SQL", the abbreviation for Structured Query Language.

·23 May 1995 - First internal release ·Year 1996 - Version 3 oSimple CRUD operations oJanuary 1997 Windows version was released on 8 January 1998 for Windows 95 and NT oproduction release 1998, from www.mysql.com
·Year 2002 - Version 4 oMyISAM ounions oTracking oB-trees osubqueries oprepared statements
·Year 2005 - Version 5.0 ocursors, stored procedures, triggers, views, oFederated Storage Engine oEvent scheduler, partitioning, plugin API, row-based replication, server log tables

Ignore a table from backup in mysql

Sometimes it happens that you need to ignore a table from backup due to any reason like
1. Table size is big, we keep log in that data.
2. Table that don't need to copy in backup.
3. Database copying from prod to test and some tables don't need in backup file.
Generally when we create backup in single dump file it consolidate all db schema and data and if we need to exclude any table of sets of tables, then we need to use "--ignore-table" clause in mysqldump command.

Syntax is as below.

mysqldump -h <host> -u <username> -p <schema> --no-create-info --ignore-table=schema.table1  > db-data.sql

Thanks for reading Plz dont forget to like Facebook Page.. https://www.facebook.com/pages/Sql-DBAcoin/523110684456757

How to grant all privileges in mysql8

Hello Friends,

How are you, hope you are doing good. Cold have been started in the country, specially northern India and I also started mysql 8.0 on AWS RDS instance. Yesterday I was trying to give full permission to new created user from all the IP in mysql 8, It started giving me error 1406. I was using below query to give permission, as the same we were using earlier in all versions.

grant all privileges on *.* to 'youngdbauser'@'%' with grant option;

Above query gives error 1406 in mysql 8.0. After lots of trying and dig inside error and mysql portal. Then I created user with full permission in create statement only. This is the new statement with create user which I seen in mysql document portal.

create user ''youngdbauser''@'%' identified by 'mypass';
grant all privileges on *.* to 'youngdbauser'@'%' with grant option;

It resolved my issue.

Summary : Now you can must specify the user's local during create statemen…