[Solved] Switch to MYSQLI and workbench [closed]


I’m using MYSQL Workbench right now to build my database, do I need to build my database differently now to use MYSQLI or is MYSQLI just the syntax for connecting to the database.

No. You do not need to build your database again. MYSQLI is a set of functions to establish a relation with any mysql database. You can query, delete, create, etc…
http://php.net/manual/pt_BR/book.mysqli.php

Also do I need to download the MYSQLI driver and disable the MYSQL one…

You do not need to download MYSQLI driver, but, YES, you need to activate MYSQLI driver on your php.ini

I’m going to learn PDO to connect to my database, I just don’t want something bad to happen to my website after, from what I understand, the MYSQL driver wont work in the future and everything must use the MYSQLI driver, or library, or whatever it is.

PDO is a great lib and it’s good for you to learn how to use it. But MYSQLI and PDO do the same thing in different ways (instead of connecting to other databases like SQL SERVER) so you need to choose if you want to use PDO or MYSLI on your core application.

I don’t quite understand what’s this switch to MYSQLI is. Should I use something else?

It all depends on what kind of application you’re creating. Also you should learn all possible technologies related once it’s good for your career. But in any case there are several frameworks that will do the thing for you and connect to the db and also create the queries.

Ex

http://cakephp.org/

http://www.codeigniter.com/

http://www.yiiframework.com/

6

solved Switch to MYSQLI and workbench [closed]