Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Connecting to mysql

 
Post new topic   Reply to topic Printable version
 View previous topic  Yes, you can "warp" players ... Post :: Post Continuum client encryption  View next topic  
Author Message
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Sun Jun 11, 2006 6:28 pm    Post subject: Connecting to mysql Reply to topic Reply with quote

Well, I got mysql running on my (Fedora 5)computer. Figured out how to add users and added a user asss with a password, and a database asss. The asss server and mysql server are running on the same computer. Specifically, I used the command "grant all privileges on *.* to asss@localhost
identified by 'a password' with grant option;"
Anyway, I set up my global.conf to match that, everything should be working fine. But when I start up asss with the two mysql modules loaded, I get this error: "W <mysql> connect failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
I already read through the userguide, devguide, and the asss wiki on this, so I decided I'd check here to get some help. >_>
Thanks in advance.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Jun 11, 2006 9:05 pm    Post subject: Reply to topic Reply with quote

What did you use for the ip on asss? Make sure it's localhost. Check the ports. Have you set up a db before? Besure you know your doing everything exactly right. Sometimes you have to do more than just adding a user. Make sure the database name is correct. I don't have much experiance with ASSS. I did run a test zone but I never used mysql. Good luck.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jun 11, 2006 10:14 pm    Post subject: Reply to topic Reply with quote

Do a
Code: Show/Hide
mysqladmin version -p
and tell us where the UNIX socket is located. You may need to run the command without a -p if you have no root mysql pass.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Tue Jun 13, 2006 3:36 am    Post subject: Reply to topic Reply with quote

It's probably because the pre-compiled version is using an older version of the client library that looks in /tmp/mysql.sock, and newer servers use /var/run/mysql/sock or something like that. Compile database.so yourself, against the version of the client library on your system. Or force it to use tcp instead of unix sockets (I think setting host to "127.0.0.1" instead of "localhost" will work, but be sure mysqld is listening on the tcp port).

[update] You might also be able to fix this by editing /etc/my.conf. I don't know enough about mysql to say for sure.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Jun 13, 2006 8:54 am    Post subject: Reply to topic Reply with quote

I was able to help him in game by changing run-asss to export the correct value of $MYSQL_UNIX_SOCK. For some reason, the my.cnf fix didn't work.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Tue Jun 13, 2006 10:14 pm    Post subject: Reply to topic Reply with quote

Yeah, Brain helped me out and got it working for me. I'm proud I got as far as I did without any help, but... where is it you looked to find out the $MYSQL_UNIX_SOCK thing? See, I had no clue where to look... hopefully I can figure it out on my own next time.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Jun 14, 2006 12:03 am    Post subject: Reply to topic Reply with quote

I googled your error, and found a page in the mysql online documentation explaining how to use that enviroment variable.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Thu Jun 15, 2006 11:27 pm    Post subject: Reply to topic Reply with quote

=o

I don't know whether to feel dumb or not.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 26 page(s) served in previous 5 minutes.

phpBB Created this page in 0.413642 seconds : 32 queries executed (93.0%): GZIP compression disabled