Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2007, 12:33 PM
fdraven
Fire Beetle
 
Join Date: Aug 2007
Posts: 9
Default 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
Reply With Quote
  #2  
Old 12-09-2007, 01:37 PM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default ...

Quote:
Originally Posted by fdraven View Post
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 ...
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
  #3  
Old 12-09-2007, 02:55 PM
fdraven
Fire Beetle
 
Join Date: Aug 2007
Posts: 9
Default 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
Reply With Quote
  #4  
Old 12-10-2007, 03:19 AM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,474
Default

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
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
  #5  
Old 12-10-2007, 06:34 AM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default .

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.
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
  #6  
Old 12-10-2007, 07:54 AM
fdraven
Fire Beetle
 
Join Date: Aug 2007
Posts: 9
Default 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
Reply With Quote
  #7  
Old 12-10-2007, 08:00 AM
fdraven
Fire Beetle
 
Join Date: Aug 2007
Posts: 9
Default 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
Reply With Quote
  #8  
Old 12-10-2007, 11:54 PM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default sql

Quote:
Originally Posted by fdraven View Post
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
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
  #9  
Old 12-11-2007, 06:10 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

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.
Reply With Quote
  #10  
Old 12-11-2007, 08:41 AM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Cool

[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...
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
  #11  
Old 12-11-2007, 11:48 AM
fdraven
Fire Beetle
 
Join Date: Aug 2007
Posts: 9
Default 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
Reply With Quote
  #12  
Old 12-11-2007, 02:10 PM
sdabbs65
Dragon
 
Join Date: Dec 2003
Location: Earth
Posts: 818
Default

Quote:
Originally Posted by fdraven View Post
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.
__________________
hosting Eqemu/Runuo/wow Emulators.

www.cheaterz.info
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:36 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3