Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
ComYOU is on a distinguished road
 
Posts: 3
Join Date: Aug 2012
Default MySQL Error Number 2003? - 08-18-2012, 11:09 AM

I've created a VB application that has a login form, and I was hoping I'd be able to use the MySQL databases on the free hosting as a test before purchasing full hosting.
Unfortunately it's not letting me connect to the database?
I thought it might be a problem with my application at first but then I tried MySQL Administrator 1.2.17, but when I try I get this Error.

Picture of the error:


I'm pretty sure I'm filling it in correctly, Server Host: mysql3.000webhost.com; Port: 3306; Username: MYUSER; Password: PASSWORD.

Picture of the MySQL Admin


Is there anything you can suggest? I've looked at some MySQL threads but they said the problem is with the hosting so I thought I'd ask here before making ANOTHER thread on an alternative forum.

If needed, the code I'm using in my application to try and connect to the database is;
Code:
MySqlConnection = New MySqlConnection
MySqlConnection.ConnectionString = ("server=mysql3.000webhost.com; user=user; password=password; database=DATABASE;")
MySqlConnection.Open()

Dim MyAdapter As New MySqlDataAdapter
        Dim SqlQuery = "SELECT * From Users WHERE Username='" & UsernameTextBox.Text & "'And Password='" & PasswordTextBox.Text & "';"
        Dim Command As New MySqlCommand
        Command.Connection = MySqlConnection
        Command.CommandText = SqlQuery
        MyAdapter.SelectCommand = Command
        Dim MyData As MySqlDataReader
        MyData = Command.ExecuteReader

        If MyData.HasRows = 0 Then
            MsgBox("Error - Wrong login info!")
        Else
            accountName = UsernameTextBox.Text
            Form1.Show()
            Me.Close()
        End If

        MsgBox("Error connecting to server.", MsgBoxStyle.Exclamation)
        UsernameTextBox.Text = ""
        PasswordTextBox.Text = ""
Thanks.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,481
Join Date: Jul 2009
Location: Spain
Default 08-18-2012, 11:13 AM

Hello,

Free accounts do not allow external connections to the databases.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Junior Member
ComYOU is on a distinguished road
 
Posts: 3
Join Date: Aug 2012
Default 08-18-2012, 11:14 AM

Quote:
Originally Posted by d3iti View Post
Hello,

Free accounts do not allow external connections to the databases.
Ah OK, but if I purchase the hosting they will be allowed?
Reply With Quote
(#4 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,481
Join Date: Jul 2009
Location: Spain
Default 08-18-2012, 11:19 AM

For questions about premium accounts, we recommend that you visit http://hosting24.com.

They are the ones who manage the premium service, and they are best able to inform you about the features of premium accounts.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#5 (permalink))
Old
Junior Member
ComYOU is on a distinguished road
 
Posts: 3
Join Date: Aug 2012
Default 08-18-2012, 11:21 AM

Alright, thanks for the quick replies!
Reply With Quote
(#6 (permalink))
Old
Aaf Aaf is offline
Member
Aaf is on a distinguished road
 
Posts: 34
Join Date: Sep 2012
Default 09-09-2012, 10:54 AM

It is indeed a problem that you can't test what the payed services would be using the free service, as they block aspects like external database access. All they need to do is let you enter a trusted IP address, which is probably what they do on the payed site, as I saw described on other sites.
I know you can't be too demanding on a free service, and they will put some limits, but it does make it difficult to decide if what you are planning to build will work.
The monthly fee may be low, but only if you commit to it for years. A lot of money if it doesn't work out.
Reply With Quote
(#7 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,063
Join Date: Jul 2011
Location: UK
Default 09-09-2012, 11:44 AM

http://www.hosting24.com/
Quote:
Money back guarantee

Try out our services without any risk. If during the first 30 days you decide that our services do not fit your needs, you may cancel the account and receive a full refund
Reply With Quote
(#8 (permalink))
Old
Aaf Aaf is offline
Member
Aaf is on a distinguished road
 
Posts: 34
Join Date: Sep 2012
Default 09-15-2012, 11:41 AM

Well, yes, that is PROMISED. As on page http://www.000webhost.com/free-mysql-hosting it is promised that the latest version of phpMyAdmin (which would be 3.5) is available. But all that is there is 2.11, and when you try to run the latest version, which turns out to use "SHOW DATABASES" (which is a completely standard and legitimate statement to find out the name of the databases you have access to, even if it is only 1 out of 1000), resulting in a 'slow query' messages being sent to your email (which you find out at the moment your site appears to have disappeared, and you want to send a message to inquire what has happened)).
So, I am not feeling so secure entrusting my money.

PS: Being treated well, maybe not pampered, but fairly, can give you trust in a company. To being arm-wrestled into paying for a service where 80% of the features are superfluous to your needs makes you rethink your plans.

Last edited by Aaf; 09-15-2012 at 11:44 AM.
Reply With Quote
(#9 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,063
Join Date: Jul 2011
Location: UK
Default 09-15-2012, 12:03 PM

I can only speak from my own experience but dealing with 000webhost and dealing with hosting24 is like dealing with two seperate companies. one is a free service that needs to update it's ToS and what it advertises. The other is a professional service that does what it says on the tin (for me anyway) Any problems and they've always answered extremely quickly (live chat helps) and they've always informed me if anythings amiss, usually before I've noticed myself.
As for 30 day money back schemes, if it wasn't true I think they would have been sued by now and put out of business.
Reply With Quote
(#10 (permalink))
Old
Aaf Aaf is offline
Member
Aaf is on a distinguished road
 
Posts: 34
Join Date: Sep 2012
Default 09-16-2012, 10:13 AM

Thank you. You may very well be right. But if whoever runs hosting24 has any say in what happens on 000web, they may better pull some strings, as they are doing them a disservice. If they are really separate, then I would in their case try to distance themselves as far from 000web as they could.
Reply With Quote
Reply

Tags
mysql error 2003

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com