MuCore not connecting to SQL Server 2005

Results 1 to 11 of 11
  1. #1
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    MuCore not connecting to SQL Server 2005

    Hi, thanks for reading, im having some trouble trying to connect MuCore to a remote VPS IP, i have no trouble when using MuCore in localhost, i just write "127.0.0.1" or "PC-NAME\SQL-INSTANCE", but when i try to connect remotly via MSSQL/ODBC i get this:

    "Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 66.XXX.XXX.XXX in E:\xampp\htdocs\engine\adodb\drivers\adodb-mssql.inc.php on line 555
    66.XXX.XXX.XXX: Connection error to server '66.XXX.XXX.XXX' with user 'sa'"

    Im using SQL Server 2005 Express Edition (i might install Developer/Enterprise edition later)
    I already opened the port 1433, remote MuMaker works perfectly, web doesnt.

    This is what my "config.php" looks like:

    Code:
    core['server_use_2_db'] = "0"; 
    
    ##############################################
    /*$core['connection_type'] = "ODBC";*/
    $core['connection_type'] = "MSSQL";
    #########################################
    
    $core['db_host'] = "66.XXX.XXX.XXX"; //Remote VPS IP 
           
    $core['db_name'] = "MuOnline";    
         
    $core['db_user']= "sa";
    
    $core['db_password'] = "password";
    Any ideas?, thanks for reading.


  2. #2
    Proficient Member R3jectZ is offline
    MemberRank
    Jun 2011 Join Date
    PhilippinesLocation
    198Posts

    Re: MuCore not connecting to SQL Server 2005

    ei edit the $core['db_password'] = "password"; THE DB PASSWORD TO YOUR SQL PASSWORD.

  3. #3
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    Re: MuCore not connecting to SQL Server 2005

    I wrote "password" for not writing my real SQL password, i know that, i wrote the user and password correctly, the thing is the host i think, i dont know how PHP solves the SQL Instance, i dont know. Thanks for answering.

  4. #4
    Account Upgraded | Title Enabled! ggragonss is offline
    MemberRank
    Mar 2012 Join Date
    HongKongLocation
    380Posts

    Re: MuCore not connecting to SQL Server 2005

    Maybe you can stop the Windows firewall of your VPS. Mybe not only 1433 port need set across the firewall
    And need set Surface Area Configuration --> Database Engine --> Remote Connections --->Using TCP/IP
    Then let it auto startup and restart MSSQL

  5. #5

    Re: MuCore not connecting to SQL Server 2005

    i would use sql 2000 for no such a problems.

  6. #6
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    Re: MuCore not connecting to SQL Server 2005

    Im having some trouble with SQL 2000 not listening on port 1433, also im using Windows Server 2008, i think SQL 2000 is not compatible

    @ggragonss: i already did that.

    Now i wrote $core['db_host'] = "IP,1433"; and it apparently CONNECTS to the VPS, but now shows MuCore shows "Login failed for user 'webuser.".

    I checked the VPS Eventlog and this is what i get in COMPUTER\SQLINSTANCE:

    Login failed for user 'sa'. [CLIENT: XXX.XXX.XXX.XXX] //Client:Remote MuCore IP
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: XXX.XXX.XXX.XXX]

  7. #7

    Re: MuCore not connecting to SQL Server 2005

    maybe try to do something with ODBC Connection?

  8. #8
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    Re: MuCore not connecting to SQL Server 2005

    I just realized the webhosting is running under linux, and "php_mssql" extension is not enabled, is there any extra parameters to write when using ODBC connection? if i try it with ODBC i get:

    Code:
     For odbc Connect(), 66.XXX.XXX.XXX is not used. Place dsn in 1st parameter. //More parameters needed?
    
    Warning: odbc_connect() [function.odbc-connect]: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /public_html/engine/adodb/drivers/adodb-odbc.inc.php on line 60
    MuOnline: Connection error to server 'MuOnline' with user 'sa'
    Edit: Im changing the webhost, i ll stick to MSSQL connection, any ideas?, i cant use SQL 2000 because im using Windows Server 2008
    Last edited by juajua123; 08-07-12 at 05:17 AM.

  9. #9

    Re: MuCore not connecting to SQL Server 2005

    oh so ur web is hosted on linuxnow or smthing? u must use mssql plugin for apache/xampp for linux etc..
    hmm
    and yea its better with mssql connection
    u must keep trying;x

  10. #10
    Account Upgraded | Title Enabled! juajua123 is offline
    MemberRank
    Aug 2010 Join Date
    203Posts

    Re: MuCore not connecting to SQL Server 2005

    I solved the problem, by connecting with "REMOTEIP\INSTANCE" and changing some stuff in SQL. Thanks for replying all.

  11. #11

    Re: MuCore not connecting to SQL Server 2005

    aha cool gl !: D



Advertisement