Forums / General Questions / connection to my database on godaddy

connection to my database on godaddy

Views: 2,530

Results 1 to 8 of 8
7 Jul 2015, 2:18 AM
#1
pixel1987 avatar

pixel1987

New Zenner

Join Date:
Dec 2014
Location:
uruguay
Posts:
65
Plugin Contributions:
0

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

Attachment #15410

It works everything but I can`t connect to the table in godaddy

7 Jul 2015, 12:22 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

7 Jul 2015, 6:32 PM
#4
pixel1987 avatar

pixel1987

New Zenner

Join Date:
Dec 2014
Location:
uruguay
Posts:
65
Plugin Contributions:
0

Re: connection to my database on godaddy

here the error
Attachment #15414

then create a table in the database already created
Attachment #15415

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)

7 Jul 2015, 7:47 PM
#5
pixel1987 avatar

pixel1987

New Zenner

Join Date:
Dec 2014
Location:
uruguay
Posts:
65
Plugin Contributions:
0

Re: connection to my database on godaddy

yes its all ok

8 Jul 2015, 6:18 PM
#6
pixel1987 avatar

pixel1987

New Zenner

Join Date:
Dec 2014
Location:
uruguay
Posts:
65
Plugin Contributions:
0

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

10 Aug 2015, 7:57 AM
#7
hellyeah avatar

hellyeah

New Zenner

Join Date:
Feb 2015
Location:
United States
Posts:
2
Plugin Contributions:
0

Re: connection to my database on godaddy

pixel1987:

here the error
Attachment #15414

then create a table in the database already created
Attachment #15415

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?

10 Aug 2015, 12:47 PM
#8
pixel1987 avatar

pixel1987

New Zenner

Join Date:
Dec 2014
Location:
uruguay
Posts:
65
Plugin Contributions:
0

Re: connection to my database on godaddy

HellYeah:

It seems this is permission issue. Have you try to contact godaddy about this issue?

the solution is above this message