MydbCredentials
in package
implements
MydbCredentialsInterface
Tags
Table of Contents
Interfaces
Properties
- $dbname : string
- Database credentials - database name If provided will specify the default database to be used when performing queries.
- $flags : int
- Database credentials - connection flags With the parameter flags you can set different connection options MYSQLI_CLIENT_COMPRESS - Use compression protocol MYSQLI_CLIENT_SSL - Use SSL (encryption) MULTI_STATEMENT flag is not supported in PHP
- $host : string
- Database credentials - hostname Can be either a host name or an IP address. Passing the null value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol.
- $passwd : string
- Database credentials - password If provided or null, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not).
- $port : int|null
- Database credentials - port Specifies the port number to attempt to connect to the MySQL server.
- $socket : string|null
- Database credentials - socket Specifies the socket or named pipe that should be used.
- $username : string
- Database credentials - username
Methods
- __construct() : mixed
- getDbname() : string
- getFlags() : int
- getHost() : string
- getPasswd() : string
- getPort() : int|null
- getSocket() : string|null
- getUsername() : string
Properties
$dbname
Database credentials - database name If provided will specify the default database to be used when performing queries.
protected
string
$dbname
Tags
$flags
Database credentials - connection flags With the parameter flags you can set different connection options MYSQLI_CLIENT_COMPRESS - Use compression protocol MYSQLI_CLIENT_SSL - Use SSL (encryption) MULTI_STATEMENT flag is not supported in PHP
protected
int
$flags
Tags
$host
Database credentials - hostname Can be either a host name or an IP address. Passing the null value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol.
protected
string
$host
Tags
$passwd
Database credentials - password If provided or null, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not).
protected
string
$passwd
Tags
$port
Database credentials - port Specifies the port number to attempt to connect to the MySQL server.
protected
int|null
$port
Tags
$socket
Database credentials - socket Specifies the socket or named pipe that should be used.
protected
string|null
$socket
Tags
$username
Database credentials - username
protected
string
$username
Tags
Methods
__construct()
public
__construct(string $host, string $username, string $passwd, string $dbname[, int|null $port = null ][, string|null $socket = null ][, int $flags = 0 ]) : mixed
Parameters
- $host : string
- $username : string
- $passwd : string
- $dbname : string
- $port : int|null = null
- $socket : string|null = null
- $flags : int = 0
getDbname()
public
getDbname() : string
Return values
stringgetFlags()
public
getFlags() : int
Return values
intgetHost()
public
getHost() : string
Return values
stringgetPasswd()
public
getPasswd() : string
Return values
stringgetPort()
public
getPort() : int|null
Return values
int|nullgetSocket()
public
getSocket() : string|null
Return values
string|nullgetUsername()
public
getUsername() : string