Questions tagged [database-connection]

A database connection is a facility that allows client software to communicate with database server software, whether on the same machine or not. A connection is required to send commands and receive answers.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
26 views

Run Magento 2 cron with a different database user

Is it possible to run Magento 2 cron tasks under a different database user? This user will be able to connect to the same database as the website itself, and have exactly the same privileges; perhaps ...
2
votes
0answers
34 views

Problem connecting to db after securing phpmyadmin with htaccess & htpasswd

I recently having an idea of securing my phpmyadmin portal, So i added htaccess and htpasswd to add another layer of protection [![enter image description here][1]][1] And I realized that my web ...
2
votes
1answer
106 views

Magento 2 master slave connection for DB

I am planning to enable Master and slave connection on my Magento site. Magento team suggest me to check my 3rd party and custom modules support this master/slave config or not. I am not sure how can ...
2
votes
1answer
576 views

Magento 2 - read and write connection for custom query

I am using Magento 2.2.5 EE. I need to write some custom queries Select and Insert I know how to write custom query, its simple: Create new connection: $objectManager = \Magento\Framework\App\...
1
vote
0answers
23 views

magento 2 custom connection needs to be manually closed?

I have created a second database on the same server as magento database, then I've created a module that fetches data from the second database. In order to fetch data from the second database I have ...
1
vote
1answer
499 views

Magento 2.2 - Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load()

Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load() in /var/www/html/magento2_dev/vendor/magento/framework/Model/AbstractModel.php:536 Just adding ...
1
vote
2answers
547 views

How to recover env.php file in Magento 2?

is there any way to recover the env.php file. As my file deleted unexpectedly when editing using command line. Now file is empty and showing with 0 size in the ftp. As i don't have the backup of the ...
0
votes
0answers
26 views

Magento 2 : How connect Magento with Neo4j Graphical Database

Does any one know how to connect Magento 2 with Neo4j Graphical Database ? There is a PHP client library (composer require graphaware/neo4j-php-client:^4.0) which i have updated in Magento project, ...
0
votes
0answers
26 views

Do I need to manually close database connections?

I have a shop (Magento 1.9) with ~40.000 products. Every night they will be imported/updated via cronjob. There are other cronjobs that do various database operations as well. In my import script ...