Use Where Clause in Cassandra - Cassandra / CQL Tutorial
How to use Where Clause in Cassandra (CQL)Where clause in Cassandra Query Language is used to filter the records. To filter the records, you will be using Partition Key ( Single or composite)A...
View ArticleUse Distinct in Cassandra - Cassandra / CQL Tutorial
How to use Distinct in Cassandra Query LanguageIn cassandra you can only select the distinct records from Partition Key column or columns. If Partition key consists of multiple columns, you have to...
View ArticleHow to Limit returned rows in Cassandra - Cassandra / CQL Tutorial
How to Limit returned rows in Cassandra Query LanguageYou can use LIMIT option in query to control the number of rows you want to get. Syntax:CQLSH:techbrotherstutorials>SELECT column1,...
View ArticleGet Row Count from Table in Cassandra - Cassandra / CQL Tutorial
How to get Row Count from Table in Cassandra by using CQLYou can use Count(*) for Count(1) to get row numbers from table. Syntax:SELECT Count(* |1 ) FROM tablename; Example:Let's create employee...
View ArticleHow to get Total CPUs on Linux VM
There are many commands can be used to get the CPU information on linux box. You can use any of below command to get the cpu count on linux box.$ cat /proc/cpuinfo | grep processor | wc -l $...
View ArticleHow to backup all Databases to single file in MySQL or MairaDB by using...
Scenario:You are working as MySQL/ MariaDB DBA, you have a MySQL or MariaDB service on which you have many databases, you need to take backup of all the databases in single file. Later this file can be...
View ArticleHow to get the file size in Megabytes ( MB ) in linux
Scenario:I need to get the size of files in a directory in MegaBytes (MB). Which command I can use to see the size of files in MB?Solution:When you run ls -la command in linux, it shows you the file...
View ArticleHow to monitor the progress of backup in MySQL or MariaDB
Scenario:I am taking backup of many databases in MySQL or MairaDB and I would like to monitor the progress of backups.Solution:Either MySQL or MariaDB does not provide direct way to monitor the...
View ArticleHow to drop multiple databases in MySQL or MariaDB
Scenario:You are working as MySQL or MariaDB DBA, you have created many databases for testing purpose. After testing you are asked to drop all of them, How would you do that?Solution:The below script...
View ArticleHow to Restore a database in MySQL or MariaDB
Scenario:You are working as MySQL or MariaDB Admin and you have taken the full backup of a database by using mysqldump utility, Now you need to restore that backup to database, how would you do...
View ArticleHow to create zipped Backup and Restored zipped Backup in MySQL or MariaDB
Scenario:You are working as MySQL or MariaDB Admin, You have some big databases those you would like to take backup. It is good idea to take compressed backups for large databases. How you would...
View ArticleRestore single MySQL table from a full mysqldump backup file
Scenario:You are working as MySQL/ MariaDB Admin, you have schedule daily full backup of a database. Once of the Junior DBA dropped the table from a database. You are asked to restore only single Table...
View ArticleHow to monitor the Restore progress in MySQL or MariaDB
Scenario:You are working as MySQL/ MariaDB database administrator. You need to restore / import large backup file to database and would like to monitor the progress of restore. Which tools you can use...
View ArticleRestoring a single database from a complete MySQL database dump
Scenario:You are working as MySQL / MariaDB database administrator. You are provided a complete MySQL or MariaDB database dump but you need to restore only one database out of entire database dump....
View ArticleWhat is Error Log and How to setup in MariaDB
Error LogThe error log contains a record of critical errors that occurred during the server's operation, table corruption, start and stop information.If the log-warnings server system variable is 1...
View ArticleWhat is General Query Log in MariaDB and How to Enable Query Logging in MariaDB
What is General Query Log in MariaDB The general query log is a log of every SQL query received from a client, as well as each client connect and disconnect.As it keep the records of every query it...
View ArticleHow to schedule backup Job for MariaDB or MySQL by using crontab
Scenario:you are working as MySQL or MariaDB admin and you need to schedule daily backups for a database.How will you schedule backup for MariaDB or MySQL database?Solution:Crontab can be used to...
View ArticleWhat is Slow Query Logging in MairaDB or MySQL and How to Enable Slow Query...
Slow Query Log⦁Slow query log stores the information for querys that took long time to run.Enable Slow Query Logging :For Stand Alone : Go to /etc/my.cnf and add below entriesslow_query_log =...
View ArticleHow to find data with Carriage Return in string in SQL Server
Scenario:You are working as SQL server DBA and you have a table Test with column Name , you need to find if Name column contain any data which has carriage return, how would you find string with...
View ArticleHow to download and Install Heidi SQL for MySQL or MariaDB - MariaDB Admin /...
Scenario:You are working as MySQL or MariaDB DBA, you been working on command line to run most of your tasks done. Which free Graphical User Interface tool you can use to perform DBA and Developer task...
View Article