D
D
d2m3r2020-05-19 19:34:58
PHP
d2m3r, 2020-05-19 19:34:58

Why won't RedBeanPhp connect?

I am making a web application and when displaying the order form in phpmyadmin it gives a similar error

Fatal error: Uncaught PDOException: Could not connect to database (payment). in C:\WebServer\OpenServer\domains\localhost\inc\rb.php:858 Stack trace: #0 C:\WebServer\OpenServer\domains\localhost\inc\rb.php(684): RedBeanPHP\Driver\RPDO- >connect() #1 C:\WebServer\OpenServer\domains\localhost\inc\rb.php(882): RedBeanPHP\Driver\RPDO->runQuery('INSERT INTO `or...', Array) #2 C :\WebServer\OpenServer\domains\localhost\inc\rb.php(919): RedBeanPHP\Driver\RPDO->GetAll('INSERT INTO `or...', Array) #3 C:\WebServer\OpenServer\domains \localhost\inc\rb.php(3547): RedBeanPHP\Driver\RPDO->GetOne('INSERT INTO `or...', Array) #4 C:\WebServer\OpenServer\domains\localhost\inc\rb. php(4976): RedBeanPHP\Adapter\DBAdapter->getCell('INSERT INTO `or...', Array, 0) #5 C:\WebServer\OpenServer\domains\localhost\inc\rb.php(5103):

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2020-05-19
@d2m3r

The parameters for accessing the database server are incorrect, or the database server is not working.
PS What does phpmyadmin have to do with it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question