dourukeng5302 2015-10-09 20:36
浏览 49
已采纳

切换到MYSQLI和工作台[关闭]

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. Also do I need to download the MYSQLI driver and disable the MYSQL one... I'm honestly just very confused. 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. I don't quite understand what this switch to MYSQLI is. Should I use something else?

Sorry if what I post is confusing, I'm just a beginner.

Thanks a lot,

Mike

  • 写回答

1条回答 默认 最新

  • dongyue3795 2015-10-09 20:53
    关注

    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/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里