I solved the problem this way:
sudo apt-get --purge remove php-common
sudo apt-get install php-common php-mysql php-cli
Now there is no error and php -m
shows it has everything:
More Related Contents:
- Insert form in MySQL with PDO [duplicate]
- Undefined index $_POST
- How to check if a row exists in MySQL? (i.e. check if username or email exists in MySQL)
- Are PDO prepared statements sufficient to prevent SQL injection?
- Reference — frequently asked questions about PDO
- Getting raw SQL query string from PDO prepared statements
- How do I set ORDER BY params using prepared PDO statement?
- “Invalid parameter number: parameter was not defined” Inserting data
- Having issue with matching rows in the database using PDO
- How can I properly use a PDO object for a parameterized SELECT query
- How do I return integer and numeric columns from MySQL as integers and numerics in PHP?
- pdo – Call to a member function prepare() on a non-object [duplicate]
- How to replace MySQL functions with PDO?
- Connect to SQL Server through PDO using SQL Server Driver
- PDO error: ” SQLSTATE[HY000]: General error ” When updating database
- Real escape string and PDO [duplicate]
- PDO PHP Fetch Class
- How to check if a row exist in the database using PDO?
- SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax — PHP — PDO [duplicate]
- PDO Connection Test
- PHP PDO vs normal mysql_connect
- Can I create a database using PDO in PHP?
- Is is possible to set a default PDO fetch mode?
- Which tokens can be parameterized in PDO prepared statements?
- How to dynamically build queries with PDO
- PDO: Invalid parameter number: mixed named and positional parameters
- PDO error: SQLSTATE[HY000]: General error: 2031
- Use of PDO in classes [duplicate]
- Check if row exists in the database before inserting
- Difference between PDO->query() and PDO->exec()