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/

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

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料