Banex Posted September 9, 2015 Posted September 9, 2015 I am unable to connect to my database, i enabled remote access on my host, yet i keep getting this error. I'm using Linux - Debian 8 64Bit
Banex Posted September 9, 2015 Author Posted September 9, 2015 local data = Database.getDetails() self.connection = dbConnect("mysql",format('dbname={1};host={2};port={3}',data.Name,data.Host,data.Port),data.User,data.Password,"share=1")
JR10 Posted September 9, 2015 Posted September 9, 2015 Sometimes the unix_socket might be the problem. What exactly is the error?
Banex Posted September 9, 2015 Author Posted September 9, 2015 this is the error: http://i.imgur.com/461AwRo.png i believe that the problem is not with the script, because i wore it a few months ago on another VPS.
Banex Posted September 9, 2015 Author Posted September 9, 2015 I really do not know what to do. In wiki says that i must have installed the libmysqlclient.so.16. I have it installed, but the problem persists. I tried to connect to another database to another host, but also i did not have success. I reinstalled the operating system for Debian 7 - 64bits in last hope, but to no avail at all.
JR10 Posted September 9, 2015 Posted September 9, 2015 Try debugging the dbConnect parameters. Try checking for problems from the MySQL server itself.
LabiVila Posted September 9, 2015 Posted September 9, 2015 Are you sure your modules are rightly placed? Try doing /loadmodule mta_mysql.dll or mta_mysql.so for linux and tell us what you get
JR10 Posted September 9, 2015 Posted September 9, 2015 He's not using modules, he's using MTA's db* functions.
LabiVila Posted September 9, 2015 Posted September 9, 2015 Funny how I got exactly the same problem, yet can't seem to find the solution
xeon17 Posted September 9, 2015 Posted September 9, 2015 Make sure that you've installed the libmysqlclient.so which you need to run MySQL on a Linux OS.
ixjf Posted September 10, 2015 Posted September 10, 2015 If he didn't have it installed, the server wouldn't even run since it statically links to libmysqlclient.
xeon17 Posted September 10, 2015 Posted September 10, 2015 If he didn't have it installed, the server wouldn't even run since it statically links to libmysqlclient. If i remember well, i had the same error before when i haven't installed it. The server runs fine though.
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