AJXB Posted April 22, 2013 Share Posted April 22, 2013 (edited) DELETED Edited April 22, 2013 by Guest Link to comment
manve1 Posted April 22, 2013 Share Posted April 22, 2013 local connection = nil function connect( ) connection = dbConnect( "mysql", "dbname=aboudmdb;host=***HOST IP***;port=3306;unix_socket=/var/run/mysqld/mysqld.sock", "USERNAME", "PASSWORD", "share=1" ) if connection then outputConsole ( "Server is now connected with the MySQL database!", 1 ) return true else outputConsole ( "Connection with the MySQL database failed!", 1 ) return false end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), connect ) try this Link to comment
iPrestege Posted April 22, 2013 Share Posted April 22, 2013 manve1 code should work i think the problem in the MySQL Server . Link to comment
AJXB Posted April 22, 2013 Author Share Posted April 22, 2013 DELETE THIS POST. Thanks ALL 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