How can I disable MySQL Strict Mode?

This is enabled by default, but you can disable it in one of a couple ways. First, verify which mode(s) MYSQL is running with: $ mysql -u root -p -e "SHOW VARIABLES LIKE 'sql_mode';" You'll need to replace root with whatever username has superuser permissions on your server (but, it's usually just root). You'll also be prompted for the password. This will print out something like this (but much prettier): sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_D ...

View More
  Dibaca 2586 kali

Query untuk Mencari Data yang Dobel di Database

Cara cari data double Untuk mencari data yang dobel dalam sebuah database kita bisa menggunakan sebuah query sederhana yang bisa kita implementasikan antara lain di MySQL dan MS SQL (saya belum pernah menggunakan database lain seperti Oracle, atau PostgreSQL yang juga banyak digunakan orang). Sebagai contoh, saya memiliki sebuah tabel berisi data buku perpustakaan bernama tblBuku dengan field JudulBuku, NomorRegistrasi dan TanggalMasuk. Suatu ketika terjadi kesalahan pengisian data sehingga ada ...

View More
  Dibaca 37 kali

Reset the MySQL OR MariaDB Root Password

To change the MySQL/MariaDB root password, follow these steps: Ensure that the MySQL/MariaDB server is running. Open a new Linux terminal. Use the mysqladmin command-line utility to alter the MySQL/MariaDB password, using the following syntax: mysqladmin --user=root password "newpassword"OR ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("verysecret") ...

View More
  Dibaca 2125 kali

MySQL: ERROR 1040: Too many connections

This basically tells that MySQL handles the maximum number of connections simultaneously and by default it handles 100 connections simultaneously. These following reasons cause MySQL to run out connections. Slow Queries Data Storage Techniques Bad MySQL configuration I was able to overcome this issues by doing the followings. Open MySQL command line tool and type, show variables like "max_connections"; This will return you something like this. +-----------------+----- ...

View More
  Dibaca 2011 kali