Jump to content

dbConnect failed; Could not connect


Tete omar

Recommended Posts

Posted (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 by Guest
Posted

Here is the full debug message:

[2013-09-19 23:34:10] ERROR: dbConnect failed; Could not connect [string "return dbConnect ( "mysql", "dbname=*****..."]

Posted

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.

Posted

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.

Posted
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?

  • 2 months 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...