Author Topic: altering settings on my server  (Read 1196 times)

vennatorr

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
altering settings on my server
« on: April 06, 2008, 06:46:44 am »
i run a planeshift server on my own machine for personal use. i built it using Induane's howto.

it works fine but now i want to alter some of the settings. i've gone into /src/server/database/mysql and edited the relevant file. now i need to update the database. here's what i did...

Quote
me@desktop:~$ cd /home/me/software/planeshift/planeshift_svn/src/server/database/mysql/
me@desktop:~/software/planeshift/planeshift_svn/src/server/database/mysql$ gedit movement.sql
me@desktop:~/software/planeshift/planeshift_svn/src/server/database/mysql$ mysql -u planeshift -pplaneshift planeshift $@
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 5.0.45-Debian_1ubuntu3.3-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use planeshift;
Database changed
mysql> source movements.sql
ERROR:
Failed to open file 'movements.sql', error: 2
mysql> quit
Bye

any idea what i'm doing wrong here?
thanks.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: altering settings on my server
« Reply #1 on: April 06, 2008, 08:08:01 am »
well you have not told us what you changed to start, and without knowing that there is no way for us to know what you got that error.

vennatorr

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Re: altering settings on my server
« Reply #2 on: April 06, 2008, 08:43:52 am »
well, i changed the run speed, but that wouldn't explain why mysql couldn't find the file would it?

*edit*



i've just removed the modified file and restored the original and it's still not working.

me@desktop:~/software/planeshift/planeshift_svn/src/server/database/mysql$ ls movement*
movement.sql

the file is definitely there. no idea why mysql is saying it can't find it.

*edit*

why did you edit my post neko?
« Last Edit: April 06, 2008, 09:27:56 am by neko kyouran »

neko kyouran

  • Guest
Re: altering settings on my server
« Reply #3 on: April 06, 2008, 09:28:21 am »
becuase it violated the forum rules for duplicate posting.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: altering settings on my server
« Reply #4 on: April 06, 2008, 09:32:30 am »
try
Code: [Select]
DROP TABLE `movement_modes`;
source movement.sql;

vennatorr

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Re: altering settings on my server
« Reply #5 on: April 06, 2008, 10:56:04 am »
neko - i've taken another look at the forum guidelines and it does say that posters should not "Make multiple posts on the same subject for the purpose of getting attention paid to your issue", which wasn't what i was doing. i tried fixing the problem in a different way and when that didn't work i reported back on it's results to help clarify the problem. i wasn't bumping the thread either. not exactly sure what rule i broke here, care to elaborate?

caarie - thanks. i'll try that.
« Last Edit: April 06, 2008, 11:07:47 am by vennatorr »

Xillix Queen of Fools

  • Veteran
  • *
  • Posts: 1876
    • View Profile
Re: altering settings on my server
« Reply #6 on: April 07, 2008, 10:32:19 pm »
no two posts in a row, just edit your last one.

Lanarel

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 782
    • View Profile
Re: altering settings on my server
« Reply #7 on: April 08, 2008, 01:30:50 pm »
Quote
sktop:~/software/planeshift/planeshift_svn/src/server/database/mysql$ gedit movement.sql
....
mysql> source movements.sql
ERROR:
Failed to open file 'movements.sql', error: 2
any idea what i'm doing wrong here?
thanks.

Yes, I have an idea :) You edit the file movement.sql but try to source file movementS.sql. Try it without the S.