vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   MySQL vs MySQLi (https://vborg.vbsupport.ru/showthread.php?t=223585)

James Birkett 09-19-2009 03:02 PM

MySQL vs MySQLi
 
Afternoon All,

I'm wondering, what are the benefits of using MySQLi over MySQL in terms of vBulletin?
Does it have any effect on performance etc?
Would it affect usage of modifications?
Is it recommended?

theFM 09-19-2009 07:01 PM

msqli is an improved database layer for php 5 and msql 4.1+.

they are all the same , both msqli and msql has caused problems in the past and till now , but it's a good idea to use it if possible, but only if you are getting problems using msql then only. else no need to shift to msqli for no reason^^

Regards

Adrian Schneider 09-19-2009 07:04 PM

I would say the performance differences are negligible, but it does contain a ton of additional features that you may not notice unless you are using them in your application code.

James Birkett 09-19-2009 07:05 PM

vBulletin Documentation on MySQLi

The documentation says:
Quote:

MySQLi is an improved database layer for PHP 5 and MySQL 4.1+. It is strongly recommended that MySQLi be used if your MySQL server is at version 4.1 or higher.
Now, my (new) host supports it - and I have just installed it.
Would it affect any modifications at all? In terms of database connection? Or does it all run via the $db variable anyway, thus not mattering which connection you use?


Thanks for your input.

Adrian Schneider 09-19-2009 07:09 PM

It's highly (99%) unlikely that it will affect any of your modifications. vBulletin's DB code is an abstraction layer in itself, so it covers the mapping of $db function calls to the underlying database adapter functions.

However, eventually I can see the standard mysql function being deprecated. Maybe not in vBulletin, but other applications who wish to use the more powerful database functions. I know Zend Framework requires PDO_MySQL or MySQLi to function.

It's a safe bet to use it. :)

James Birkett 09-19-2009 07:14 PM

Thanks majorly for your input Adrian. Thanks to you too FM.

I'll get specifics over at vBulletin.com but you've definitely put my mind at rest.

Thanks again!


All times are GMT. The time now is 06:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01642 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete