开发者

Is SQLite strong enough to use as wordpress database? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i'm just curious. so i ask this particular question about SQLite. I haven't use this type of database extensively. but care to explain what is the basic different between SQLite and Mysql ?

The reason behind all of this is i just want to know whether it 开发者_C百科possible to use it to store wordpress data and act as a database ?


SQLite is a file database. There is no running process or anything, it's literally just a regular file on your disk. MySQL is a full fledged database server, something that has to be run independently. SQLite is best suited for when applications need a small database to store settings or data.

You could do it with SQLite, but SQLite isn't really meant to be used concurrently (ie, by multiple users accessing it at once). So unless it's some dinky internal site that will only be accessed by a couple people, I wouldn't recommend it.


Currently, the only database supported by WordPress Version 2.9 is MySQL version 4.1.2 or greater.


Technically, you can use WordPress with SQLite. If you don’t have much traffic it is an option.


SQLite is an in-process or desktop class database. MySQL is a server class database. I'm a little notorious here for promoting server-class engines over desktop or in-process -class engines for web sites, because no matter how well you do at your in-process database engine you are going to have concurrency problems when a whole bunch of people try to access your site at the same time.

However, I think in this case you might do just fine with SQLite, as long as you are very careful about what plug-ins you install. The reason is that you're likely only going to have one person updating your wordpress blog, and probably in-frequently at that. So as long as you're careful about using plug-ins that don't get to write to the database for every visitor, sqlite should do fine.


It's trivially easy to install a copy of MySQL and a webserver onto any machine, so while you could use SQLite, it would be a lot more difficult than simply grabbing a copy of MySql and installing it.

WordPress does not support anything but MySQL out-of-the-box, but it is possible for a database-plugin to replace that support with just about anything, if it really wanted to.

If you want to test this locally or something, just grab a copy of XAMPP and install WordPress on that. Easy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜