473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to access the remote database in MYSQL

Hi ,

I am develping a web page with MYSQL as backend....
I have installed MYSQL and MYSQL connector to access the datas remotely...

But i am getting the error when i try to access the data ....

In the code for the conn syntax...

If i am giving localhost its working fine...

If i give the IP address of the machine to access the database remotely i am getting error in the server machine itself...

Pls help me...

Also i gave the grant permission for my database but its saying that 0 rows affected and nt working..


Pls help me
Dec 14 '07 #1
3 2811
Without seeing the error, My first thought is that it could be a firewall issue.
Myabe you could DMZ the host that you're connecting from. OR check the config of mysqld on the server to see what external connection restrictions may exist

- Shelon Padmore


Hi ,

I am develping a web page with MYSQL as backend....
I have installed MYSQL and MYSQL connector to access the datas remotely...

But i am getting the error when i try to access the data ....

In the code for the conn syntax...

If i am giving localhost its working fine...

If i give the IP address of the machine to access the database remotely i am getting error in the server machine itself...

Pls help me...

Also i gave the grant permission for my database but its saying that 0 rows affected and nt working..


Pls help me
Dec 14 '07 #2
mwasif
802 Expert 512MB
Also i gave the grant permission for my database but its saying that 0 rows affected and nt working..
Did you allow the user to connect remotely or only the SELECT privileges you have given? To allow remote connections, use such syntax in GRANT statement
Expand|Select|Wrap|Line Numbers
  1. GRANT ALL ON database.* TO 'user'@'somehost';
If you don't want to restrict the location from where the use will connect, use % for host
Expand|Select|Wrap|Line Numbers
  1. GRANT ALL ON database.* TO 'user'@'%';
Kindly post the error message.
Dec 14 '07 #3
Did you allow the user to connect remotely or only the SELECT privileges you have given? To allow remote connections, use such syntax in GRANT statement
Expand|Select|Wrap|Line Numbers
  1. GRANT ALL ON database.* TO 'user'@'somehost';
If you don't want to restrict the location from where the use will connect, use % for host
Expand|Select|Wrap|Line Numbers
  1. GRANT ALL ON database.* TO 'user'@'%';
Kindly post the error message.

Hi ,

I tried this option.. But in Mysql it is showing 0 rows affected..

Also the ASP pages which are just retrieved from the DB by using submitting option .. all r working fine...

But the pages which has to loaded with the data frm the database r throwing error...

The error is "Error in function() Operation is not allowed when the obj is closed"

This function() involves in getting the values from the DB and dispaly them in the Listbox when the page(ASP) loaded.....
Dec 21 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Phil Powell | last post by:
I've read some online resources that utilize various MySQL command-line actions to migrate data from Access to MySQL. The situation is this: a group of co-workers of mine will be using an Access...
12
by: filesiteguy | last post by:
Some partners of mine and I are writing a host-based application, which would greatly benefit if we could take advantage of a web services-like function we are formulating. Unfortunately, this...
11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
3
by: JStrummer | last post by:
I have a mySQL database located on a remote host's server. I would like to schedule a task on my local Windows computer to retrieve a backup/dump of this remote database. I have contacted my...
1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
7
by: Dave Smithz | last post by:
Hi There, Having last developed an Access DB for a client about a year ago I have today received a specification that I need to (today ideally) give an indication of how much I would charge and...
3
by: Xerxes | last post by:
Hi, I would like to import the tables from MySQL database into Access database and I am not sure how to go about it. I tired to "Import External Data" from Access, selected "ODBC database" from...
1
by: lucky | last post by:
Hello Probably, this is a beginners question, but I am stuck on it. I am trying to use a MYSQL Database on a remote server from inside an MS Access program. Therefore I have to create an ODBC...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
0
by: Nymus | last post by:
I would like to use an access database as a shared database on a remote website. I don't know if it is possible, but this is what i would like to do with this database: - Use it to run a database...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.