Skip to content

error Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'  #1041

Closed
@shaiho

Description

@shaiho

❓ Support Question

Required Information

Operating system: ubuntu 16.04
PHP version: 7.3
PHP Telegram Bot version: Latest version
Using MySQL database: yes
MySQL version: 5.7.28
Update Method: getupdate
Self-signed certificate: no

Summary

i try to run my first bot by use the example but i got this error:

PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /var/www/html/phpbot/vendor/longman/telegram-bot/src/DB.php:86

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions