Original MySQL API (
Mysql
)
2237
}
echo 'Your current character set is: ' . mysql_client_encoding($conn);
?>
20.7.2. Original MySQL API (
Mysql
)
Copyright 1997-2012 the PHP Documentation Group. [2230]
This extension is deprecated as of PHP 5.5.0, and is not recommended for writing new code as it will
be removed in the future. Instead, either the
mysqli
or
PDO_MySQL
extension should be used. See
also the
MySQL API Overview
for further help while choosing a MySQL API.
These functions allow you to access MySQL database servers. More information about MySQL can be
found at http://www.mysql.com/.
Documentation for MySQL can be found at
http://dev.mysql.com/doc/
.
20.7.2.1. Installing/Configuring
Copyright 1997-2012 the PHP Documentation Group. [2230]
20.7.2.1.1. Requirements
Copyright 1997-2012 the PHP Documentation Group. [2230]
In order to have these functions available, you must compile PHP with MySQL support.
20.7.2.1.2. Installation
Copyright 1997-2012 the PHP Documentation Group. [2230]
For compiling, simply use the
--with-mysql[=DIR]
configuration option where the optional
[DIR]
points to the MySQL installation directory.
Although this MySQL extension is compatible with MySQL 4.1.0 and greater, it doesn't support the
extra functionality that these versions provide. For that, use the
MySQLi
extension.
If you would like to install the mysql extension along with the mysqli extension you have to use the
same client library to avoid any conflicts.
20.7.2.1.2.1. Installation on Linux Systems
Copyright 1997-2012 the PHP Documentation Group. [2230]
Note:
[DIR]
is the path to the MySQL client library files (headers and libraries), which can be
downloaded from MySQL.
Table 20.32. ext/mysql compile time support matrix
PHP Version
Default
Configure
Options:
mysqlnd
Configure
Options:
libmysqlclient
Changelog
4.x.x
libmysqlclient
Not Available
--without-
mysql
to disable
MySQL enabled
by default, MySQL
client libraries are
bundled
5.0.x, 5.1.x, 5.2.x
libmysqlclient
Not Available
--with-
mysql=[DIR]
MySQL is no
longer enabled
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...