ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:mysql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
v5:database:mysql [2020/01/13 13:31] – Move deprecated legacy drivers to separate page dregadv5:database:mysql [2023/05/10 09:41] – [mysqli driver] mysqlnd required since 5.22 dregad
Line 2: Line 2:
 ~~NOTOC~~ ~~NOTOC~~
 ===== mysqli driver ===== ===== mysqli driver =====
 +
 <WRAP right box round 300px> <WRAP right box round 300px>
 +
 == Specification == == Specification ==
 ^Driver Name|mysqli| ^Driver Name|mysqli|
-^Data Provider|mysql|+^Data Provider|[[v5:userguide:learn_extensions:new_driver#Understanding The Data Provider|mysql]]|
 ^Status|Active((This driver is actively supported by ADOdb project members))| ^Status|Active((This driver is actively supported by ADOdb project members))|
 ^Windows|Yes| ^Windows|Yes|
Line 11: Line 13:
 ^ADOdb V5|Yes| ^ADOdb V5|Yes|
 ^ADOdb V6|Yes| ^ADOdb V6|Yes|
 +
 == Alternatives == == Alternatives ==
 [[v5:database:pdo#pdo_mysql|PDO driver for MySQL]] [[v5:database:pdo#pdo_mysql|PDO driver for MySQL]]
 +
 +== See Also ==
 +[[v5:reference:connection:setconnectionparameter#mysql|setConnectionParameter()]]
 </WRAP> </WRAP>
  
Line 23: Line 29:
  
 It replaces [[v5:database:mysql_legacy|]] (**mysql**, **mysqlt** and **mysqlpo**). It replaces [[v5:database:mysql_legacy|]] (**mysql**, **mysqlt** and **mysqlpo**).
 +
 +<WRAP important>
 +Starting with ADOdb 5.22, the mysqli driver requires the [[https://www.php.net/manual/en/book.mysqlnd.php|MySQL Native Driver (Mysqlnd)]]
 +</WRAP>
 +
  
 ------------------------------------------- -------------------------------------------
Line 65: Line 76:
 </code> </code>
  
 +==== Connecting To A Microsoft Azure MySQL Instance ====
 +<code php>
 +/*
 +* Enable ADOdb
 +*/
 +$db = newAdoConnection('mysqli')
 +
 +$database = 'employees';
 +$host     = 'my-corporation.mysql.database.azure.com';
 +$user     = 'corpuser';
 +$password = 'Qzrt6r55geRt!';
 +
 +$db->ssl_ca     = '/opt/azure-cert/DigiCertGlobalRootCA.crt.pem';
 +
 +/*
 +* Open the connection
 +*/
 +$db->connect($host, $user, $password, $database);
 +</code>
  
 {{tag>[MySQL windows unix supported tier1]}} {{tag>[MySQL windows unix supported tier1]}}
 {{htmlmetatags>metatag-keywords=(php, programming, database, mysql, percona, mariadb)}} {{htmlmetatags>metatag-keywords=(php, programming, database, mysql, percona, mariadb)}}
v5/database/mysql.txt · Last modified: 2024/04/30 13:07 by dregad