Server
final class Server (View source)
Properties
string | $host | MySQL hostname or IP address |
|
string | $port | MySQL port - leave blank for default port |
|
string | $socket | Path to the socket - leave blank for default socket |
|
bool | $ssl | Use SSL for connecting to MySQL server? |
|
string|null | $sslKey | Path to the key file when using SSL for connecting to the MySQL server |
|
string|null | $sslCert | Path to the cert file when using SSL for connecting to the MySQL server |
|
string|null | $sslCa | Path to the CA file when using SSL for connecting to the MySQL server |
|
string|null | $sslCaPath | Directory containing trusted SSL CA certificates in PEM format |
|
string|null | $sslCiphers | List of allowable ciphers for SSL connections to the MySQL server |
|
bool | $sslVerify | MySQL 5.6 or later triggers the mysqlnd driver in PHP to validate the peer_name of the SSL certifcate For most self-signed certificates this is a problem. Setting this to false will disable the check and allow the connection (PHP 5.6.16 or later) |
|
bool | $compress | Use compressed protocol for the MySQL connection |
|
string | $controlHost | MySQL control host. This permits to use a host different from the main host, for the phpMyAdmin configuration storage. If left empty, $cfg['Servers'][$i]['host'] is used instead. |
|
string | $controlPort | MySQL control port. This permits to use a port different from the main port, for the phpMyAdmin configuration storage. If left empty, $cfg['Servers'][$i]['port'] is used instead. |
|
string | $controlUser | MySQL control user settings (this user must have read-only access to the "mysql/user" and "mysql/db" tables). The controluser is also used for all relational features (pmadb) |
|
string | $controlPass | MySQL control user settings (this user must have read-only access to the "mysql/user" and "mysql/db" tables). The controluser is also used for all relational features (pmadb) |
|
string|null | $controlSocket | ||
bool|null | $controlSsl | ||
string|null | $controlSslKey | ||
string|null | $controlSslCert | ||
string|null | $controlSslCa | ||
string|null | $controlSslCaPath | ||
string|null | $controlSslCiphers | ||
bool|null | $controlSslVerify | ||
bool|null | $controlCompress | ||
bool|null | $controlHideConnectionErrors | ||
string | $authType | Authentication method (valid choices: config, http, signon or cookie) |
|
string | $authHttpRealm | HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type) |
|
string | $user | MySQL user |
|
string | $password | MySQL password (only needed with 'config' auth_type) |
|
string | $signonSession | Session to use for 'signon' authentication method |
|
array<string,int|string|bool> | $signonCookieParams | Cookie params to match session to use for 'signon' authentication method It should be an associative array matching result of session_get_cookie_params() in other system |
|
string | $signonScript | PHP script to use for 'signon' authentication method |
|
string | $signonUrl | URL where to redirect user to login for 'signon' authentication method |
|
string | $logoutUrl | URL where to redirect user after logout |
|
string|string[] | $onlyDb | If set to a db-name, only this db is displayed in navigation panel It may also be an array of db-names |
|
string | $hideDb | Database name to be hidden from listings |
|
string | $verbose | Verbose name for this host - leave blank to show the hostname (for HTTP authentication, all non-US-ASCII characters will be stripped) |
|
string | $pmaDb | Database used for Relation, Bookmark and PDF Features (see resources/sql/create_tables.sql)
|
|
string|false | $bookmarkTable | Bookmark table
|
|
string|false | $relation | table to describe the relation between links (see doc)
|
|
string|false | $tableInfo | table to describe the display fields
|
|
string|false | $tableCoords | table to describe the tables position for the designer and PDF schema
|
|
string|false | $pdfPages | table to describe pages of relationpdf
|
|
string|false | $columnInfo | table to store column information
|
|
string|false | $history | table to store SQL history
|
|
string|false | $recent | table to store recently used tables
|
|
string|false | $favorite | table to store favorite tables
|
|
string|false | $tableUiPrefs | table to store UI preferences for tables
|
|
string|false | $tracking | table to store SQL tracking
|
|
string|false | $userConfig | table to store user preferences
|
|
string|false | $users | table to store users and their assignment to user groups
|
|
string|false | $userGroups | table to store allowed menu items for each user group
|
|
string|false | $navigationHiding | table to store information about item hidden from navigation tree
|
|
string|false | $savedSearches | table to store information about saved searches from query-by-example on a db
|
|
string|false | $centralColumns | table to store central list of columns per database
|
|
string|false | $designerSettings | table to store designer settings
|
|
string|false | $exportTemplates | table to store export templates
|
|
int | $maxTableUiPrefs | Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table. |
|
string | $sessionTimeZone | Sets the time zone used by phpMyAdmin. Possible values are explained at https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html |
|
bool | $allowRoot | whether to allow root login |
|
bool | $allowNoPassword | whether to allow login of any user without a password |
|
array<string,string|string[]> | $allowDeny | Host authentication |
|
bool | $disableIS | Disable use of INFORMATION_SCHEMA. |
|
bool | $trackingVersionAutoCreate | Whether the tracking mechanism creates versions for tables and views automatically. |
|
string | $trackingDefaultStatements | Defines the list of statements the auto-creation uses for new versions. |
|
bool | $trackingAddDropView | Whether a DROP VIEW IF EXISTS statement will be added as first line to the log when creating a view. |
|
bool | $trackingAddDropTable | Whether a DROP TABLE IF EXISTS statement will be added as first line to the log when creating a table. |
|
bool | $trackingAddDropDatabase | Whether a DROP DATABASE IF EXISTS statement will be added as first line to the log when creating a database. |
|
bool | $hideConnectionErrors | Whether to show or hide detailed MySQL/MariaDB connection errors on the login page. |
Methods
No description
No description
Details
__construct(array $server = [])
No description
array
asArray()
No description
Server
withSSL(bool $ssl)
No description