flagflag  If you want to see English page, please click "English" Button at Left.

Re: Landtool.php

このトピックの投稿一覧へ

なし Re: Landtool.php

msg# 1.2.1
depth:
2
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-11-28 9:59
lloy0076  Just popping in   投稿数: 5
No, I switched the whole configuration - including the simulator's OpenSim.ini to MySQL:

Robust.ini:

...
[DatabaseService]
; PGSQL
; Uncomment these lines if you want to use PGSQL storage
; Change the connection string to your db details
;StorageProvider = "OpenSim.Data.PGSQL.dll"
;ConnectionString = "Server=localhost;Database=opensim;User Id=opensim; password=***;"

; MySQL
; Uncomment these lines if you want to use MySQL storage
; Change the connection string to your db details
StorageProvider = "OpenSim.Data.MySQL.dll"
ConnectionString = "Data Source=127.0.0.1;Database=opensim;User ID=opensim;Password=***;Old Guids=true;"
...

MoneyServer.ini

[MySql]
;
;Connection parameters of MySQL
hostname = localhost ; Name of MySQL Server
database = opensim
username = opensim
password = ***

pooling = false
port = 3306
...

/usr/share/nginx/www/currency/include/config.php

// Please set MySQL DB access information
define('OPENSIM_DB_HOST', 'localhost');
define('OPENSIM_DB_NAME', 'opensim');
define('OPENSIM_DB_USER', 'opensim');
define('OPENSIM_DB_PASS', '***');
//
define('OPENSIM_DB_MYSQLI', true); // if you use MySQLi interface, please set true
...

I know that the landtool.php can actually access the correct MySQL database because I have put a heap of error_log("") messages in currency/include/opensim.mysql.php; for example:

function opensim_get_region_info($region, &$db=null)
{
error_log("opensim_get_region_info for $region");
global $OpenSimVersion;

if (!isGUID($region)) return null;
if ($region=='00000000-0000-0000-0000-000000000000') return null;

if (!is_object($db)) $db = opensim_new_db();
if ($OpenSimVersion==null) opensim_get_db_version($db);

$sql = "SELECT regionHandle,regionName,regionSecret,serverIP,serverHttpPort,serverURI,locX,locY FROM regions WHERE uuid='$region'";
error_log("SQL: opensim_get_region_info '$sql'.");
$db->query($sql);

list($regionHandle, $regionName, $regionSecret, $serverIP, $serverHttpPort, $serverURI, $locX, $locY) = $db->next_record();

error_log("Region Handle $regionHandle and name $regionName.");
...

The $regionHandle and $regionName are set correctly both when run by the code and when I run the SQL (logged above $db->query($sql)).

Everything should I think be processing well however I have noticed that the code has a nasty tendency to silently fail on missing tables and such and am wondering if I am missing something from some other function.


DSL
投票数:102 平均点:4.51

投稿ツリー

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 4月翌月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
<今日>

オンライン状況

121 人のユーザが現在オンラインです。 (2 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 121

もっと...

アクセスカウンタ

今日 : 5324532453245324
昨日 : 1529415294152941529415294
総計 : 2340002423400024234000242340002423400024234000242340002423400024
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com