Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 not working with sqlsrv
#6

Hello,
When I run the check Database command I am getting the below result.
Code:
PS C:\wamp64\www\sfwmd4> php spark config:check Database

Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_82_nts_x64.dll' (tried: c:/wamp64/bin/php/php8.2.18/ext/php_pdo_sqlsrv_82_nts_x64.dll (The specified module could not be found), c:/wamp64/bin/php/php8.2.18/ext/php_php_pdo_sqlsrv_82_nts_x64.dll.dll (The specified module could not be found)) in Unknown on line 0

CodeIgniter v4.5.2 Command Line Tool - Server Time: 2024-07-12 13:58:17 UTC+00:00

Config\Database#35 (4) (
    public 'filesPath' -> string (34) "C:\wamp64\www\sfwmd4\app\Database\"
    public 'defaultGroup' -> string (7) "default"
    public 'default' -> array (16) [
        'DSN' => string (0) ""
        'hostname' => string (24) ""
        'username' => string (7) ""
        'password' => string (9) ""
        'database' => string (9) ""
        'schema' => string (0) ""
        'DBDriver' => string (6) "SQLSRV"
        'DBPrefix' => string (0) ""
        'pConnect' => boolean false
        'DBDebug' => boolean true
        'charset' => string (4) "utf8"
        'swapPre' => string (0) ""
        'encrypt' => boolean false
        'failover' => array (0) []
        'port' => string (4) "1433"
        'dateFormat' => array (3) [
            'date' => string (5) "Y-m-d"
            'datetime' => string (11) "Y-m-d H:i:s"
            'time' => string (5) "H:i:s"
        ]
    ]
    public 'test' -> array (16) [
        'DSN' => string (0) ""
        'hostname' => string (0) ""
        'username' => string (0) ""
        'password' => string (0) ""
        'database' => string (0) ""
        'schema' => string (0) ""
        'DBDriver' => string (6) "SQLSRV"
        'DBPrefix' => string (0) ""
        'pConnect' => boolean false
        'DBDebug' => boolean true
        'charset' => string (4) "utf8"
        'swapPre' => string (0) ""
        'encrypt' => boolean false
        'failover' => array (0) []
        'port' => string (0) ""
        'dateFormat' => array (3) [
            'date' => string (5) "Y-m-d"
            'datetime' => string (11) "Y-m-d H:i:s"
            'time' => string (5) "H:i:s"
        ]
    ]
)

Config Caching: Disabled
And When I change DBDriver to upper case its not detecting.

InvalidArgumentException

You have not selected a database type to connect to.
Reply


Messages In This Thread
RE: Codeigniter 4 not working with sqlsrv - by PoosaNilaveni - 07-12-2024, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB