EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   Lost Chars (https://www.eqemulator.org/forums/showthread.php?t=23956)

fdraven 12-08-2007 12:33 PM

Lost Chars
 
Hey all, wonder if someone could give me a helping hand. I had everything working fine till I sourced in the new code peq 1070. When I did this I lost all chars that were created, ruleset is gone and my variables got wiped. Does anyone have any idea how to get this stuff back without starting at ground zero? What did I do wrong so I will know next time. Also the sql db shows everything under my peqdb as could not fetch columns? so i cant even add variables or permissions now.
Thankyou
Fdraven

sdabbs65 12-09-2007 01:37 PM

...
 
Quote:

Originally Posted by fdraven (Post 140826)
Hey all, wonder if someone could give me a helping could not fetch columns? so i cant even add variables or permissions now.
Thankyou
Fdraven


Please provide output of statement SHOW GRANTS .
remove any passwords ...

fdraven 12-09-2007 02:55 PM

Output
 
I dont know exactly what you mean, i reloaded the source files and now it shows things in the database and doesnt tell me it cant fetch the columns, but I still cannot edit anything, like to redo the variables table and what not.
Fdraven

GeorgeS 12-10-2007 03:19 AM

If you executed 'load_empty_users.sql' or 'drop_users.sql' then data are lost i'm afraid. Otherwise data should still be there, but you lost permissions somehow.

You need to back up you tables first. DL 'MySQL Front' and examine you database.

GeorgeS

sdabbs65 12-10-2007 06:34 AM

.
 
if that don't work go to start /run/cmd.exe
mysql -u yourusername -pyourpass

show grants;

it should come back saying someone has permission to look/edit the sql server.

if you can't log in your permissions were deleted.

fdraven 12-10-2007 07:54 AM

Hmm
 
Okay your rite my permissions arent there anymore. I went into sql admin and redid my permissions but then when i go to query browser it doesnt show the peq database? any ideas on how to fix this? the original user name was root or thats what I have been using, now that is in the sql admin but I cannot issue anything with it for some reason, everythings blanked out.
Fdraven

fdraven 12-10-2007 08:00 AM

okay
 
figured how to set the premissions in admin, now i can see the peq database, but as with root as i said above I still cannot edit anything in the tables?
Fdraven

sdabbs65 12-10-2007 11:54 PM

sql
 
Quote:

Originally Posted by fdraven (Post 140862)
figured how to set the premissions in admin, now i can see the peq database, but as with root as i said above I still cannot edit anything in the tables?
Fdraven

mysql> SELECT Host,User FROM user;

You mustn't use the root user for security reasons. Instead, create or use another account. Create a new account if necessary. To do this:

If EQEmu will be running on THIS computer:
mysql> insert into user set Host='localhost', User='eqemu', Password=password('eqpassword');
(replace "eqemu" with your desired username and "eqpassword" with the desired password for the account)

If EQEmu will be running on ANOTHER computer:
mysql> insert into user set Host='192.168.0.100', User='eqemu', Password=password('eqpassword');
(replace "192.168.0.100" with the IP address of the EQEmu server, "eqemu" with your desired username, and "eqpassword" with the desired password for the account)


PS: I stole this from the wiki I hope the wiki Guard don't catch me!
http://www.eqemulator.net/wiki/wikka...kka=MySQLSetup

sfisque 12-11-2007 06:10 AM

a better way to do this is via the "GRANT" command:

http://dev.mysql.com/doc/refman/5.0/...ing-users.html

something like:


GRANT ALL on eqemu_database_name.* to 'the_user_name_you_want'@'the_host_name' identified by 'this_users_password';

that way you create the privs along with the user in question, and they have access to the tables of your database from the specified host (use localhost if you're running mysql on the same host as your emu server).

hope this helps

== sfisque

ps: dont forget to "flush privileges" afterwards or the new login wont be active yet.

sdabbs65 12-11-2007 08:41 AM

[QUOTE=sfisque;140885]a better way to do this is via the "GRANT" command:

[QUOTE]

the Wiki is incorrect hmmm go figgure.
yes thats a Differant way but mine is faster...

fdraven 12-11-2007 11:48 AM

Jeesh
 
Okay im getting so annoyed lol, i did the grant access thing, flushed it and all that, now I am back to where the sql query browser says"cannot fetch columns" under everything in the peq database as well as the other db's that are there. I even went into the administrator package, shows the user i set up as well as the old root one, and down at the bottom where you can look at the catalog's it also says cannot fetch columns. Any ideas?
Fdraven

sdabbs65 12-11-2007 02:10 PM

Quote:

Originally Posted by fdraven (Post 140892)
Okay im getting so annoyed lol, i did the grant access thing, flushed it and all that, now I am back to where the sql query browser says"cannot fetch columns" under everything in the peq database as well as the other db's that are there. I even went into the administrator package, shows the user i set up as well as the old root one, and down at the bottom where you can look at the catalog's it also says cannot fetch columns. Any ideas?
Fdraven


Just reinstall mysql and everything will work that happened to me once and thats how I fixed it after 3 days of working on it i gave up and reinstalled.


All times are GMT -4. The time now is 03:59 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.