Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7930813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:32:32+00:00 2026-06-03T20:32:32+00:00

I am trying to test out redbeanphp and tried implementing it on xampp with

  • 0

I am trying to test out redbeanphp and tried implementing it on xampp with my mac.
However it seems like there is something wrong with my pdo.
I’ve checked that a pdo driver for mysql is set up using phpinfo.
Can anyone please provide some insights or some directions on why this is happening.

Thanks in advance!

The code I am using is:

<?php
require('rb.php');
R::setup('mysql:host=localhost;dbname=hoodajax');
$book = R::dispense( 'book' );
$book->title = 'Boost development with RedBeanPHP';
$book->author = 'Charles Xavier'; 
$id = R::store($book);
$book = R::load('book', $id);
echo $book->title;
R::close();
?>

The error that is being displayed is:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1044] Access denied for
user ''@'localhost' to database 'hoodajax'' in /Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php:613
Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(613):
PDO->__construct('mysql:host=127....', NULL, NULL, Array) #1
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(790): RedBean_Driver_PDO->connect() #2
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(1755): RedBean_Driver_PDO->Escape('book') #3
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(2374): RedBean_Adapter_DBAdapter->escape('book') #4
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(2334): RedBean_QueryWriter_AQueryWriter->check('book')
#5 /Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(4594):
RedBean_QueryWriter_AQueryWriter->safeTable('book', true) #6
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(4563):
RedBean_OODB->storeBean(Object(RedBean_OODBBean)) #7
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php(6439): RedBean_OODB->store(Ob in
/Applications/XAMPP/xamppfiles/htdocs/ajax/rb.php on line 613
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:32:34+00:00Added an answer on June 3, 2026 at 8:32 pm

    The error message is self explanatory:

    Access denied for user ”@’localhost’ to database ‘hoodajax’

    You haven’t specified a user name for the DB access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to test out some XPaths using the Scrapy shell, but it seems
I am trying to test out some Dapper stuff using LinqPad. Dapper needs a
I'm trying to test out the GettingStarted sample site with our LE instance but
When trying to start my JUnit-Test out of Eclipse, I get a ClassNotFoundException. When
Trying to figure out how to adequately test my accounts controller. I am having
I'm trying to figure out how to test-drive software that launches external processes that
I'm trying to work out why some of my test cases (using RhinoMocks 3.6
I am trying to work out how to configure PHPUnit to use the test
I am trying to test out MVVMLight but the DLLs that come with it
I'm trying to test out Spring Annotations to see how they work with some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.