Working with MySQL Remotely

Does anyone on this list work with MySQL using a remote
database, rather
than a local database? If so, what are the
advantages/disadvantages? I
can't establish a database connection locally, so I'm
thinking of
working with MySQL remotely instead.
I think I've figured out how to write a connection to my
online database...
$link = mysql_connect ("67.61.172.163" , "USERNAME" ,
"PASSWORD") or
die(mysql_error());
mysql_select_db ("DATABASE", $link) or die(mysql_error());
...where 67.61.172.163 represents my IP address (though it's
really
something different :) ).
But I get this error message:
Warning: mysql_connect() [function.mysql-connect]: Host
'[blah, blah,
blah].wa.WHATEVER.net' is not allowed to connect to this
MySQL server in
/Users/MyName/Sites/Geobop/a1/dbc.php on line 10
Host '[blah, blah, blah].wa.WHATEVER.net' is not allowed to
connect to
this MySQL server
Is there a way to fix this, so I can connect remotely?
www.geobop.org - Family Websites
www.invisible-republic.org - Adult political websites (Mature
adults only)

>
> Is there a way to fix this, so I can connect remotely?
"Host '[blah, blah, blah].wa.WHATEVER.net' is not allowed to
connect to
this MySQL server"
that error message lays it out fairly plainly.
Knock Knock. Reply from server: What's your name and business
and where are
you coming from. Blah Blah from Blah. Reply: not taking door
knocks from
blah. Have a nice day.
Most LAMP Linux/Apache/MySQL/PHP hosting only allows
localhost connections
to MySQL. It's pointless to try what you want to do if that's
what the
hosting is. Your only option is to conform or to rent a box
and config it to
what you think it should work like.
If you want to directly connect to the remote db using some
app on your
local machine, or from what it looks like, your local server
using the
remote db, find one that allows it. The few that will will
show the sign
666.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Clob mapping not working with mysql

    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim

    Laurent-
    The best solution would probably be to just have separate mappings for
    the MySQL and Oracle databases. The easiest way to accomplish this would
    be to have a separate setting for each of the databases. E.g.:
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=oracle.mapping)
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=mysql.mapping)
    That way, you can use a clob mapping for Oracle, and a normal value
    mapping for MySQL (since MySQL doesn't need to use the CLOB mapping, and
    it isn't very efficient).
    For more details on this, see:
    http://docs.solarmetric.com/manual.html#ref_guide_mapping_factory
    Another solution is to just stick with your custom extension of the
    MySQLDictionary, which is a perfectly valid way of having special CLOB
    handling in MySQL. Note, though, that CLOB handling is less efficient
    than VARCHAR handling, so it should be a mapping of last resort, and
    there isn't any need to use it in MySQL.
    In article <[email protected]>, czinczenheim wrote:
    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Sharepoint 2013 list view quick edit does not work with out remote API permissions

    sharepoint 2013 list view quick edit does not work with out remote API permissions.
    When I give Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    This is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How working with mysql databse in javaFx?

    Please, I need work with mysql database. How make connection, and using statments etc.?

    Just like you were going to connect from a servlet or swing app.You can use the still same way.I provided a simple sample for that
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.lang.ClassNotFoundException;
    import java.sql.DriverManager;
    import javafx.ext.swing.SwingList;
    import javafx.ext.swing.SwingListItem;
    import java.lang.Class;
    var items:SwingListItem[];
    var list:SwingList = SwingList{
    items: bind items;
    //Connection
    var con:Connection;
    //Statement
    var statement:Statement;
    //ResultSet
    var rs:ResultSet;
    try{
    Class.forName("com.mysql.jdbc.Driver");
    con=DriverManager.getConnection("jdbc:mysql://localhost/<database goes here>","<username goes here>", "<password goes here>");
    statement = con.createStatement();
    rs = statement.executeQuery("select * from <table goes here>");
    while(rs.next()){
    rs.getString(1);
    var item:SwingListItem = SwingListItem{
    text:"{rs.getString(2)},{rs.getString(3)}";
    //insert the swinglistitem into the SwingList
    insert item into items;
    rs.close();
    } catch(e:java.lang.Exception) {
    FX.println(e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(e:SQLException) {
    FX.println(e.getMessage());
    Stage {
    title: "Database Sample"
    width: 250
    height: 250
    scene: Scene {
    content: list
    }

  • How to work with the remote file system

    Hi all,
    I want to know how we can work with the remote file sytem.
    Code should be some thing like
    File f = new File("//10.22.33.122/images")
    images is share name..
    i want the file names of all the images in that shared folder...
    Thanks in advance,
    Srinivas N

    try this one:
    File f = new File("//10.22.33.122/images")
    File[] files = f.listFiles(new FilenameFilter() {
         public boolean accept(File dir, String name)
    // Specify the extentions of files to be included.
         return name.endsWith(".bmp") || name.endsWith(".gif");
    // get names of the files
    String[] fileNamesArray = null;
    for (int indx = 0; indx < files.length(); indx++)
    fileNamesArray[indx] = files[indx].getName();
    return fileNamesArray;

  • Does nano 6g work with the remote (apple in-ear headphones)?

    Does nano 6g work with the remote (apple in-ear headphones)?
    Is it possible to change volume and skip tracks?

    Hello Homer,
    According to this page from Apple they are.
    http://www.apple.com/ipod/in-ear-headphones/
    B-rock

  • New MacBook Pro not working with iPhone remote

    Hi all,
    I absolutely cannot get the iPhone remote app to work with itunes for whatever reason!
    it's driving me crazy never had any issues on my old macbook, its defo on the same wifi, i can ping it etc, I'm faily handy with OSX and the like as i'm a software developer, so I know it's not a firewall issue and the phone is on wifi.
    it just doesn't pop up to let me enter the code in iTunes under devices when I'm trying to register the Phone with the machine,
    for the record the phone has been synced with the itunes library in question and I have clicked the forget all remotes button in iTunes prefs, and the 'look for iphone remotes' box is checked
    so I've pretty much done everything bar uninstall itunes, is that really necessary? is it worth deleting the itunes prefs file??
    Thanks for any advice,
    Cheers,
    John

    Have you tried wiping the remote app from the iphone and starting over ?

  • Help on working with MySQL databases in Dreamweaver

    I am new to the world of dynamic webpages. I have been
    following along on the Lynda.com videos Dreamweaver CS3: Beyond the
    Basics, and Dreamweaver CS3: Dynamic Development, and have
    basically got it figured out for doing stuff on my local computer.
    However, I can't quite figure out what steps I have to take so that
    I can take my database driven site live. I use hosting with both
    ASTHost and GoDaddy. My hosting with each, I believe, is on Linux
    servers (GoDaddy for sure Linux, ASTHost may be MS). I am designing
    with DW CS3, and using WAMP as the PHP server on my pc. I am also
    using MySQL version 5.0. My PHP version is 5.1.2 with ASTHost and
    GoDaddy.
    Can anyone point me to a good tutorial or site that explains
    how to move the site from your own pc at home onto a hosting server
    and make it work? I have tried a few things, but keep running into
    MySQL errors.

    I have seen a good solution at http://webdesignsolutions.co.in/add-phtml-extension-in-dreamweaver , this is very simple.

  • What wireless speakers will work with the "remote speaker" feature?

    I want to use the remote app on my iphone to control my itunes library and was considering purchasing some speakers to put out by my pool. My question is what kind of speakers will itunes detect? what technology are we talking about? RF, Bluetooth?

    iTunes itself, that is it's built-in remote speaker function, will work only with an Airport Express. There may be other wireless speakers that have their own drivers or transmitter; someone else here may be able to make a recommendation.
    Message was edited by: Dave Sawyer

  • Trouble Getting Dreamweaver 8 to work with MySQL: The "Unidentified Error"

    I set up MySQL on my Macintosh yesterday, along with PHP --
    all went fine yesterday, until I tried to connect Dreamweaver to it
    (today I went back and uninstalled and tried to reinstall, and all goes less well -- can anyone tell me what
    robert:/usr/local/mysql robert$ bin/mysqladmin -u root password 'himmel'
    bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    signifies?)
    In any case -- back to the story:
    I go to connect to the DB in Dreamweaver 8, and when I try to set up the DB in the "databases" tab and click on the "database" field I get
    "An unidentified error has occurred"
    and then
    "HTTP Error Code 404 File Not Found....
    [Possible Reasons]: 1) No testing server running on this machine.
    2) The Testing Server specified for this site does not map to the http://127.0.0.1/~robert/Sites/_mmServerScripts/MMHTTPDB.php?Type=MySQL&Connecti onString=host=localhost;uid=dwmx;pwd=mm&Host=localhost&&UserName=dmwx&Password=m m&Timeout=30 URL. Verifiy that the URL prefixs points to the root of the site."
    Any clue? I know little about PHP or Unix, but am trying to learn.
    iMac 17   Mac OS X (10.3.9)  

    There's a 64-bit version of Power Query which you should be able to get from the same site you downloaded the 32-bit version.
    It sounds like you used "From SQL Server" to try to connect from Excel to MySQL. This will not work. You would likely need to acquire and install a MySQL ODBC driver and then use "From Microsoft Query". Similarly, to use MySQL from inside
    Power Query, you will need to acquire and install a MySQL ADO.NET driver.

  • Can't get power or volume to work with Verizon remote.

    I have been trying to program the remote to my bedroom tv. I can get the channels to change, but cannot get the volume or power to work. Until now, I have just used the tv remote for volume and power, but it has met it's death by dog! I spent over an hour last night trying and trying again. Nothing works...not the key fix...not searching (forever) for a different tv code. I assume that if the code listed works to change the channels, it should work for volume and power, but no luck. Any ideas? It is rather pointless to have a tv in the bedroom that you have to get out of bed to turn off (lol).
    Thanks.

    kerysu wrote:
    I have been trying to program the remote to my bedroom tv. I can get the channels to change, but cannot get the volume or power to work. Until now, I have just used the tv remote for volume and power, but it has met it's death by dog! I spent over an hour last night trying and trying again. Nothing works...not the key fix...not searching (forever) for a different tv code. I assume that if the code listed works to change the channels, it should work for volume and power, but no luck. Any ideas? It is rather pointless to have a tv in the bedroom that you have to get out of bed to turn off (lol).
    Thanks.
    You can order a free two button (TV/STB) remote from the STB menu. 

  • Working with MySQL driver

    I'm trying to use MySql Driver instead of ODBC in an application developed with JBuider.
    When the instruction:
    Class.forName("com.mysql.jdbc.Driver");
    is processed I receive the message:
    Class Driver ERROR java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    Where should I put mysql-connector-java-3.0.8-stable-bin.jar?????
    Please help me
    Thanks to everyone

    I think that JBuilder doesn't use system classpath but build it by his run configuration.
    What I don't understand is how to include my .jar in it.
    bye

  • How do I get Java 7 to work with my remote access token to Kaiser on my Mac 10.7.5?

    Since I updated Java last week I do longer can get to my Health Connect Site. I get to the page for Java and hit run. Then a window opens, it starts to transfer data. Then it stops and says error. I have gone thru Kaiser's IT and Apple Support. Both tried and could not correct the problem. I have been getting on this site with Firefox for over 2 years. How do I correct this problem with Java or Firefox?

    Hi eeg0,
    Thank you for posting your question. In order to better assist you, please provide the following troubleshooting information:
    *what is the error that comes up?
    *Logs of the page from the webconsole- make sure there is no personal information here.
    *Have you added the site to the exceptions list in the Java Console?[http://www.java.com/en/download/help/javaconsole.xml]
    If you need any help, we are happy to help.

  • How can i work with Mysql using socket

    hi
    When i connect through mysql using socket
    then can i send a query to mysql through socket.
    if yes then how
    retrive data which is performed by query
    plz help me
    THANKS

    not like its not possible, but you better refer to JDBC instead of plain socket... its much easier and its already been done...
    google for mysql jdbc tutorial or something...

  • Does ODI work with MySQL?

    I'm trying to install this on linux and I'd like to install my repositories in MySQL (my server version is 5.0.41).
    Despite there being no mention of MySQL in the documentation, I had read somewhere (?) that this is possible and when I looked in the oracledi/lib/scripts directory there's definitely a directory called MYSQL (hopeful)
    I've set all the web stuff up under tomcat and the diwld seems quite happy to connect to the MySQL instance as does the master repository wizard but now I'm stuck as I don't know what 'Technology' option to choose to execute the create SQL statements.
    Many thanks
    Ceara

    Hi Ceara,
    Last I heard the repository is not supported in MySQL. This is due to some subquery feature that is not ANSI92 compliant.
    Metalink Note 468131.1 has more details.

Maybe you are looking for

  • Using variables in ODI 11.1.1.5

    Hi, i have created 4 variables in ODI 11g as mentioned below: 1.Variable_name = v_date datatype = alphanumeric default value = '30-NOV-2011 11:00:00' 2.Variable_name = v_time_offset datatype = alphanumeric default value = 125 3.Variable_name = v_star

  • Is the HP Photosmart Pro print plug-in for Adobe Photoshop available using Windows 7 64 bit?

    Hi guys. Having a bit of a struggle with printing with sheets (as against using rolls) on my DesignJet Z2100.  I'm having difficulty in getting the rotation correct, paper margin issues etc and had thought that maybe the print plug-in may assist. Che

  • Assassin's Creed2

    Hi I have  HP  Pavilion g6-1048se Notebook When i play Assassin's Creed2   A little slow   This is normal, with the ability of the device???

  • Getting attributes from a XML File, stored in Oracle

    Hello, my problem is the following I have a xml file that looks like that: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <root path="H:\musik"> <directory name="Bj�rk - Homogenic" path="H:\musik\Bj�rk - Homogenic"> <file album="Homogen

  • Is it possible to add a standard BAPI to LSMW?

    Hi, I want to load BASIC Pay data from legacy system to Info type 0008 through LSMW using BAPI_BASICPAY_CREATE. But the BAPI BAPI_BASICPAY_CREATE is not available as BAPI objects in LSMW. Is it possible to add standard BAPI to LSMW and use it? Thanks