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呢? 捉急中……
回复讨论(解决方案)
mssql 和 sqlsrv 是不一样的
mssql 和 sqlsrv 是不一样的
那我怎么用thinkphp连接sqlserver2005啊不知道,你到他官网上去看看,有没有解决方案
同求如何连接SQL2005
请正确选择 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',
如有错误,请贴出apache log error.log
看是否提示,加载mssql.dll失败。
DB_TYPE搞错了吧,应该SQLSRV吧

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to connect the keep body fat scale? Keep has a specially designed body fat scale, but most users do not know how to connect the keep body fat scale. Next is the graphic tutorial on the connection method of the keep body fat scale that the editor brings to users. , interested users come and take a look! How to connect the keep body fat scale 1. First open the keep software, go to the main page, click [My] in the lower right corner, and select [Smart Hardware]; 2. Then on the My Smart Devices page, click the [Add Device] button in the middle; 3 , then select the device you want to add interface, select [Smart Body Fat/Weight Scale]; 4. Then on the device model selection page, click the [keep body fat scale] option; 5. Finally, in the interface shown below, finally [Add Now] at the bottom

To run the ThinkPHP project, you need to: install Composer; use Composer to create the project; enter the project directory and execute php bin/console serve; visit http://localhost:8000 to view the welcome page.

ThinkPHP has multiple versions designed for different PHP versions. Major versions include 3.2, 5.0, 5.1, and 6.0, while minor versions are used to fix bugs and provide new features. The latest stable version is ThinkPHP 6.0.16. When choosing a version, consider the PHP version, feature requirements, and community support. It is recommended to use the latest stable version for best performance and support.

What does 0x0000011b mean when connecting to a printer? Users often encounter various error codes when using computers, laptops or other devices. Among them, 0x0000011b is a common printer connection error code. So, what does connecting printer 0x0000011b mean? First, we need to understand the basic principles of printer connection. When we need to print files from the computer, we usually need to connect the printer to the computer for data transfer between the two. This connection can be made via

Steps to run ThinkPHP Framework locally: Download and unzip ThinkPHP Framework to a local directory. Create a virtual host (optional) pointing to the ThinkPHP root directory. Configure database connection parameters. Start the web server. Initialize the ThinkPHP application. Access the ThinkPHP application URL and run it.

With the development of the digital era, shared printers have become an indispensable part of the modern office environment. However, sometimes we may encounter the problem that the shared printer cannot be connected to the printer, which will not only affect work efficiency, but also cause a series of troubles. This article aims to explore the reasons and solutions for why a shared printer cannot connect to the printer. There are many reasons why a shared printer cannot connect to the printer, the most common of which is network issues. If the network connection between the shared printer and the printer is unstable or interrupted, normal operation will not be possible.

Solutions to Restricted Network Connections in Win10 With the rapid development of technology, the Internet has become an indispensable part of people's lives. However, sometimes we may encounter some problems when connecting to the Internet on computers using the Windows 10 operating system, one of which is restricted connections. In this case, we cannot access web pages, download files, or use network functions normally. So, is there any way to solve this problem? This article will introduce you to several common solutions. 1. Check the network connection settings. First, I

1. Place the earphones in the earphone box and keep the lid open. Press and hold the button on the box to enter the pairing state of the earphones. 2. Turn on the watch music function and select Bluetooth headphones, or select Bluetooth headphones in the watch settings function. 3. Select the headset on the watch to pair successfully.
