Skip to content

Some useful MySQL queries for ready reference

Finding non-unique values in a column: SELECT col_name, COUNT(col_name) FROM table_name GROUP BY col_name HAVING COUNT(col_name) > 1; ...

Details

How to integrate MySql database with Django?

Download & install latest available version XAMPP. Remember MySQL will integrate with Django only with MariaDB 10.4 or ...

Details

How to disable MySQL Strict Mode

Login to MySQL Server as ‘root’ user and run the following command. SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,’ONLY_FULL_GROUP_BY’,”))

Details

Allow access to remote mysql server

You have to put this as root: GRANT ALL PRIVILEGES ON *.* TO ‘USERNAME’@’IP’ IDENTIFIED BY ‘PASSWORD’ with ...

Details

How to import very large MySQL database in XAMPP

Certainly, this method is very helpful when you have a very heavy SQL file to be imported to ...

Details