January 10th, 2009
Creating a MySQL database has to be one of the most common task webmasters will perform on their hosting account. In the past, I’ve shown you how to create a MySQL database using cPanel and Plesk but this time around we’ll how to do this using GoDaddy’s custom control panel.
First, start by logging into your GoDaddy account:

Next, click on Hosting from the left menu, right below My Products:

This will bring you to a page listing all your hosting accounts. Click on Manage Account next to the website you want to manage. This will open GoDaddy’s control panel in a new window. Select the Databases tab at the top:

Next, click the MySQL icon. This will bring you to a page listing all your existing MySQL databases (if you have any). Click the Create Database button at the top.

Fill-in the fields making sure to provide a description of your database, a database name and a strong password. As for the database version, I recommend using 5.0 unless it is not compatible with the application you need to install. Hit OK when you’re done.
You will now be brought back to the MySQL Database page where you will see the newly created database with a Pending Setup status. Try reloading the page in 5 or 10 minutes as there’s a short delay before the database is being created.
Click the Edit button from the action column, next to your newly created database. This will bring you to a page where you can find all the necessary information you’ll need to configure your application such as the hostname and database name / username.
Unfortunately, GoDaddy does not allow you to connect remotely to your MySQL Databases so you’ll need to setup your own MySQL Database server and restore a database backup if you need to do so.
Posted in Control Panels · GoDaddy · Tutorials | 35 Comments
35 responses so far ↓
1. Response by : David on Feb 5, 2009 at 1:20 pm
Does anyone know how to do this on a virtual dedicated server. I am able to create the mysql db but I have no clue of how to connect to it. What is the host name? or how do you find it?
2. Response by : The Web Hosting Hero on Feb 5, 2009 at 5:19 pm
How do you want to connect to your MySQL db? Through PHP? Through an ODBC connection?
3. Response by : Brandon on Mar 19, 2009 at 3:34 pm
I have like 4 databases “pending” and they’ve been pending for about 4 hours. I think mySQL is frozen or theres a bug. Does anyone know how I can fix it that would be great thanks. Great site.
4. Response by : The Web Hosting Hero on Mar 19, 2009 at 3:58 pm
Yeah this happens with GoDaddy. You got to contact customer support.
This is the sort of stuff that makes me prefer cPanel hosting. Everything is instant with cPanel.
Good luck!

5. Response by : Brandon on Mar 19, 2009 at 4:54 pm
Thank-you I appreciate your quick and helpful response. I will have to check out cPanel for my next website.
6. Response by : charlie on Jul 6, 2009 at 6:12 pm
how do you connect to it via php? I am having issues with the server address i think.
7. Response by : The Web Hosting Hero on Jul 7, 2009 at 8:32 am
If you are unsure about the hostname of your MySQL server, go to your GoDaddy control panel, under the Databases => MySQL
Click the Edit button from the Action column and it’ll show you the hostname of your database server.
Then you can use this code to connect to MySQL
< ?php
$hostname = 'server hostname here';
$dbuser = 'mysql username';
$dbpassword = 'mysql password';
$dbname = 'mysql database name';
mysql_connect($hostname, $dbuser, $dbpassword);
mysql_select_db($dbname);
?>
8. Response by : anomynous on Jul 31, 2009 at 10:33 am
@charlie
If you have to ask how to connect to your database you should also be asking for tutorials on how to write secure PHP!
9. Response by : The Web Hosting Hero on Aug 1, 2009 at 8:10 am
@anomynous
Please elaborate to make your comment more constructive
10. Response by : adam on Aug 22, 2009 at 7:29 am
Hello,
I couldn’t manage to connect with my website after I create mysql.
I create a basic joomla webside (1.5.14) and I have wamp server.
I just want to see this basic page on my domain adress via godaddy hosting.
I tranfered the joomla files to the host. But what else should I do?
11. Response by : Brandon on Aug 22, 2009 at 2:00 pm
After you uploaded it, did you goto the http://www.yourdomain.com/install or /admin or whatever Joomla uses and put in your SQL database info?
12. Response by : Michael B. on Sep 2, 2009 at 7:35 am
How long it takes until the databse becomes active ? I’m waiting for about 1 hour on this and the status is still pending.
13. Response by : The Web Hosting Hero on Sep 2, 2009 at 7:43 am
@Micheal: yes I know, sometimes it takes forever. Maybe you could try to create another database or contact technical support.
This is one reason why I prefer cPanel web hosts to GoDaddy…
14. Response by : JustGage on Oct 6, 2009 at 6:09 pm
Please note,
the database isn’t located at “Localhost” You can find where it is after pushing the little pencil icon next to your database.
Also, the Pending statis does go away by itself, it can take a while somtimes, I made a database, then made another one and the second one only took a few minutes but the first one is still going =p.
15. Response by : Karl on Sep 17, 2010 at 10:46 pm
After creating database on Godaddy going through the Launch>Database>MySql>Create Database.
Should there be a database folder in our ftp when we create it?
16. Response by : Jeff C. on Jan 6, 2011 at 1:34 pm
5 to 10 minutes, my ass. Try 90 minutes to 2 hours as of late.
17. Response by : طريقة تركيب الووردبريس (فيديو) on Feb 1, 2011 at 12:39 am
[...] ايضا وجدت هذا الشرح لطريقة اضافة قاعدة من هنا [...]
18. Response by : Jackie on Feb 4, 2011 at 12:24 pm
What does this para mean? Can we put our database on goDaddy or not? If it is there, can we update it? This means nothing to me. Thanks.
Unfortunately, GoDaddy does not allow you to connect remotely to your MySQL Databases so you’ll need to setup your own MySQL Database server and restore a database backup if you need to do so.
19. Response by : Jackie on Feb 4, 2011 at 12:29 pm
Another question. You say that problems with GoDaddy are why you prefer cPanel hosting, but when I Googled cPanel hosting, it shows me about 8 sites that do it, including GoDaddy. Can you clarify this, please?
20. Response by : The Web Hosting Hero on Feb 4, 2011 at 1:44 pm
@Jackie: this means that you cannot query your GoDaddy database from your desktop through an ODBC connexion (using MS Access for instance). Other than that, you can do pretty everything with your MySQL database as you would with any other web host.
GoDaddy does offer cPanel but only on their VPS and dedicated servers. You get GoDaddy’s in-house control panel for all of their website hosting plans.
21. Response by : Jackie on Feb 4, 2011 at 1:52 pm
Sorry to have still another question. Can I go to the GoDaddy site from my desktop and query or update the database using their interfact directly on their site? I haven’t ever done this before, and we are just setting up the database now.
22. Response by : The Web Hosting Hero on Feb 4, 2011 at 1:53 pm
Yes you can, through phpMyAdmin
23. Response by : Jackie on Feb 4, 2011 at 1:56 pm
thank you!
24. Response by : Arild on Feb 25, 2011 at 11:26 am
Great tutorial! Managed to create some tables now I need to link them… I did work with db logic like 12 years ago (access) but has lost most of it.
Basically what I want to do is have a list of people (in one table) and a list of affiliation, lets say country.
I should make a table country with fields like countryID, country name + whatever else.
Then make a field in the people table called country which is linked to the country table?
So when a person is listed as country 1 the info from the table country can be accessed, right? That was how I used to make access dbs as far as I can remember. Is it called foreign key? (had the theory in Norwegian, not English).
and how do I set that up on GoDaddy phpmyAdmin?
25. Response by : The Web Hosting Hero on Feb 25, 2011 at 11:52 am
@Arild: first you need to create InnoDB tables. If you initially created MyISAM tables, you can always modify the storage engine under the “Operations” tab.
Next you need to create a countryID index in your “people” table.
And finally you have to create a foreign key:
ALTER TABLE people ADD FOREIGN KEY (countryID) REFERENCES country (countryID) ON UPDATE CASCADE ON DELETE [CASCADE / RESTRICT]
Hope this helps!
26. Response by : Arild on Feb 25, 2011 at 12:11 pm
Thanks for your swift response, I managed to change the tables to InnoDB tables, but when running the script (I assume I run it on the SQL-tab in phpmyAdmin) I get this error:
Error
SQL query:
ALTER TABLE player ADD FOREIGN KEY ( countryID ) REFERENCES country( countryID ) ON UPDATE CASCADE ON DELETE [ CASCADE / RESTRICT ]
MySQL said:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘[CASCADE / RESTRICT]‘ at line 1
(My table is called player instead of people, and I use mediumint(9) as the format type… any hint?
27. Response by : The Web Hosting Hero on Feb 25, 2011 at 12:13 pm
@Arild: you need to specify either CASCADE or RESTRICT, not both.
ALTER TABLE player ADD FOREIGN KEY ( countryID ) REFERENCES country( countryID ) ON UPDATE CASCADE ON DELETE CASCADE
or
ALTER TABLE player ADD FOREIGN KEY ( countryID ) REFERENCES country( countryID ) ON UPDATE CASCADE ON DELETE RESTRICT
28. Response by : Arild on Feb 25, 2011 at 12:28 pm
ah, I used CASCADE and I guess that worked, thanks! it added them as Indexes in the structure pane (on players table).
Now I need to start plugging this into html/php pages and get the results out
my next question would obviously be: do I need to do anything more than just return the field countryID and if they have a 1 it would return as Spain (as that is 1 in country table) or is there any more to it?
As you see, complete novice on this part. Once I get this down I can design the shit out of it!
29. Response by : The Web Hosting Hero on Feb 25, 2011 at 12:48 pm
No this will only ensure data integrity between tables.
You’ll have to use inner joins to combine data from multiple tables.
30. Response by : The Web Hosting Hero on Feb 25, 2011 at 12:48 pm
Sorry, I meant: “You’ll have to use inner joins to combine data from multiple tables in your SQL query”.
31. Response by : Arild on Feb 25, 2011 at 1:20 pm
Ok, thanks for the help. I am trying to upload the phpmyAdmin to the server (godaddy) and take it from there, seems like a bit more stuff I can do with that one (like select the fields that are linked etc for easier db updating et all)
Thansk again!
32. Response by : Sumanta Das on Apr 28, 2011 at 7:43 am
Hi,
can anybody please share their experience about the required time to restore a database on Go-Daddy? I have restored a database 4/5 hour back. but still it is showing “pending restore… “
33. Response by : Don Shave on May 12, 2011 at 7:31 am
Hunting endlessly for an answer to my DB access problem, I find this page… wow! Lots of good advice!! My site DB at GoDaddy was loaded several days ago & I’ve been in and out of their phpMyAdmin tool/etc in the hunt without much luck.
To quickly summarize, am a noob attempting to drive a new site with PHP (which I think is NOT the issue)… 2 attempts:
A) I can connect OK…
[$con=mysql_connect($host,$user,$pwd);]
but if (and only if) I don’t specify the table…
I then can’t read the DB data — my debug/echo result:
=========================
Connected: Resource id #3
SQL select * from ‘data’ where eMail=’DJ.Shave@gmail.com’ failed: []
=========================
ps: data/eMail fields are correct / in place
B) If I uncomment the code to select the table…
@ mysql_select_db($dbTable, $con)
or die (‘Selection of ‘.$dbTable.’ DB table
failed: ‘.mysql_error());
I get an access error…
=========================
Connected: Resource id #2
trying to select table data
Selection of data DB table failed:
Access denied for user ‘silentcriticdb’@'%’ to database ‘data’
=========================
Am assuming that the password (shown as “%”) works/etc, so this has to be permissions or some-such stupidity… am guessing that your comment (“Unfortunately, GoDaddy does not allow you to
connect remotely…”) might be the root?
Thanks in advance for any help you can share!
Don
34. Response by : Olivia on May 17, 2011 at 11:22 pm
Thanks for the help! GoDaddy keeps changing things, so the first few steps need to be modified, but I managed to figure it out based on the rest of the steps.
35. Response by : Chase on Jul 5, 2011 at 9:25 am
Any reason in particular you don’t allow us to name the database?
Having the database the same as the database username seems, slightly less secure then otherwise. It is a little silly of a limitation.
I mean I suppose I can understand you wanting to make it simpler to make databases, however if your manually migrating a database over it can be somewhat(very) annoying to not be able to chose it.
Leave a Comment