|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
I am confused. I have a client who is good to me and has given me the permission to use his database ccount. But I have a problem Now. How I will be able to access database account of a site say www.onesite.com to www.secondsite.com
I know there is a way. But I am unable to find Please help.
__________________
Kumar Chetan ----- 7+ Yrs of PHP/MySQL/JS/CSS/HTML/XHTML _SelfProcclaimedGuru To err is human. To blame your computer for your mistakes is even more human, it is downright natural. |
|
#2
|
||||
|
||||
|
Well, this is very easy to do with perl and DBI, you just need to specify what host in your connect() statement.
Oh wait, what's that your sig says? |
|
#3
|
||||
|
||||
|
Can I do this with PHP?
My question is now that can I do this with PHP?
If yes then how? regarding my Signature. some of senior in forums used it . I tried and found one similar to mine and adopted it. U can also get it. And I am really inetrested in Learning Perl,C and C++. I ahve just learned PHP/MySQL/Little bit of(ASP)/HTML,JavaScript and Flash/Photoshop/Gimp and Can Use Linux Perl is high on my list and I want to Master it. ![]() |
|
#4
|
||||
|
||||
|
actually I tried this and failed badly
PHP Code:
Now actually i have a site with mysql support and it uses mere 1% of its MySQL quotta. I want to use rest 99% on my another site. The problem is how come I connect to the server. (Due to some known/unknown reasons I am not mentioning my username passwords kind of things) Please help me. |
|
#5
|
|||
|
|||
|
Generally, when you connect to MySQL on a remote server, you would want to connect to the remote IP address, rather than the website domain name. Also, MySQL has to be configured to allow remote access by this specific user.
Thirdly, when using PHP to connect to MySQL and do queries, etc... it never hurts to actually get the error message, instead of just to echo some text: PHP Code:
Now, if you get an error message, it might help explain the problem. I have left the "Could not connect" in there for a reason. Now, if you try to connect, and you have the wrong IP address, of course you will get no MySQL error at all, just the phrase "Could not connect". If you actually do manage to connect, but your username/password is wrong, or you don't have permission to access, the MySQL error message should explain this. Since this is a specific question, not a general one about database design, etc... you should go to the MySQL forum or the PHP forum for more help.
__________________
The real n-tier system: FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL Amazon wishlist -- rycamor (at) gmail.com |
|
#6
|
||||
|
||||
|
I got following error very first time i tried this and again when i tried using IP
Warning: Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (111) in /home/myfolder/dbconnstr.php on line 2 Warning: MySQL Connection Failed: Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (111) in /home/myfolder/dbconnstr.php on line 2 Could not connectCan't connect to MySQL server on 'XXX.XXX.XXX.XXX' (111) and i used this code PHP Code:
I think It is due to rights. May be i don't have remote access permissions. I will look into mysql manual to check what permissions I have got. Thanx for help. (Can I move my thread to another forum) |
|
#7
|
|||
|
|||
|
Hi, Shelda
I was wondering if you knew an easy way to link to a ms access query from an html page? |
|
#8
|
||||
|
||||
|
may be a form will do
Simply a form will do. May be there is another way but I surely Don't know and is unable to find.
![]() |
|
#9
|
|||
|
|||
|
Cheers Shelda
|
|
#10
|
||||
|
||||
|
When shalespere said whats in the name he had no Email ID or domain name. I do have one.
My ID is Shleda not Shelda Thanx |
|
#11
|
|||
|
|||
|
sorry shleda
|
|
#12
|
|||
|
|||
|
I can't work out how to link to the form!!
PLEASE help/advise ![]() |
|
#13
|
||||
|
||||
|
heatherhainey,
You would have probably been better off creating a new post with a bit more information about your specific problem or needs, but I will tag on to this one... In order to connect to an access db, from a web page, you will need to use a server side scripting language, such as vbscript with a compatible web server, such as IIS, to create a web page to include the neccessary data connection and query functions to enable you to retrieve information from access and format it to the required output. The actual mechanics of this process are really out of the scope of a simple post, but I can offer some advice on sites to visit to read up on the technologies mentioned and to provide some tutorials to assist in getting you started down the right road. 4guysfromrolla webmonkey aspfree asp101 There are loads of resources on just these few sites, so they should answer most of your questions. Once you get working, if you have any problems, just ask, but please read the forum guidelines before posting. Hope this helps. Regards, Ed.
__________________
/* measure twice, cut once */ |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > can i do this? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|