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-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
  #2  
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
  #3  
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
  #4  
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
  #5  
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:22 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3