Jump to content

MySQL Connections problem


myjobisgop

Recommended Posts

Posted

I want to connect to MySQL in my script. To do this, I write the following code:

  
local dbConnectHost = "dbname="..DBName..";host="..DBHost..";port="..DBPort 
             
DB = dbConnect("mysql", dbConnectHost, DBUsername, DBPassword) 
  

Variables DBName, DBHost, DBPort, DBUsername, DBPassword have already defined in my code.

But when the script is run, the server crashes. What could be wrong?

Posted

What is the value of your host variable (DBHost), where do you run the MySQL Server (on localhost or an external server) and which OS are you using?

  • 3 weeks later...
Posted

Are you sure that everything is fine packages-wise? I guess you've gotta install another libmysqliclient. If you're running debian/*buntu or any other deb-compatible Linux distro, just try installing each package in the zip (with dpkg -i file.deb) and see if it provides any positive result. Three packages are contained in the zip.

https://mega.co.nz/#!t98ymZ6a!YtQlpCIe1 ... q6KvEgtkew

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...