Get Number of Active Connections in MySQL

Get Number of Active Connections in MySQL

Managing active connections in MySQL is crucial for database administrators to ensure optimal performance and resource allocation. Whether you're monitoring the server's health or troubleshooting performance issues, knowing how to...
Change User Password in MySQL

Change User Password in MySQL

The SET PASSWORD statement allows changing the password for a user in the MySQL server. Provided password is interpreted as a clear text string. The password is passed to the...
AES Encryption and Decryption in MySQL

AES Encryption and Decryption in MySQL

MySQL allows encrypting and decrypt data using the official AES (Advanced Encryption Standard) algorithm. The AES_ENCRYPT() function encrypts the string with the specified key and returns the encrypted data in...
Create User in MySQL

Create User in MySQL

The CREATE USER statement allows creating a new user in the MySQL server. Users are stored in the mysql.user system table. A newly created user has no privileges. The password...
Show Users in MySQL

Show Users in MySQL

When managing a database, it is often needed to get a list of users which are used to connect to the MySQL server. MySQL provides statements which allows showing databases...
Change Default Authentication Plugin in MySQL

Change Default Authentication Plugin in MySQL

In MySQL 8.0, the default authentication plugin is caching_sha2_password rather than mysql_native_password. If application get errors related with caching_sha2_password plugin, it is possible that connector does not support this plugin...