onecentlin / laravel-adminer

Adminer database manager for Laravel 5+
MIT License
243 stars 45 forks source link

Update to Adminer 4.7.1 and use less-password plugin #3

Closed KinG-InFeT closed 4 years ago

KinG-InFeT commented 5 years ago

Hi, can you update adminer to 4.7.1? I have a ask, can i use plugin for less-password to connect DB without password?

thanks you

mattsches commented 5 years ago

+1 for updating Adminer to latest version.

KinG-InFeT commented 5 years ago

out 4.7.1

mattsches commented 5 years ago

Thank you! :grinning:

onecentlin commented 5 years ago

@KinG-InFeT and @mattsches laravel-adminer has been updated to 4.7.1, enjoy!!

KinG-InFeT commented 5 years ago

hi @onecentlin thank you for this update, can i use plugin for less-password to connect DB without password?

stephaniemartin commented 5 years ago

maybe it is not the best answer, but you can comment out adminer/include/adminer.inc.php like this: function login($login, $password) { / if ($password == "") { return lang('Adminer does not support accessing a database without a password, <a href="https://www.adminer.org/en/password/"%s>more information.', target_blank()); } / return true; }

NOTE: THIS IS FOR LOCALHOST ONLY, IF YOU PLAN TO DEVELOP IT ON YOUR OWN MACHINE. it is not suitable for live server. i just tested it for mongodb only. dont know for other database.

princejijk commented 5 years ago

It is very simple:

  1. Open the adminer.php (or the exact php file of your adminer) in any text editor.

  2. Use the FIND command in your text editor and find the following string on the next line: login($ye,$F){if($F=="")return

  3. Type anything like xyz in between the double quotes and save it. That's all! Now, the problem solved.

Just watch this video: https://www.youtube.com/watch?v=b8W0TjEsAHQ

KinG-InFeT commented 4 years ago

thanks you