myjobisgop Posted November 21, 2013 Share Posted November 21, 2013 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? Link to comment
Tete omar Posted November 21, 2013 Share Posted November 21, 2013 My guess would be something is blocking connections. Your code is fine unless one of these variables is wrong or does not exist. Link to comment
Jusonex Posted November 21, 2013 Share Posted November 21, 2013 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? Link to comment
myjobisgop Posted November 21, 2013 Author Share Posted November 21, 2013 DbHost: triniti.ru-hoster.com OS: Linux Link to comment
Gallardo9944 Posted December 12, 2013 Share Posted December 12, 2013 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 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