Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default connection to my database on godaddy

    I want to connect some applications created in php and mysql but I can not connect to the database, these files were tested on another server and work perfectly, but do not know the data put in my file to upload to godaddy

    pixel.jpg

    It works everything but I can`t connect to the table in godaddy
    Last edited by pixel1987; 7 Jul 2015 at 03:20 AM.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: connection to my database on godaddy

    Did you enable Direct Database access when you set up the DB?

    https://support.godaddy.com/help/art...y-to-databases

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: connection to my database on godaddy

    Also is there a PHP difference of importance? (Mysql_ versus mysqli_ type functions?) Error messages related to the issue?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: connection to my database on godaddy

    here the error
    errorbdd.jpg

    then create a table in the database already created
    mibdd.jpg

    the problem is my file data connect.php via godaddy
    This application works perfect on local server
    my file connect.php <?php mysql_connect("localhost","monica_zc1","here the pass");?>

    that data file them out configure.php
    define('DB_SERVER_USERNAME')
    define('DB_SERVER_PASSWORD)

  5. #5
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: connection to my database on godaddy

    yes its all ok

  6. #6
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: connection to my database on godaddy

    The Solution
    1-log in to the cpanel-hosting
    2- MySQL® Databases
    3-Create New Database
    4-MySQL Users Add New User
    5-Add User To Database and create permissions

    in the file connect.php :
    <?php mysql_connect("ip","mysql user name created in step 4 ","pass created in step 4") or die ('error de conexion'.mysql_error()) ;

    ?>

    thanks all I share the solution to help each other all

  7. #7
    Join Date
    Feb 2015
    Location
    United States
    Posts
    2
    Plugin Contributions
    0

    Default Re: connection to my database on godaddy

    Quote Originally Posted by pixel1987 View Post
    here the error
    errorbdd.jpg

    then create a table in the database already created
    mibdd.jpg

    the problem is my file data connect.php via godaddy
    This application works perfect on local server
    my file connect.php <?php mysql_connect("localhost","monica_zc1","here the pass");?>

    that data file them out configure.php
    define('DB_SERVER_USERNAME')
    define('DB_SERVER_PASSWORD)
    It seems this is permission issue. Have you try to contact godaddy about this issue?

  8. #8
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: connection to my database on godaddy

    Quote Originally Posted by HellYeah View Post
    It seems this is permission issue. Have you try to contact godaddy about this issue?
    the solution is above this message

 

 

Similar Threads

  1. v150 Database Setup Issue: Connection to Database failed, on iPage
    By tempoart in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jul 2012, 07:43 AM
  2. Replies: 4
    Last Post: 2 Jan 2012, 10:46 PM
  3. issue with godaddy database connection
    By idc1 in forum Installing on a Windows Server
    Replies: 11
    Last Post: 16 Dec 2011, 07:12 PM
  4. "Connection to Database failed" upon install - I think I need database name help
    By jasong1968 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 30 Nov 2011, 10:50 AM
  5. GoDaddy database connection error - HELP!!!
    By cinbou in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 May 2008, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg