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...

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...