logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Create a new database in MySQL

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
hot4robots



Joined: 04 Apr 2009
Posts: 1

PostPosted: Sat Apr 04, 2009 18:29    Post subject: Create a new database in MySQL Reply with quote

I havent done this in awhile. Things have gotten pretty complicated. All I want to do is start NWNX with a MySQL database.

Is there anyone willing to walk through the right software to download to run a server and create a new database? 4-5 years ago it was pretty simple in a GUI. Now I cant find anywhere where you actually create a database. Just talk about instances and schemas. If someone could point out a tutorial on how to get it started Im sure I could do the rest.
Back to top
View user's profile Send private message
metamud



Joined: 30 Sep 2008
Posts: 16

PostPosted: Sat Apr 04, 2009 20:02    Post subject: Reply with quote

http://www.mysqltutorial.org/

Or specifically about creating tables:
http://dev.mysql.com/doc/refman/5.1/en/create-table.html

This may sound incredibly sick, but have you tried Google?

If I enter trivial queries like "mysql tutorial" or "mysql create table" there's a vast array of examples, tutorials, howtos and what-not to choose from....

If you're going to use NWNX, you're going to have to do some of the "finding out" yourself, and there really is an enormous amount of examples you can work your way through, almost all of which should at least get you started!

Good luck!
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sat Apr 04, 2009 21:46    Post subject: Reply with quote

Essentially, all you need is mysql. If you're using Windows, I'd strongly recommend the XAMPP package. It's like a MySQL/Apache server bundle. Fairly compact, but it gets the job done and provides a tool that makes it really easy to make databases. Open the control program and start both Apache and MySQL, then open your web browser and point it to http://localhost/phpmyadmin/

If you're using Linux, the easiest way is to install apache2, mysql-server and phpmyadmin. To do this on Ubuntu (Debian is similar), type at the terminal:

Code:
sudo apt-get install apache2 php5 php5-mysql mysql-server libapache2-mod-php5


Then you can point your web browser to http://localhost/phpmyadmin/ as in Windows.

phpMyAdmin makes it sort-of obvious how to create databases, users and tables in MySQL, and I for one use it all the time. I suppose you could just go minimal and install just MySQL then use the command line client, but it's really a lot easier with a nice GUI.
Back to top
View user's profile Send private message
Bal



Joined: 17 Jan 2008
Posts: 6

PostPosted: Sat Apr 04, 2009 22:24    Post subject: Reply with quote

If you go with XAMPP you should know that it's intended for dev only and can leave your database open to attack. It's very good to set up a database and start playing around, but you shouldn't use XAMPP for anything that people you don't know can have access to..
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Sun Apr 05, 2009 8:55    Post subject: Reply with quote

I just cleaned up an old tutorial I helped write and put it up for you at http://mercuric.net/NWN/mysql.html. Hope it helps Smile
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sun Apr 05, 2009 12:35    Post subject: Reply with quote

Bal wrote:
If you go with XAMPP you should know that it's intended for dev only and can leave your database open to attack. It's very good to set up a database and start playing around, but you shouldn't use XAMPP for anything that people you don't know can have access to..


Oh yeah, that's true. I forgot about that. But if you have a decent firewall and only the NWN ports open you should be okay anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group