Quiz Posted May 7, 2013 Share 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 Link to comment
xXMADEXx Posted May 7, 2013 Share 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." Link to comment
Quiz Posted May 7, 2013 Author Share Posted May 7, 2013 I tried 127.0.0.1 too, same result. And I said up it's Debian 6 64-bit. Link to comment
xXMADEXx Posted May 7, 2013 Share 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? Link to comment
Quiz Posted May 7, 2013 Author Share Posted May 7, 2013 I don't know much in these stuff, but I installed apache2 if that what you mean. Link to comment
Quiz Posted May 7, 2013 Author Share Posted May 7, 2013 Where are you guys?! Some help here please. Link to comment
xXMADEXx Posted May 7, 2013 Share 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 Link to comment
Quiz Posted May 7, 2013 Author Share Posted May 7, 2013 I don't know man, but I followed this topic here Link to comment
xXMADEXx Posted May 7, 2013 Share 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: Link to comment
Cadu12 Posted May 7, 2013 Share 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 Link to comment
Quiz Posted May 7, 2013 Author Share 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! Link to comment
Cadu12 Posted May 7, 2013 Share Posted May 7, 2013 I guess it is module problem, have you tried download new version? Edit: https://nightly.multitheftauto.com/ Link to comment
Quiz Posted May 7, 2013 Author Share Posted May 7, 2013 The problem is not solved !! Cadu12, I installed my server 1 week ago, it's a new version. 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