Blog

Page 335 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Change MySQL default character set to UTF-8 in my.cnf?
mysql

Change MySQL default character set to UTF-8 in my.cnf?

Published on September 2, 2023

## Changing MySQL Default Character Set to UTF-8 in my.cnf Are you tired of using extra commands in your PHP application to set the character set to UTF-8? 😩 Well, what if I told you there's a way to set it as the default setting in MySQL itself? šŸŽ‰ In t

Cover Image for Compare two MySQL databases
mysql

Compare two MySQL databases

Published on September 2, 2023

# Comparing MySQL Databases Made Easy šŸ˜Ž So you're developing an application using a MySQL database, and you're faced with the challenge of comparing two instances of the database to see if there were any changes. Don't worry, we've got your back! In this

Cover Image for How to best display in Terminal a MySQL SELECT returning too many fields?
command-linemysql

How to best display in Terminal a MySQL SELECT returning too many fields?

Published on September 2, 2023

# How to Best Display in Terminal a MySQL SELECT Returning Too Many Fields? Are you struggling with displaying a MySQL SELECT query with too many fields in your terminal? Do the wrapped fields make it difficult to align columns and values? Don't worry, we

Cover Image for What column type/length should I use for storing a Bcrypt hashed password in a Database?
hashmysqltypes

What column type/length should I use for storing a Bcrypt hashed password in a Database?

Published on September 2, 2023

# Choosing the Right Column Type and Length for Storing Bcrypt Hashed Passwords in a Database šŸ”’ So, you want to securely store your users' passwords in a database using Bcrypt hashing algorithm. Great choice! Bcrypt is a widely accepted algorithm for pas

Cover Image for Downloading MySQL dump from command line
command-linecommand-line-argumentsmysql

Downloading MySQL dump from command line

Published on September 2, 2023

šŸ“ **Title:** Downloading MySQL Dump from Command Line: A Noob-Friendly Guide šŸ‘‹ Hey there, fellow tech enthusiasts! Are you feeling stuck in a Linux sysadmin maze? 🐁 Well, fear not! Today, I'm here to help you out with a common question: "How can I down

Cover Image for Get current AUTO_INCREMENT value for any table
mysql

Get current AUTO_INCREMENT value for any table

Published on September 2, 2023

## Getting the Current AUTO_INCREMENT Value for Any Table in MySQL šŸ”„šŸ”¢ Are you facing the perplexing puzzle of retrieving the current AUTO_INCREMENT value for a table in MySQL? Don't worry, you're not alone! This common issue can often leave even the mos

Cover Image for MySQL vs MongoDB 1000 reads
mongodbmysqlperformance

MySQL vs MongoDB 1000 reads

Published on September 2, 2023

# MySQL vs MongoDB: 1000 Reads Are you wondering whether MySQL or MongoDB is the better choice for your read-intensive tasks? šŸ¤” I recently ran a test to compare the speed of these two databases by retrieving and printing 15 randomly selected records fro

Cover Image for How to see full query from SHOW PROCESSLIST?
mysql

How to see full query from SHOW PROCESSLIST?

Published on September 2, 2023

šŸ‘‹ Hey there! Welcome to my tech blog, where I'm all about making complex tech problems feel like a piece of šŸ°! Today, we're diving into the world of MySQL queries and tackling the common issue of not being able to see the full query from a `SHOW PROCESSL

Cover Image for Suppress warning messages using mysql from within Terminal, but password written in bash script
mysqlshell

Suppress warning messages using mysql from within Terminal, but password written in bash script

Published on September 2, 2023

# How to Suppress Warning Messages in MySQL when Using Password from a Bash Script Are you tired of seeing those annoying warning messages in your Terminal when running a MySQL command using a password stored in a bash script? šŸ™„ We've got you covered! In

Cover Image for How to get UTF-8 working in Java webapps?
javamysql

How to get UTF-8 working in Java webapps?

Published on September 2, 2023

šŸ”„šŸŒ How to Get UTF-8 Working in Java Webapps: A Simple Guide šŸŒšŸ”„ So, you're facing an issue with getting UTF-8 working in your Java webapp? No worries, we've got your back! šŸ™Œ First things first, let's address the common issues you might encounter: 1ļø