icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » How do I do this ?

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old September 25th, 2004, 7:40 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
2 posts
Gave thanks: 0
Thanked 0 times
How do I do this ?

Hi,

I want/need to be able to connect to a mySQL database hosted on my domain and be able to read and write to this using Excel. I have downloaded the mySQL ODBC driver but still cannot make the connection.

It seems that the security on the server or mySQL is preventing my from connecting. I am specifying the domain name, userid, password etc. but it just will not connect.

Has anyone managed to do this or got any ideas how I can get this working ?

thanks

Chris
oconnor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 25th, 2004, 8:12 AM   #2 (permalink)
Caffeine fiend
Comfy Contributor
 
pvera's Avatar
 
Joined in Aug 2004
Lives in Reston, Virginia
Hosted on pass15
270 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by oconnor
Hi,

I want/need to be able to connect to a mySQL database hosted on my domain and be able to read and write to this using Excel. I have downloaded the mySQL ODBC driver but still cannot make the connection.

It seems that the security on the server or mySQL is preventing my from connecting. I am specifying the domain name, userid, password etc. but it just will not connect.

Has anyone managed to do this or got any ideas how I can get this working ?

thanks

Chris
My first guess is that Surpass is blocking external access to the MySQL server.
__________________
Pedro
Blog: http://veraperez.com
Reseller: http://veraperez.net
GPG/PGP Key: http://veraperez.com/public.asc
pvera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 25th, 2004, 12:07 PM   #3 (permalink)
Web Hosting Super Ninj4
Super #1
 
miakeru's Avatar
 
Joined in Sep 2003
Lives in Fullerton, CA
1,581 posts
Gave thanks: 0
Thanked 2 times
Quote:
Originally Posted by pvera
My first guess is that Surpass is blocking external access to the MySQL server.
Correct.
miakeru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 25th, 2004, 5:53 PM   #4 (permalink)
Registered User
Seasoned Poster
 
Oldswede's Avatar
 
Joined in Apr 2004
Lives in 56°33.09N - 013°03.90E / Sweden
Hosted on pass5,pass7,mac
79 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by oconnor
Hi,

I want/need to be able to connect to a mySQL database hosted on my domain and be able to read and write to this using Excel. I have downloaded the mySQL ODBC driver but still cannot make the connection.

It seems that the security on the server or mySQL is preventing my from connecting. I am specifying the domain name, userid, password etc. but it just will not connect.

Has anyone managed to do this or got any ideas how I can get this working ?

thanks

Chris
hi, look at your cpanel/mysql databases/ all the way down youŽll find:
Access Hosts:
if you own a static/permanent ip adr. you type in your ip adr. there
if not you can type in the % in there.
but think about security.

i due it for a long time cause i have a static ip adr. from my provider.
i due automatic database backups that way from my home-pc.

greetz
os
Oldswede is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 28th, 2004, 10:54 AM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
2 posts
Gave thanks: 0
Thanked 0 times
Oldswede - Thank you ! I'd looked at that a couple of times before and tried sticking in all sorts of things, but never % on it's own. I know it does say that, but for some bizarre reason I thought it meant % followed by something. I never thought it was a wildcard. Anyway, thanks to you it now works. Now just have PHP to learn !

Chris
oconnor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 29th, 2004, 1:23 PM   #6 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
oconnor - keep in mind that we don't support the remote access of mysql server - and recommened against it.

also - using the wildcard is NOT a good idea. while it will work - consider the consequences.

a much safer method is to run mysql elsewhere and do mysql dumps of your surpass content.

vbmenu_register("postmenu_69576", true);
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 23rd, 2005, 4:27 AM   #7 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2005
12 posts
Gave thanks: 1
Thanked 0 times
Hi,

Can anyone point me to any threads about local-desktop-client alternatives to phpmyadmin to manage my surpass mysql database?

I would like to use Microsoft Access as a front end to the mysql database on surpass because of its query, forms, and reporting features. Using the ODBC driver works quite nicely, but I get frequent timeouts (MySQL server has gone away; error 2006). I tried to adjust the MS Access Options under Tools, Options, Advanced, but I don't really understand them. Reading the forums, it looks like such a setup is not really supported or at least not recommended for some reason (or wasn't in 2004 anyway).

Using OpenOffice Base would work fine, too. But I get the same timeout problem.

MySQL Query Browser seems to hold, or at least reset, the connection fine, but is limited compared to Base and Access.

Thanks,
Pete
tebuco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 23rd, 2005, 5:25 AM   #8 (permalink)
Demontech Hosting CEO
Excelling Contributor
 
demontech's Avatar
 
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
You have a few tools here that may help.
http://www.mysql.com/products/tools/
__________________
Sincerely,
Demon

High Quality Hosting Service Provided By
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
demontech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 23rd, 2005, 9:31 AM   #9 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2005
12 posts
Gave thanks: 1
Thanked 0 times
Thanks, Demon. Yeah, I guess I just have to buckle down and learn how to quickly build the various joins. Your link led me to:
http://www.mysql.com/products/tools/...d_queries.html
which has a nice video-like demon-stration.
tebuco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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