Quiz Posted May 7, 2013 Posted May 7, 2013 Hello guys, I started a new project recently When I started using dbConnect with MySql, I couldn't connect to my db, after searching for days, I found that I have to use unix socket because I use a unix system ( Debian 6 64-bit ) this is my try db = dbConnect( "mysql", "dbname=Gold;host=localhost;port=3306;unix_socket=/var/run/mysqld/mysqld.sock", "root", "MyPass" ) error message dbConnect failed; Could not connect
xXMADEXx Posted May 7, 2013 Posted May 7, 2013 set the host to: 127.0.0.1 And try it, and if your hosting on Windows, you don't need "unix_socket."
Quiz Posted May 7, 2013 Author Posted May 7, 2013 I tried 127.0.0.1 too, same result. And I said up it's Debian 6 64-bit.
xXMADEXx Posted May 7, 2013 Posted May 7, 2013 I tried 127.0.0.1 too, same result. And I said up it's Debian 6 64-bit. Are you hosting the DB with xampp?
Quiz Posted May 7, 2013 Author Posted May 7, 2013 I don't know much in these stuff, but I installed apache2 if that what you mean.
xXMADEXx Posted May 7, 2013 Posted May 7, 2013 I don't know much in these stuff, but I installed apache2 if that what you mean. Is this what you have? http://www.apachefriends.org/en/xampp-linux.html
xXMADEXx Posted May 7, 2013 Posted May 7, 2013 I don't know man, but I followed this topic here Im not to sure how to use that, so, i can no longer help you with this, unless you install xampp. If you want, here is a tutorial:
Cadu12 Posted May 7, 2013 Posted May 7, 2013 xXMADEXx, nothing to do with XAMPP. Quiz, please read the tutorial: viewtopic.php?f=106&t=58533 viewtopic.php?f=106&t=34979
Quiz Posted May 7, 2013 Author Posted May 7, 2013 Cadu12, I already installed a server and works fine. for the other url, it's a module, there is already a function ( dbConnect ), I don't have to install a new module!
Cadu12 Posted May 7, 2013 Posted May 7, 2013 I guess it is module problem, have you tried download new version? Edit: https://nightly.multitheftauto.com/
Quiz Posted May 7, 2013 Author Posted May 7, 2013 The problem is not solved !! Cadu12, I installed my server 1 week ago, it's a new version.
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