Comments (14)
https://github.com/vrana/adminer/blob/master/adminer/drivers/mongo.inc.php#L622
Is there a bug in the logic of the latest adminer code? It's just my guess. It feels weird anyway
$connection->_link = $connection->connect("mongodb://$server", $options);
if ($password != "") {
$options["password"] = "";
try {
$connection->connect("mongodb://$server", $options);
return lang('Database does not support password.'); // why return?
} catch (Exception $ex) {
// this is what we want
}
}
return $connection;
from adminer.
Well, I've verified it in my image but I think it's not problem in there. Do you have any updates?
from adminer.
Unfortunately not. It still doesn't work with PHP 7.
from adminer.
How about now @sinacek ?
from adminer.
Still doesn't work.
docker run -ti --rm -p 80:80 -e MONGO_AUTH_SOURCE=admin dockette/adminer:full
from adminer.
What is MONGO_AUTH_SOURCE
? Could you point me to php doc somewhere?
from adminer.
It's variable for authentication collection in Mongo. see vrana/adminer#358
https://docs.mongodb.com/manual/reference/connection-string/#urioption.authSource
from adminer.
image:dockette/adminer:full add env MONGO_AUTH_SOURCE=admin Still not useful. But use image:dockette/adminer:full-php5 is ok
from adminer.
It looks like change in php versions. I don't know where is the problem now. :(
from adminer.
https://github.com/vrana/adminer/blob/master/adminer/drivers/mongo.inc.php#L622
Is there a bug in the logic of the latest adminer code? It's just my guess. It feels weird anyway
$connection->_link = $connection->connect("mongodb://$server", $options); if ($password != "") { $options["password"] = ""; try { $connection->connect("mongodb://$server", $options); return lang('Database does not support password.'); // why return? } catch (Exception $ex) { // this is what we want } } return $connection;
I try to move "return lang..." into catch, and now I'm able to connect to MongoDB. Many thanks !
from adminer.
adminer-mongodb is not unstable, let's wait for it to stabilize later.
from adminer.
Hello all, Do you have some new about adminer-mongodb? In fact, I have an authentication problem when I'm using Adminer 4.7.7. However, when I'm using Adminer 4.8, i succeded to authenticate my self, to add some data. Nevertheless, I'm not able to create a new database or a new Collection.
Thanks in advance for the response.
from adminer.
Hi @SellamiRami. Have you tried to use phar version of Adminer (https://github.com/vrana/adminer/releases/tag/v4.8.1)? We should locate this issue, if it's in adminer itself or in dockette/adminer.
from adminer.
Can you please test latest version?
from adminer.
Related Issues (20)
- Add mention of alpine HOT 3
- Use latest version by default HOT 4
- Comparison to official adminer image? HOT 2
- Does adminer:dg support mongo? HOT 6
- how to connect to sqlite with adminer:full image? HOT 2
- PHP 7.4 multithreading HOT 1
- Errors while building adminer-editor Dockerfile HOT 3
- adminer-editor image not available on DockerHub HOT 1
- adminer-editor image uses an outdated version of the app HOT 2
- the container is not shutting down properly HOT 1
- Alpine edge are not recommended for production HOT 1
- Missing ARM based CPU support HOT 2
- Error: /tini no souch file or directory HOT 5
- DG image says "File not found" when doing a custom sql query HOT 3
- Wrong path for tini in debian HOT 1
- Feature request: Other Oracle versions? HOT 1
- Adminer editor runtime PHP error: Cannot access offset of type string on string in /srv/adminer.php:450 HOT 1
- Feature Request: MSSQL HOT 1
- Container takes a long time to stop HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminer.