Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
MYSQL times out after executing fixtures load

I am running MySQL on a Docker container and I am connected to my database (I,ve added items via postman so I know it’s connected). However, I tried to add doctrine fixtures and then load them but it times out. Anybody ran into this issue before?

class AppFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
    $blogPost = new BlogPost();
    $blogPost->setTitle('A First post!');
    $blogPost->setPublished(new DateTime('2019-07-01 12:00:00'));
    $blogPost->setContent('Post Text!');
    $blogPost->setAuthor('Chris Moreno');
    $blogPost->setSlug('a-first-post');

    $manager->persist($blogPost);

    $blogPost = new BlogPost();
    $blogPost->setTitle('A Second post!');
    $blogPost->setPublished(new DateTime('2019-07-01 12:00:00'));
    $blogPost->setContent('Post Text!');
    $blogPost->setAuthor('Chris Moreno');
    $blogPost->setSlug('a-second-post');

    $manager->persist($blogPost);

    $manager->flush();
  }
}

error when calling this:

php bin/console doctrine:fixtures:load

error msg:

In AbstractMySQLDriver.php line 93:

An exception occurred in driver: SQLSTATE[HY000] [2002] Operation timed out
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Have you properly specified database connection details in Doctrine fixtures?

Check this out and also this.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!