Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $serverName = "AMISSAH-PCSQLEXPRESS"; //serverNameinstanceName
- // Since UID and PWD are not specified in the $connectionInfo array,
- // The connection will be attempted using Windows Authentication.
- $connectionInfo = array( "Database"=>"epayzone");
- $conn = sqlsrv_connect( $serverName, $connectionInfo);
- if( $conn ) {
- echo "Connection established.<br />";
- }else{
- echo "Connection could not be established.<br />";
- die( print_r( sqlsrv_errors(), true));
- }
- ?>
- # This file is auto-generated during the composer install
- parameters:
- database_driver: pdo_sqlsrv
- database_host: AMISSAH-PCSQLEXPRESS
- database_port: 1433
- database_name: epayzone
- database_user: null
- database_password: null
- mailer_transport: smtp
- mailer_host: 127.0.0.1
- mailer_user: null
- mailer_password: null
- secret: ThisTokenIsNotSoSecretChangeIt
- ConnectionException in AbstractMySQLDriver.php line 103: An exception occured in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement