thinkphp串連不上sqlserver2005,該怎麼處理

來源:互聯網
上載者:User
thinkphp串連不上sqlserver2005
http://www.thinkphp.cn/Uploads/editor/2013-10-25/5269ead26c98f.jpg
php的擴充已經添加了,如果用php也可以串連上資料庫了,但是我在用thinkphp串連sqlserver2005的時候就會出現“系統不支援:mssql”,的提示
我的配置是:
http://www.thinkphp.cn/Uploads/editor/2013-10-25/5269eb6cda5f8.jpg
求指點,為什麼thinkphp串連不上sqlserver呢? 捉急中……
------解決方案--------------------
請正確選擇 php載入ntwdblib.dll版本
經測試 sqlserver 2008 對應 ntwdblib.dll版本 2000.80.194.0
是沒有問題的。

如果你是正確按照 php串連sqlserver
還出現thinkphp串連mssql失敗,
請下載資源ntwdblib.dll
將這個檔案放在system32下面

------解決方案--------------------
這是我的thinkphp的conf檔案
if (!defined('THINK_PATH')) exit();
return array(
'DB_TYPE' => 'mssql', // 使用的資料庫類型
'DB_HOST' => 'localhost',
'DB_NAME' => 'tp', // 資料庫名
'DB_USER' => 'sa', // 資料庫帳號
'DB_PWD' => '123456', // 資料庫密碼
'DB_PORT' => '1433',
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.