TP already supports MongoDB database, here is a detailed description of the configuration and use of MONGO on TP.
(1) There is a bug in the original class of/think/model/mongomodel.class.php in the tp3.2.2 version. We need to add some code to the
Mongo management and mongo management toolsMongo Management
Based on ipv3.0, and 2.x versions may not be the same in some places.Install source (ubuntu)
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" |
The production environment uses the MONGO database.Long-coveted for the MONGO database, its high performance/open source/modeless/document-based database/... What a tempting feature, also occasionally tossing and playing, but did not make notes,
********************************** Connect to the MongoDB database * * ************************* format ("mongodb: username: password @ address: Specifies the database by default on the port ", parameter) $ connnewMongo (); can be abbreviated as $
How does the mongo database test whether the mongo database is connected? & Nbsp; I just got in touch with mongodb today. Unfamiliar. & Nbsp; are there any learning materials for this purpose? & Nbsp; thank you !, PHPcode & lt ;? Ph mongo database
This article mainly introduced the PHP database operation MongoDB Usage, combined with the case form more detailed analysis of MongoDB function, installation, basic commands, use methods and related considerations, the need for friends can refer to
In the traditional database, we have to manipulate the database data to write a large number of SQL statements, and in the storage of irregular data, the traditional relational database table when the processing of different fields appears to be a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.