DeveloperBreeze

Sql Programming Tutorials, Guides & Best Practices

Explore 14+ expertly crafted sql tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

✅ How to Disable MySQL Password Validation on Ubuntu 25.04

Tutorial May 01, 2025

Check that the validation system is gone:

SHOW VARIABLES LIKE 'validate_password%';

How to Move the MySQL Data Directory to a New Location on Ubuntu 25.04

Tutorial May 01, 2025

mysql -u root -p -e "SHOW VARIABLES LIKE 'datadir';"

You should see:

How to Install PHP, MySQL, and phpMyAdmin on Ubuntu 25.04 (LAMP Stack Setup Guide)

Tutorial May 01, 2025

sudo apt install php php-cli php-mbstring php-xml php-bcmath php-curl php-mysql php-zip php-gd php-fpm unzip

Verify the PHP installation:

MySQL Cheatsheet: Comprehensive Guide with Examples

Cheatsheet August 20, 2024
mysql

No preview available for this content.

Selecting the Sum of a JSON Property in MySQL

Tutorial August 17, 2024
json mysql

  • JSON_EXTRACT(order_details, '$.quantity'): Extracts the value of the quantity key from the JSON order_details column.
  • JSON_UNQUOTE(...): Removes any quotes from the extracted JSON value.
  • CAST(... AS UNSIGNED): Converts the extracted value to an unsigned integer to allow for summation.
  • SUM(...): Sums all the quantities across the rows.

When you run the above query, MySQL will return the total quantity of products ordered by all customers: