Results 1 to 8 of 8

Thread: MS SQL support?

  1. #1
    New Pligger Two Face's Avatar
    Joined
    May 2006
    Posts
    4
    Thanks
    Received:0
    Given: 0

    MS SQL support?

    I run my own server with Windows 2003 Enterprise with SQL 2005 due to demands from other ventures. I am trying to set up Pligg on my SQL database, but there does not seem to be support for SQL. I was wondering if anyone has successfully install Pligg on a SQL server.

    I am able to the to the install2.php page and it tells me it cannot login with information provided. I did set up a database for Pligg and I am using the correct login information. Any ideas or am I out of luck?

  2. #2
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    hey

    Pligg uses something called the ezSQL library to handle database layer

    now pligg currently only supports mysql.
    so you on your own when trying this out
    but i'll try and help

    look in your libs folder
    you'll see a file called db.php
    this is the file that handles the database layer

    download a copy from
    http://php.justinvincent.com/downloads/ez_sql_1.26.zip
    open the ms-sql folder
    drag and drop the ez_sql.php to the libs folder.
    in ez_sql.php enter you ms-sql username and password.
    backup your current db.php
    and rename your ez_sql.php to db.php
    and try it out

    I do't have ms-sql so please post what you find.
    i'm sure people will love the multi platform

    only probelm is when making the tables, structure of mysql table maybe different from ms-sql so you might have to do them manually.

    if you do have a problem theres no support cos pligg is made for mysql.
    hope it works

  3. #3
    New Pligger Two Face's Avatar
    Joined
    May 2006
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Thank you, I will try that now and let you know what happens.

  4. #4
    New Pligger Two Face's Avatar
    Joined
    May 2006
    Posts
    4
    Thanks
    Received:0
    Given: 0
    The file is corrupt. I cannot decompress the folder due to some parts not transfering. I have tried to download many times. I will try to find a copy of this somewhere else.

  5. #5
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    http://savant.oioplus.com/text/

    here you go i've mirrored it.

  6. #6
    New Pligger Two Face's Avatar
    Joined
    May 2006
    Posts
    4
    Thanks
    Received:0
    Given: 0
    Thank you for hosting it; your file worked great. I tried that, but got the same error as before:

    Cannot connect to the database server using the following information.
    Server: ***
    User: ***
    Password: ***

    Fatal error: Call to undefined function _() in D:\Inetpub\wwwroot\Pligg\install\install2.php on line 113

    I even deleted the user login info and rebuilt it in SQL, but no go. I still think there is some platform issue with SQL.

  7. #7
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    Are you sure you're starting the install from the beginning?

    You get the error: Call to undefined function _()

    The function _() is added to dbconnect.php if the install script sees that your php doesn't have support for _() built in. Either you're not doing the install or the dbconnect isn't writeable and it can't update it.

  8. #8
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    Thanks
    Received:0
    Given: 0
    i forgot about dbconnect.php

    when you replace db.php with the one with MS-sql

    find this line.

    define("EZSQL_DB_USER", ""); // <-- MS SQL Server db user
    define("EZSQL_DB_PASSWORD", ""); // <-- MS SQL Server db password
    define("EZSQL_DB_NAME", ""); // <-- MS SQL Server db pname
    define("EZSQL_DB_HOST", ""); // <-- MS SQL Server server host

    replace those lines with

    PHP Code:
    // function _($s) {
    // return $s;
    // }

        
    include_once("dbconnect.php"); 
    and try the installation.

    I thought if we didn't care about dbconnect.php and have the login details in db.php it might just work.
    but since you're doingthe whole installation this might be whats wrong.

    not sure sry.

Similar Threads

  1. Pay for support.
    By NeoMi in forum Questions & Comments
    Replies: 2
    Last Post: 08-27-2011, 01:08 AM
  2. support for lighttpd
    By pablasso in forum Questions & Comments
    Replies: 3
    Last Post: 06-23-2009, 11:43 AM
  3. UTF-8 support
    By sense in forum Questions & Comments
    Replies: 14
    Last Post: 04-04-2009, 09:46 AM
  4. How to pay for support??
    By mactac in forum Questions & Comments
    Replies: 7
    Last Post: 12-31-2008, 11:03 PM
  5. UTF-8 support
    By skara in forum Questions & Comments
    Replies: 0
    Last Post: 10-16-2006, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg