Tete omar Posted September 19, 2013 Share Posted September 19, 2013 What are reasons that issue this error: dbConnect failed; Could not connect? (Hosted server) Link to comment
Kenix Posted September 19, 2013 Share Posted September 19, 2013 (edited) database was created? you are trying connect to mysql or sql? if mysql mysql server was started? mysql port is opened? database hosted on the same place? Please show to us full debug message. Edited September 19, 2013 by Guest Link to comment
Tete omar Posted September 19, 2013 Author Share Posted September 19, 2013 Here is the full debug message: [2013-09-19 23:34:10] ERROR: dbConnect failed; Could not connect [string "return dbConnect ( "mysql", "dbname=*****..."] Link to comment
Sasu Posted September 19, 2013 Share Posted September 19, 2013 Show us the part of the script where you try to connect to the mysql. Link to comment
Tete omar Posted September 19, 2013 Author Share Posted September 19, 2013 dbConnect ( "mysql", "dbname=*****;host=127.0.0.1", "*****", "*****" ) Note: I can't connect to any hosted mysql database Link to comment
Kenix Posted September 19, 2013 Share Posted September 19, 2013 mysql server was started? Link to comment
Tete omar Posted September 20, 2013 Author Share Posted September 20, 2013 Sorry for late reply. database was created?mysql server was started? mysql port is opened? database hosted on the same place? All these questions answer is: yes but i don't know why it shows this error. Link to comment
xXMADEXx Posted September 20, 2013 Share Posted September 20, 2013 Try this: dbConnect ( "mysql", "host=127.0.0.1;dbname=databasename" , "username", "password") Sometimes it matters what you put first, the host or database name. If this doesn't work, then its most likely your host. Link to comment
Tete omar Posted September 20, 2013 Author Share Posted September 20, 2013 Didn't work. Link to comment
Gallardo9944 Posted September 20, 2013 Share Posted September 20, 2013 Try editing your /etc/mysql/my.cnf file and comment out (add a # before the line) where you have something like "bind_address" and restart the server. Should be connecting after that. Link to comment
Tete omar Posted September 20, 2013 Author Share Posted September 20, 2013 Same problem, @Gallardo9944. Link to comment
xXMADEXx Posted September 21, 2013 Share Posted September 21, 2013 What program are you using to host the MySQL database? Link to comment
Tete omar Posted September 21, 2013 Author Share Posted September 21, 2013 What program are you using to host the MySQL database? I made a database through cpanel via phpmyadmin and it works fine on any website or a php script, but on mta, it doesn't work, although the database and the server are on the same host. What is your OS? linux centos 64-bit My question is do i need mysql files to connect to the mysql databse? and what is the requirements of connecting to the mysql database? Link to comment
=KoG=Rouche Posted November 21, 2013 Share Posted November 21, 2013 It can help me too i've the same error message :-/ 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