The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Local Database Support
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #1
Local Database Support
Hello guys!!!

How this new feature works?

Can I use my old database?

Thanks

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
12-26-2013 02:53 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: Local Database Support
Seems to be the very same as the MySQL, but instead of using the SQL server, the Sphere itself will handle the database using SQLite. , you can store a lot of things without the need of an external SQL server, since it is handled by Sphere's SQLite. As the name suggest, you will not be able to access those data through other services (web and etc...), you will still need the SQL server if you want to use the database with your webpage, like Web Paperdoll script.

In a few words, it is a MySQL database that is used only by Sphere with no need of external SQL server, it may be faster for in-game only data storing

You can clone your old database to the local, but it is limited to Sphere-Only (or any other SQLite program)

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 12-26-2013 05:31 AM by Feeh.)
12-26-2013 05:21 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Feeh's post
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: Local Database Support
Yes, it's like SQL server but integrated in the sphere itself, I'm moving my add dialog script to use this SQLite addition, it's gonna be faster and better Smile
12-26-2013 05:30 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Local Database Support
Thank you guys!

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
12-26-2013 06:18 AM
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #5
RE: Local Database Support
Have you really tested whether mysql influences game ? I have huge database in my living shard for instance and it is working as "local" and i'm sharing mydatabase with remote connection via permission and editing the content with workbench. I don't really get the main reason of change like this. I do not think it will change anything. Anyway, i bored changing all thing week by week. Really bored Tongue

I suppose the main reason is people do not know how to setup mysql server locally, isn't it Big Grin. Dont make everything so easy guys.
(This post was last modified: 12-26-2013 08:22 PM by Avatar.)
12-26-2013 08:20 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #6
RE: Local Database Support
MySQL was not replaced, it's still how it was. SQLite was added as another DB option and it is much faster then a client<->server application.
There are some plans in the future for using this internally, but I thought I would make it available in scripts instead of just sitting there waiting for implementation in the core.

To add to Feeh's comment, you can access the database from web if your server is on your local machine and the files is placed in a location accessible to it, but this is not the intended use of SQLite Smile

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
12-27-2013 12:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Ben's post
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #7
RE: Local Database Support
Totally misunderstood, at the beginning, i thought you completely changed mysql stuff Smile) Sorry. I got it.
12-27-2013 12:16 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #8
RE: Local Database Support
what benefits do you get using mysql with sphere?
12-27-2013 07:14 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #9
RE: Local Database Support
Having data stored in other source to access it however and wherever you want, ie with PHP, you can do quick search throught the data you have, you can store a lot of things without increasing your save files and time, you don't have to access sphere in each output of data thus having it free for it's proccesses... idk... just look here http://arstechnica.com/information-techn...a-to-disk/ or search in google the million of reasons to use a DataBase instead of local writing on disk from the program itself.
12-27-2013 08:26 AM
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #10
RE: Local Database Support
So Why dont we turn sphereserver save process totally to database from local writing. Big Grin Hahaha, That would be awesome and some pain in the ass. I can see that ups. Big Grin
(This post was last modified: 01-01-2014 06:19 AM by Avatar.)
01-01-2014 06:18 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Avatar's post
Post Reply 


Forum Jump:


User(s) browsing this thread: 6 Guest(s)