GTX Posted March 20, 2013 Share Posted March 20, 2013 Hello. I'm really out of ideas! What's this error? ERROR: mysql/s_connect.lua:6: dbConnect failed; Can't connect to local MySQL server through socket '' (111) If I put unix_socket, this comes out; ERROR: mysql/s_connect.lua:6: dbConnect failed; Can't connect to local MySQL server through socket '/usr/lib32/libmysqlclient.so.15/' (20) Script: local hostname = "127.0.0.1" local database = "mg" local username = "db_user" local password = "db_user123@" local mysql = dbConnect("mysql", "dbname="..database..";"..hostname, username, password) if mysql then outputChatBox("MySQL has been successfuly connected!", root, 255, 255, 255, true) end Thanks in advance. Link to comment
novo Posted March 20, 2013 Share Posted March 20, 2013 Try local hostname = "127.0.0.1" local database = "mg" local username = "db_user" local password = "db_user123@" local mysql = dbConnect("mysql", "dbname="..database..";host="..hostname, username, password) if mysql then outputChatBox("MySQL has been successfuly connected!", root, 255, 255, 255, true) end Link to comment
GTX Posted March 20, 2013 Author Share Posted March 20, 2013 Oh lol. I forgot to put "host=". I'm so dumb. Thanks! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now