I am learning PHP and was working with MySQL upto this point. When I started using prepared statements, I switched over to MySQLi instead, but I got an error in my IDE(phpStorm): Method error not found in class mysqli
.
I looked at the related questions here on SO and found an answer in the question Fatal error: Class 'MySQLi' not found. I used the sudo apt-get install php5-mysqlnd
command, and from the terminal commands it appeared that mysqlnd
package was installed successfully.
After it completed, I ran this command (from a post I found somewhere): php -m | grep -i mysql
and got the output mysql mysqli mysqlnd pdo_mysql
.
It appeared that the package was installed, but I still get the same error in phpstorm, as it says in this screen grab:
Ultimately, is MySQLi finally installed? Do I need to re-configure PHPStorm somehow? I went to "language and frameworks" under settings, but didn't find anything new there to configure.
My PHP version is (I think) PHP version: 5.5.9-1ubuntu4.11
.