WAMPSERVER 'PDOException' with message 'could not find driver'

Hi All,
I'm running wampserver 64 bit version with:
Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3
I have downloaded the Microsoft Drivers 3.0 for PHP for SQL Server.
I have put the drivers in my ext folder C:\wamp\bin\php\php5.4.12\ext
php_pdo_sqlsrv_54_ts.dll
php_sqlsrv_54_ts.dll
I have changed my php.ini file to included:
extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll
I have restarted my PC.
When I run the following php code:
<?php
$database = "master";
$conn = new PDO( "sqlsrv:server=(local) ; Database = $database", "", "");
?>
I still get the following error message:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in W:\wamp\www\sqlservertestV02.php on line 4
I have tried everything I can think of but the driver does not seem to load correctly.
Any help would be greatly appreciated.
Kind regards,
Ernst.

Hello,
The Microsoft Drivers 3.0 for PHP for SQL Server is used to read and write SQL Server data from within PHP scripts. Since you use MySQL, you should install PDO Driver for MySQL and use pdo_mysql module.
Reference: http://cn2.php.net/pdo_mysql
Regards,
Fanny Liu
If you have any feedback on our support, please click
here.
Fanny Liu
TechNet Community Support

Similar Messages

  • Problem with message: Could not find the main class Program will exit

    I don't get why this isn't working. Any help is appreciated.
    //Code start
    public class hello{
    public hello(){
    public static void main( String args[] ){
    System.out.println("Hello");
    //Code end
    I compile it as so:
    javac hello.javaIt compiles fine and I now have hello.class in my current directory, but when I type the following:
    java helloI get this:
    Exception in thread "main" java.lang.NoClassDefFoundError: hello
    Caused by: java.lang.ClassNotFoundException: hello
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: hello. Program will exit.

    mring001 wrote:
    That worked. Thank you very much!Good. You should read [_Setting the class path_|http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html] that tells you more about what the classpath is and how to set it.

  • Moving files to another directory got an error message [File System Task] Error: An error occurred with the following error message: "Could not find a part of the path.".

    Hi all,
    I am having a list of files in a folder named datafiles and I am processing them one by one when I finish each one I want to move the file into a folder archive.
    I am having a variable named filename and archivefilename and two fileconnections  one is originalfiles and archivefiles
    archivefilename=replace( @[User::filename],"datafiles","archive")
    orginalfiles connection is an expression =@user:filename
    archivefies connection is an expression=@user:archivefilename
    the filename comes from reading the folder that contains those files
    public void Main()
                string[] filenames;
                filenames = Directory.GetFiles(@"C:\luminis\datafiles\");
                Array.Sort(filenames);
                Dts.Variables["filelist"].Value = filenames;
                Dts.TaskResult = (int)ScriptResults.Success;
    The folder c:\luminis\archive\ exists
    why I am getting this error
    My filesystem task : destinationpathvariable =false
    destinationconnection:archivefile
    overwrite=true
    operation=movefile
    issourcepathvariable=false
    sourceconnection=original file
    why am i getting this error[File System Task] Error: An error occurred with the following error message: "Could not find a part of the path.".
    sohairzaki

    there may be 2 problem...
    1> specify a target directory only, not with the file name. 
    OR
    2> Try using the unc,path format \\computername\sharename\
    let us know your observation...
    Let us TRY this | Mail me
    My Blog :: http://quest4gen.blogspot.com/

  • HT4623 I was downloading the new IOS and message could not find Iphone - Now my mhone is stuck with the power symbol and an arrow pointing to the Itunes symbol, I have tried turning off my phone and turning it back on but nothing seems to work

    I was downloading the new IOS and message could not find Iphone appears in Itunes window - Now my my phone is stuck with the power symbol and an arrow pointing to the Itunes symbol, I have tried turning off my phone and turning it back on but nothing seems to work

    So when you plug it into your computer, you're not getting a message in iTunes that it has discovered a phone in recovery mode?
    Reboot both the computer and the phone and try again.

  • After Saving File get Message "Could not find the included template"

    I have a strange issue going on and it's becoming very, very annoying.  When I edit a file on our web server (it's a virtual machine running Windows Server 2008) and then try to view it in my browser, I get the error message "Could not find the included template".  If I refresh the page (sometimes upwards of 40 times) my page with whatever changes I made will finally load.  I checked with our system administrator and he's not aware of what could be causing this. 
    It happens on whatever the most recent file I was working on.  If it's a ColdFusion file, I get the "Could not find the included template" error.  If it's a change to my stylesheet, the styles will not load.  Again, in both instances it takes hitting F5 upwards of 40 times until the page displays correctly. 
    Has anybody else ever encountered such an issue?  It's happening on two separate virtual servers (both Win 2008), one has CF9 installed and the other CF10.  It get's frustrating having to referesh before the page or stylesheet get picked up.  Any help or suggestions are appreciated!
    Thanks.
    Brian

    azuro28 wrote:
    > I'm new to ColdFusion and after I edit a cfm
    (template.cfm) file using vim, I
    > got the following error:
    > Could not find the included template template.cfm
    >
    > page.cfm contains:
    > <cfinclude template="template.cfm">
    >
    That means that the file 'template.cfm' is not where
    ColdFusion needs it
    to be so that it can include it. Which is generally in the
    same folder
    at page.cfm with that syntax.

  • I formatted my macbookpro and followed the usual instructions to re-install but I get a message : Could not find installation information for this machine. This was at the OS X Utilities.My macbook is now blank.

    I formatted my macbookpro and followed the usual instructions to re-install but I get a message : Could not find installation information for this machine. This was at the OS X Utilities.My macbook is now blank.

    Try booting into Internet Recovery mode (booting whilst holding down the command, option and R keys). It will take a while to load as you're booting from Apple's servers across the Internet.
    Once there, use Disk Utility to erase the "Macintosh HD" partition. After the drive is formatted try reinstalling the OS.
    Good luck,
    Clinton

  • Unable to init TestServlet. Could not find driver.

    Hi I am testing a small servlet to get data of oracle database. However, it gives me an error in compilation with the init section. The details is as follows:
    The part of code where the problem is as follows:
    public void init(ServletConfig conf) throws ServletException {
    super.init(conf);
    Class.forName("oracle.jdbc.driver.OracleDriver");
              conn = DriverManager.getConnection(
              "jdbc:oracle:thin:@myserver:1521:cooler",
         "scott", "tiger");
    java142: not a statement
    Unable to init TestServlet. Could not find driver.
    I would appreciate any help/suggestion. Thanks in advance. Regards.

    I think the problem is not with Driver.
    U have to embed the code in either Service, doGet or doPost like method. U have directly written the code in servlet class if the code snippet is same as shown in Ques.
    Sunil

  • Hi there, i erased my macbook and trying to reinstall it, i keep getting an error message"could not find installation for this machine" please what can i do?

    Hi There,
    I erased my macbook and trying to reinstall it, i keep getting an error message "could not find installation for this machine" what must i do please?

    It is the internet connection.
    Try again or another internet connection.

  • Why this message "Could not find layout Default Echo GB"

    Why am I getting the message "Could not find layout Default Echo GB"  i.e. no Reverb effects?

    I get the same message and it would be interested if others have the same issuesthat is general bug
    The new GB 10.0.3 now lets you edit the Master Tracks Effects (Reverb and Echo), the legacy ones from GB11. However, when you click the Edit button at the bottom of the Plugin area on a Track, the Smart Controls window switches to to the Master Track and selects the (new) Effects tab. And this is where it gets stuck. It seems that it can't find the Plugin Settings. Maybe a file path issue.
    Anybody had luck to accessing those settings?
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • My internet continually disconnects.  When I added my airport express, I had to call Verizon (my provider) and have them "bridge" my modem.  Ever since, my connection constantly disconnects and puts up the message "Could not find a PPPoE server".

    My internet continually disconnects.  When I added my airport express, I had to call Verizon (my provider) and have them "bridge" my modem.  Ever since, my connection constantly disconnects and puts up the message "Could not find a PPPoE server".
    Any ideas?  I probably have something wrong in my computer settings.

    You should restore your modem to router condition and set the Airport Express to 'Bridge Mode'. A full explanation and the method of doing this is here:
    http://www.wilmut.webspace.virginmedia.com/notes/airport.html

  • While transfering to flash drive I get this message Could not find this item,no longer located in I:

    Hp touchscreen model #310-1125y

    Hi,
    This is an Explorer error, please use the following methods to fix:
        http://answers.microsoft.com/en-us/windows/forum/windows_7-files/error-could-not-find-this-item-this...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • InfoSpoke fails with message "Could not open file on application server"

    BW Experts,
    I created an InfoSpoke that is configured to extract to a flat file. The name of the file is specified using a logical filename. During extraction, the infospoke reports the error message "Could not open file on application server" adnd  marks the extraction process as red(failed). I have tried to run the InfoSpoke in background mode and in dialog mode and the same error appears. After i run in dialog mode, i checked SU53 for authorization errors and did not find any. I also tried changing the Logical filename setup in transaction FILE to a more "friendly" directory in which i'm sure i have authorizations (e.g. my UNIX home directory) and im still getting errors.
    Can you please share your thoughts on this? Any help will greatly appreciated. I also promise to award points.

    Hi Nagesh,
    Thanks for helping out.
    If i configure the InfoSpoke to download to a file using "File Name" option and also check the "Application server" checkbox, the extract works correctly (extraction to the defualt SAP path and filename=infospoke name). If i configure the InfoSpoke to download to the local workstation, the InfoSpoke also works correctly. It's only when i configure it to download to the application server and use the "Logical filename" option, that i encounter a failed extract.
    Here are the messages is the Open Hub Monitor:
    (red icon) Request No.147515
    0 Data Records
    Runtime 1 sec.
    (red icon)Run No. 1
    0 Data Records
    Runtime 1 sec.
    Messages for Run
    Extraction is running RSBO 305
    Could not open file on application server RSBO 214
    Request 147515 was terminated before extraction RSBO 326
    Request 1475151: Error occured RSBO 322
    If i clink on the error message, no messages nor clues are displayed. Note, this is a new InfoSpoke that is currently in the dev system.
    Please help.

  • Warning Messages - Could not find schema information for the element applicationSettings - App.Config of a console app

    This is my app.config file
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="IntelBrandFX.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
        </configSections>
      <appSettings>
        <add key="connStr" value="Data Source=tmvnasql1.tmvn.com;Initial Catalog=brandplan;Integrated Security=True"/>
      </appSettings>
      <applicationSettings>
        <IntelBrandFX.Properties.Settings>
          <setting name="IntelBrandFX_rollupViewerService_extract" serializeAs="String">
            <value>https://viewer.rollup.com/omdsp2008/extract.asmx</value>
          </setting>
        </IntelBrandFX.Properties.Settings>
      </applicationSettings>
    </configuration>
    And the Warning messages  are
    Message 1 Could not find schema information for the element 'applicationSettings'.
    Message 2 Could not find schema information for the element 'IntelBrandFX.Properties.Settings'.
    Message 3 Could not find schema information for the element 'setting'.
    Message 4 Could not find schema information for the attribute 'name'.
    Message 5 Could not find schema information for the attribute 'serializeAs'.
    Message 6 Could not find schema information for the element 'value'.
    Althought they do no hinder me from successfully running the project. these messages are annoying. I have seen many articles on the web but could nowhere find the exact schemas for that the above elements that I could add to the  DotNetConfig.xsd file.
    Could somebody give me an idea how to create xsds for the elements above and include in the dotnetConfig.xsd.
    I understand what needs to be done but not sure of the exact way to do it.
    Thanks,

    You don't need to modify the dotnetconfig.xsd.  All you need to do is generate an XSD for your section and let VS know where it is at.
    1) Create your XSD using any of the various tools available or by hand.
    2) Copy your XSD into the <VSDir>\Xml\Schemas directory.
    3) Create a catalog file for your schema.
    4) Restart VS and it'll load the XSD and give you Intellisense.
    Here's the MSDN documentation for it: http://msdn.microsoft.com/en-us/library/ms255821.aspx
    Michael Taylor - 8/18/09
    http://p3net.mvps.org

  • Help needed with application: "could not find the main class"

    I am pretty new to java and am trying to figure out applications a bit now. The one im working on does run within my editor, but when i "test" it or try to run it from within a .jar file it returns a "could not find the main class" error.
    I have a code similar to this:
    public class user{
    public static void main(String[] args){
    new user();
    public user{
    Does this have to do with it? I've been trying to get this right for a couple of days now, I just wanna be able to run it (on either my pc or another) without starting the Editor.
    Looking forward to receiving an answer..

    It sounds like you are missing the Main-Class attribute in your manifest file. Create a file 'manifest.mf' with the following line 'Main-Class: user'
    Then include that manifest in your jar:
    'jar -cfm user.jar manifest.mf user.class'
    Then run the jar: 'java -jar user.jar'
    http://java.sun.com/docs/books/tutorial/jar/basics/mod.html

  • Error message "Could not find active BDoc...." in "genstatus" transaction

    Hello
    we upgrade from CRM 2007 SP 5 to SP 9.
    in transaction GENSTATUS we get 2 kind of message.
    1. yellow messages
    2. red ERROR
    Generator group: GNREP
                                 LUTAB
    we already run the job  MW_GENERATE
    |Object Name                 |Gen. group|Generator|Status|Type|Message text                                                                                |
    CNBCCPSAP00070            CG
    GNREP
    E
    F
    Could not find active BDoc for TRANS_ID CNBCCPSAP00070 - Identification not possible via TransID / Name
    |CNBCCPSAP00070            CG|LUTAB     |         |E     |F   |Could not find active BDoc for TRANS_ID CNBCCPSAP00070 - Identification not possible via TransID / Name|
    Please assiste.
    Best regards
    Merav

    Hello Merav,
    The reason for such generation errors is that a replication object to distribute CNBCCPSAP00070 is existing but the related BDOC is not there. These types of replication objects and BDocs have to be maintained manually by customers.
    Please refer to SAP Note 1114576 (Deletion of RO CNBCCPSAP00070) and make the corrections.
    Afterwards kindly go to transaction GENSTATUS and mark the two lines and press generation button.
    Your issue would be solved.
    Thanks,
    Rohit

Maybe you are looking for

  • /oa_servlets/AppsLogin was not found on this server

    Hi, After Moving Our Application Tier (11.5.10.2) from HP-UX to Linux , we encountered the following Problems in the web browser Not Found The requested URL /oa_servlets/AppsLogin was not found on this server -> Cannot connect to ERP Do not get Login

  • How can I use this code in Muse?

    Please, tell me with details how to paste this code, which the "add this" widget on Muse to appear... <!-- AddThis Smart Layers BEGIN --> <!-- Go to http://www.addthis.com/get/smart-layers to customize --> <script type="text/javascript" src="//s7.add

  • Tax Reconciliation Report

    I've seen a few references to a "Tax Reconciliation Report" in posts on this forum.  Can someone please send me to the transaction to access this report? Thanks!

  • Smartform to PDF and send it to email

    Hi. I created a Smartform. In that i used 'SSF_FUNCTION_MODULE_NAME'. It is working fine. I converted it into PDF format by using this function module 'CONVERT_OTF'. it is also converted fine. Now i want send that PDF Document to my gmail ID. How i w

  • Customer balances

    Hello I need an urgent help ,probably somebody can help me Issue : 1) We have few open items from 2006 in a customer account (5 documents) now we need to move these balances to a different customer account. 2)We have to transfer amount  59,64,216 fro