View previous topic :: View next topic |
Author |
Message |
hot4robots
Joined: 04 Apr 2009 Posts: 1
|
Posted: Sat Apr 04, 2009 18:29 Post subject: Create a new database in MySQL |
|
|
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 |
|
|
metamud
Joined: 30 Sep 2008 Posts: 16
|
Posted: Sat Apr 04, 2009 20:02 Post subject: |
|
|
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 |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sat Apr 04, 2009 21:46 Post subject: |
|
|
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 |
|
|
Bal
Joined: 17 Jan 2008 Posts: 6
|
Posted: Sat Apr 04, 2009 22:24 Post subject: |
|
|
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 |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Sun Apr 05, 2009 8:55 Post subject: |
|
|
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 _________________ 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 |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sun Apr 05, 2009 12:35 Post subject: |
|
|
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 |
|
|
|