Codeigniter3 でSQLServerへの接続を試みているのですが、下記のようなエラーになってしまいます
An uncaught Exception was encountered Type: Error Message: Call to undefined function mssql_connect()
application/config/database.php の設定は、SQLサーバ名、ユーザ名、パスワード、DB名を設定して、dbdriverに「mssql'」を指定しています
$active_group = 'default'; $query_builder = TRUE; $db['default'] = array( 'dsn' => '', 'hostname' => 'サーバ名', 'username' => 'ユーザ名', 'password' => 'パスワード', 'database' => 'DB名', 'dbdriver' => 'mssql', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );
稼働環境は下記です。
OS:Windows10
Webサーバ:mamp(php7.2.10)
DB:SQLServer2014
Codeigniter3 はDLしてほとんどそのままなのですが、SQLServerに接続するために必要な設定がございましたでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/27 09:31
2019/06/27 09:38
2019/06/27 09:49