# Running Daily background job for tasks on Windows - pdo\_mysql problem

**URL:** <https://kanboard.discourse.group/t/running-daily-background-job-for-tasks-on-windows-pdo-mysql-problem/2491>\
**Category:** Open Discussions\
**Created:** [November 22, 2022, 9:52am UTC](https://kanboard.discourse.group/t/running-daily-background-job-for-tasks-on-windows-pdo-mysql-problem/2491 "2022-11-22T09:52:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wole](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wole](https://kanboard.discourse.group/u/wole)\
**Post date:** [November 22, 2022, 9:52am UTC](https://kanboard.discourse.group/t/running-daily-background-job-for-tasks-on-windows-pdo-mysql-problem/2491/1 "2022-11-22T09:52:31Z")

</div>

Hi there,

when starting batch-file to run the cronjob I get the message :PHP extension required: “pdo\_mysql”

I running Kanboard 1.2.25 on Windows (MAMP) with PHP 8.0.1 and Apache  
The extension pdo\_mysql seems to be enabled as I checked in php.ini

The .bat-file:  
“C:\MAMP\bin\php\php8.0.1\php.exe” -f “C:\MAMP\htdocs\kanboard\cli” cronjob

Does anybody have an idea?  
Thanks!  
Wolfgang

---

<div class="post-metadata">

**Author:** ![wole](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wole](https://kanboard.discourse.group/u/wole)\
**Post date:** [November 23, 2022, 11:11am UTC](https://kanboard.discourse.group/t/running-daily-background-job-for-tasks-on-windows-pdo-mysql-problem/2491/2 "2022-11-23T11:11:31Z")

</div>

I found the solution myself:  
Using CLI on windows you have to use the -c argument to point to the php.ini path if its not in the Windows directory. So the bat-file to run the cronjob looks now like this:

“C:[Path To PHP]\php.exe” -c “C:[Path to php.ini]” -f “C:[Path to htdocs]\kanboard\cli” cronjob
