Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' #18

Closed
mrjones-plip opened this issue Mar 27, 2019 · 1 comment
Closed

Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' #18

mrjones-plip opened this issue Mar 27, 2019 · 1 comment
Assignees
Labels

Comments

@mrjones-plip
Copy link
Contributor

mrjones-plip commented Mar 27, 2019

when running php -S localhost:8000 in examples and then browsing an example page I get this error:

[Wed Mar 27 14:07:16 2019] PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /home/mrjones/Documents/tableManager/tableManager.php:763
Stack trace:
#0 /home/mrjones/Documents/tableManager/tableManager.php(71): tableManager->getDbHandle('tableManagerSam...')
#1 /home/mrjones/Documents/tableManager/examples/list_rows_with_links.php(15): tableManager->__construct('192.168.68.42', 'root', '', 'tableManagerSam...', 'people')
#2 {main}
  thrown in /home/mrjones/Documents/tableManager/tableManager.php on line 763
@mrjones-plip mrjones-plip self-assigned this Mar 27, 2019
@mrjones-plip
Copy link
Contributor Author

while technically a bug, this is because the php-mysql package isn't installed. For example, to fix this on on ubuntu I ran sudo apt-get install php-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant