Access denied after setting user’s password with SHA256 in phpMyAdmin

MySQL has recently changed the default authentication type and, between MySQL and PHP, this change took quite a while to be supported by PHP. The old method was mysql_native_password and the new one is caching_sha2_password. PHP versions starting with 7.4 support the new method. Since this is related to PHP itself, phpMyAdmin supporting this method … Read more

How to SELECT DEFAULT value of a field

“SELECT $group FROM grouptable WHERE $group=DEFAULT( $group ) ” Or I think better: “SELECT DEFAULT( $group ) FROM grouptable LIMIT 1 ” Update – correction As @Jeff Caron pointed, the above will only work if there is at least 1 row in grouptable. If you want the result even if the grouptable has no rows, … Read more

#1045 – Access denied for user ‘root’@’localhost’ (using password: YES)

I first changed the root password running mysql at a prompt with mysql -u root -p Update password: UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=”root”; Edited line in the file config.inc.php with the new root password: $cfg[‘Servers’][$i][‘password’] = ‘MyNewPass’ Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat) and got phpMyAdmin to work! EDIT 2017: for MySQL≥5.7 … Read more

Can’t import database through phpmyadmin file size too large

For Upload large size data in using phpmyadmin Do following steps. Open php.ini file from C:\wamp\bin\apache\Apache2.4.4\bin Update following lines max_execution_time = 259200 max_input_time = 259200 memory_limit = 1000M upload_max_filesize = 750M post_max_size = 750M than after restart wamp server or restart all services Now Upload data using import function in phymyadmin. Apply second step if … Read more