+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: MySql Connection String

  1. #1
    fenris is offline x10Hosting Member fenris is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    6

    MySql Connection String

    Hi,

    Im attempting to create a VB program that connects to one of the MySql Databases that are hosted on my site.

    I tried using my website URL for the server name but cant seem to connect.

    is there any way i could get the information needed for the connection string?

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: MySql Connection String

    x10's mysql servers only allow a connection from the same server. you have to set the host to localhost.

    you could make a script that would require some sort of authorization, then have that parse the mysql commands and give you feedback from it.

  3. #3
    fenris is offline x10Hosting Member fenris is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    6

    Re: MySql Connection String

    is there any way then to get a remote connection to the MySQL database?

    or is every connection only from the server side?

    Im trying to develop a application that would have to send mysql commands to the server but it would involve a connection from the users machines to the database. Is that blocked by security or is it a option i overlooked somewhere?
    Last edited by fenris; 01-04-2009 at 09:02 PM.

  4. #4
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: MySql Connection String

    yes, all incoming connections to mysql are blocked by their firewall. even if you've got a php script, you cannot use ***.x10hosting.com to access the database.

    but try the way i suggested, by using a php script to do that server side, and have some sort of authentication to prevent unauthorized mysql access. the only thing is that built in db functions would render useless and you would have to use custom code to work with it.
    Last edited by xPlozion; 01-04-2009 at 09:25 PM.

  5. #5
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: MySql Connection String

    The other option is to have a PHP file on the server that simply executes $_GET['comm'] and pass the GET parameter (that is the stuff after *.php?) and use your VB app to open that page with a webbrowser object.
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  6. #6
    mfurqanabid's Avatar
    mfurqanabid is offline x10Hosting Member mfurqanabid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    37

    Re: MySql Connection String

    you can connect to mysql server through ip address

  7. #7
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: MySql Connection String

    Quote Originally Posted by mfurqanabid View Post
    you can connect to mysql server through ip address
    no you can't. not on this server. they block it with the firewall, so the only host you can use to connect is localhost.

  8. #8
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: MySql Connection String

    Meh... Technicly.

    You can fool the server into thinking its from localhost, but I wont go into it. xD
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  9. #9
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    Re: MySql Connection String

    Guys, you can setup a remote-MySQL thing in cPanel. allow your IP Address to connect to the server's MySQL by going to: yourdomain:2082/frontend/x3/sql/managehost.html

    then you can add your IP. the connection string would be:
    Code:
    server=yourdomain; user id=your_user; password=your_pass; database=your_db; pooling=false;

  10. #10
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: MySql Connection String

    Quote Originally Posted by Shadow121 View Post
    Guys, you can setup a remote-MySQL thing in cPanel. allow your IP Address to connect to the server's MySQL by going to: yourdomain:2082/frontend/x3/sql/managehost.html

    then you can add your IP. the connection string would be:
    Code:
    server=yourdomain; user id=your_user; password=your_pass; database=your_db; pooling=false;
    Has been tried and fails; unless your IP is already excluded from the firewall, the SQL server will not let you connect.

    The firewall isn't tied into the cpanel in any way, shape, or form, hence the problem - you can get cpanel to allow it, but the server itself won't even see the request because it'll get blasted by the firewall first.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  3. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  4. Replies: 9
    Last Post: 01-10-2008, 03:16 AM
  5. WP mysql error : Error establishing a database connection
    By orangpelupa in forum Free Hosting
    Replies: 2
    Last Post: 12-19-2007, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers