Connect To A Remote DB
just started a cource in mysql using the mysql db on the instructers
server . Is it possable to to have a program on my server that can
access his db?
<?php
MYSQL_CONNECT("http://remotehost.com","db_name","pass_word")
OR DIE("Keine Verbindung zur Datenbank");
mysql_select_db("db")
or die("Didn't work again");
?>Paul
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Connect To A Remote DB
Is it possable to to have a program on my server that can access his db? <?php MYSQL_CONNECT("http://remotehost.com","db_name","pass_word") OR DIE("Keine Verbindung zur Datenbank"); mysql_select_db("db") or die("Didn't work again");
Remote Connect
I've installed MySQL 4.1.12 on my server, I can connect from the local machine with navicat, but not from a remote machine. I checked with 'nedstat' and there is something listening on port 3306. I have tried several users and settings. What i want is to set a user name (:support) and that this user can connect remotely with navicat to the mysql server. How would I do this? Or what am I doing wrong?
Can't Connect From Remote Machine
I am writing some code in ASP3 on an XP windows machine. I am trying to connect to a linux machine which is Redhat 7.3 that is hosting my MySQL database. I am use this code to connect. objConn.Open "Driver={mySQL};Server=http://4.7.165.99;Port=3306;Option=131072; Stmt=;Database=DB name;Uid=User Id;Pwd=MyPassword;" This is the Error message I keep getting: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified I have been looking all over the web, and can't find how to fix this issue, can anyone help me?
Connect To Mysql Remote
I want to access my mysql server remote, I found that by default --skip-networking is on (Salckware - /etc/rc.d/rc.mysqld in /etc/my.cnf it is commented). So I deceide to remove it after that mysql doesn't want to start. So I try to run it "manual". I've run those 2 command: (1) /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid & This gives me: Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysql/mysql.pid 060822 21:24:17 mysqld ended (2) /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid --skip-networking & This works perfect, but only with local connection, no remote connections :/ Any ideas ?
Connect To Remote Server
I am very new at this. I installed MySQL and PHP on my Hard drive. I can connect to MySQL through localhost on my hard drive. We have a server at work at a remote location. He just installed MySQL and gave me a password on root. As far as I know there are no databases created. I need to connect to the remote server and create a new user and database. I've downloaded Secure CRT but don't understand how to use it. I entered my ip addresss in a new session and it seems to connect but then it says session fails. I put a test script up and just get an error message. Should this script at least not give me an error message. Should I contact the person in charge of the server? <? /** * Connect to the mysql database. */ $conn = mysql_connect("localhost", "root", "password") or die(mysql_error()); ?> Client does not support authentication protocol requested by server; consider upgrading MySQL client
Connect To Remote Server
I have created a database in a remote host using MySQL 5.0. I created tables using the control panel of the host. I accessed the tables several times using the same procedure. Recently, I downloaded MySQL Admin and tried to connect to the remote server. Nothing happens. It just froze there without any message or what. Is there a secret way of doing this? I can connect to a remote host in a local network but when it comes to using the internet via a router I always encounter this same kind of problem.
Connect To Remote Mysql
I had mysql working locally with no prob, I just got my hosting, login to cpanel, mysql add a db, add a user, try to connect to the db on my hosting server via my local mysql command line cd mysql cd bin mysql -h xxxxxx -u username I end up with username@something, access denied, I am behind firewall (these days, who doesn't). I think the username being appended with @something is the root cause of access denying, but I couldn't find a way to get around it
Connect To Remote Database(MySQL)
is there some sort of setting I need to turn on where I can access the database from another server. So instead of using "localhost" I can use the actual server IP address. And just for future reference, is this how you set up a application server connecting to a database server?
Connect To Remote Mysql Through Terminal...help
Is it possible to telnet or ssh to my paid webhost's mysql through the terminal on mac os x without installing mysql locally? (using the terminal to control mysql ). I really don't want to install it locally if I can avoid it as I wont be using my computer as a server. If so how?
Connect To Remote MySql Using MS Access Via IP
I have a MySql database on a remote webserver. I used phpMyAdmin to set everything up. I would like to use MS Access as the front-end to link to the tables in the remote MySql database so I can edit, add, delete data using an Access form. My phpMyAdmin is on a server that has an IP address (like 12.34.56.78:8585). So I tried setting up a DSN on my home system using the same IP address and MyODBC Connector. When I put in the IP as server name, and the user/pass info, when I click test it just sits there for a long time and then I get an error: [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '12.34.56.78' (10060)
Connect To Database From A Remote Source
I own a website and plan on running multiple message boards on it...the problem is that I would like a database per board...however my host only gives 1 database....unless I want to pay an extaordinary amount of money for more. So I have used my PC as a webserver before without any problems and in fact ran a pretty big board off it with php, mysql, phpmyadmin installed. So my thought was to use a couple of databases off my PC to help run the new boards. I have created the database...but I'm having trouble with the board connecting. I'm sure that it's some kind of permission that needs to be inserted for the remote host to connect to my databases.
Can't Connect To Remote Host (10061)
I'm running MySQL server on a WinXP box at home. I have a cable modem/router. I've set up port forwarding on port 3306 to the machine running MySQL. I can connect locally just fine, but when I try to connect from a remote location using: mysql -h xxx.xxx.xxx.xxx -P 3306 -u root -p mysql I get: ERROR 2003: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061) When I try: mysqladmin ping -h xxx.xxx.xxx.xxx Code:
Mysqld Restarting On Remote Connect
I'm on FreeBSD 5.4 with mysql-server-4.1.18_2. Whenever I connect to mysql from a remote client, I get: Mysql error number 2013 lost connection to mysql during query Also, the following is logged: 060506 09:47:25 mysqld restarted 060506 9:47:26 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 060506 9:47:26 InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 642388. InnoDB: Doing recovery: scanned up to log sequence number 0 642388 InnoDB: Last MySQL binlog file position 0 79, file name ./isd-bin.018710 060506 9:47:26 InnoDB: Flushing modified pages from the buffer pool... 060506 9:47:26 InnoDB: Started; log sequence number 0 642388 /usr/local/libexec/mysqld: ready for connections. Version: '4.1.18-log' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.1.18_2 mysql works fine from localhost and I've granted permissions to connect from certain remote hosts. I just don't know why mysql restarts when a remote host tries to connect.
Connect To A Remote MySQL Server On The LAN
The MySQL setup on my WinXP machine runs fine with host localhost, username root, and my password. But I can't seem to access my databases from a different machine on my LAN. When I try to connect from another network PC , I always get: MySQL Error No 2003 Cannot connect to MySQL server on 'remotehost' (10060) All the settings in my ini seem correct. I've allowed TCP/IP connections. I know which port to specify. Did I forget to do something on the LAN to allow remote access? I've tried sharing the basedir and datadir folders. That didn't work. I also tried using IPs instead of hostnames. Didn't work either. When I try to ping the remote host (using MySQL Administrator), I just get a timeout error.
Cannot Connect To Remote Host MySQL
I'm trying to connect Mysql query browser from my PC (NT) to MySQL on a remote host. I always get the error message :- "MySQL Error Number 2003" "Can't connect to MySQL server on 'whatever.com' (10060)" I've tried with Mysql control centre, and navicat, and they report the same error message. I CAN connect from dreamweaver, but I really want some good GUI tools to administer the DB and data.there is phpMyAdmin on the remote site - but it bugs me.
Can't Connect To Remote MySQL Server
I am developing a site on a remote cPanel system and I am not able to connect to the MySQL database from my location. My application can connect to the server using localhost just fine. I have ensured that the correct port is open in the firewall (the server responds to telnet on that port) and I have added our IP address as an access host in the MySQL area of the client's cPanel but I am still unable to connect. The exact error message when I try to connect is: Access denied for user: 'user@<my IP>' to database 'user_database'
Connect To A Remote MySQL Server
I need to connect to a remote mySQL server. I have the IP address, userID, and password. When I try using these from another computer I get an "access restricted" error. How do I get to this remote mySQL server?
Remote Connect To Mysql Server
My host says that I don't need to login to my server in order to connect to my mysql server. They say all I need to do is enter this command into a mysql client: mysql -h xxx.xxx.131.240 -u User -p Database Password However, they don't want to mention any client to use to connect with. What client can I use? Putty? Where do I enter that command?
MySQL Slow To Connect To Remote Database
I was running a PHP/MySQL web site with the database on the local web server. I needed to move the database off the webserver (located in the firewall DMZ) and onto its own machine (behind the firewall on our private network) Now when I run my web site it goes really slow. I ran mysql from the command line on the web server and connected through to the database machine behind the firewall using webserver:/# mysql -h 192.168.1.7 -u www-data -p After I enter the password, it takes around 5-7s before I see the mysql> prompt. Is mysql trying to do reverse dns on the IP address and timing out? I added the machine details to /etc/hosts so it would be recognized but no improvement. Or do I have something wrong with my mysql configuration?
Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0. I have my jsp files on the remote server Z:. I have my local computer 'A' connected to this server. I have my MySQL database on my 'A' computer. I want to know how to connect the remote JSP files with the database? Currently I am using jdbc.odbc drivers on 'A' computer. But my server computer has Linux and uses org.gjt.mm.mysql drivers. Which drivers and Where should be the drivers?
Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0. I have my jsp files on the remote server. I have my local computer connected to this server. I have my MySQL database on my computer. I want to know how to connect the remote JSP files with the database? Where should be the ODBC-drivers?
How To Connect To A Remote Host Using MySQL Command Line Client
I can't establish a connection with a remote host using MySQL Command Line Client. ODBC conn setup successfully. Databases on this remote host can be reached using Crystal Reports. I open MySQL Command Line Client > prompted to enter a password > done successfully so I can connect to local databases. The following is entered to connect to remote host: mysql -h hostname -u myuserid -p but once I hit enter nothing happens.
MySQL Remote Backups - No Access To FTP Or Remote Command Line
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 host, and they indicated that the server is only open to the Internet via mySQL. Therefore, even if I did have access to that server's command line (which I don't) to create dumps via mysqldump, I would not be able to retrieve via FTP. Does anybody have any ideas as to how I can generate backup files from my local computer through a local command-line interface? I have done it through a GUI (DBTools), but I would like to have it done via DOS batch, so that I can schedule it. Does anyone know of any mysql backup GUIs with command line switches? Or can somebody recommend an alternate means of getting a local backup?
"Connect By" / Connect By Prior Clause
One thing that very annoying me in SQL SERVER is the lack of the "connect by" support. The other thing is that in order to take advantage of multi-processors/cores system, you have to pay a good deal of money. Therefore, I'm examining MySQL now & wanted to know if there is a "Connect by" support in MySQL? It's not just syntax issue, but also performance issue. Anyhow, it's far more comfortable.
Remote Connection
How do i connect to a remote (webserver) Mysql from the windows command line?
Remote Control
I have MySQL running on a desktop computer that I log into through logmein.com and this is not the best solution. How can I connect remotely to use the MySQL Command Line Client on my desktop so I don't have to wait so long for each line to appear? I should also point out that this computer is on my LAN, so I shouldn't have to configure the router. One problem I am running into right now is that when I try to make a new table, I keep getting error 1064 (42000) and I'm not sure why because everything looks correct. Code:
Remote Access
I have a MySQL server running on my iMAC and am able to access my databases locally. What steps do I have to do to allow access from a remote PC thru TCP/IP ? The manuals say it can be done but don't specify what is involved.
Accessing Remote DB
i want to inser data into a remote dB. I cant for the life of me get it to connect. The mysql_connect syntax is straightforward. Ive tried the ip number and domain name, the user name and pass are correct. No firewall probs. Always an error lilke this: "Can't connect to MySQL server on '130.220.33.14' (10054)" I use phpdev to run the files at home. Is there maybe a config I have to change on it to access remotely?
Remote Mysql
I'm having a weird problem and hours of googling could not help me solve this, so maybe someone here can help me out? I'm by no means experienced with mysql, it just worked all the time so I didnt have to bother looking into it too much :) We have 2 servers for our forum, one "powerful" server used as webserver where phpBB runs on, and one server that just holds the database (we got that after we found that code & database on 1 server caused overload). So far, everything went fine for nearly a year now and I had nothing to do with all of it, all I had to do back then was edit a variable on my.cnf on the database-server I think, and then it worked. Now the webserver's power unit broke, and after that the database had all these little errors on several tables, so I went to phpMyAdmin, marked them all and clicked "repair" - probably/like/surely a stupid move [my excuse: i was tired & in a rush as I did this from work] as the tables were rather big in size (several hundred mb). As expected, the forums didnt work during that, all I got was the typical phpBB "could not connect to database"-message. This went on for ages without anything happening, the tables just stayed "in use" (I could still connect to phpMyAdmin afterall). After it wouldnt work, I restarted mysql, i restarted the server - those tables still stayed in use, so I flushed the whole database and installed a backup into another database, changed forum-configuration to read from the new db and thought things would be fine, but they weren't. It just won't connect to mysql it seems, at first I thought some table must be still corrupted, but after some trying out, I realized that the database/forums DO work when being addressed as "localhost" from phpBB-files running on the database-server. When I change the configuration to connect via the IP of the server instead, it will give me the "Could not connect"-error just as it does when I try to connect from the webserver. I checked netstat on the db-server to see if the the mysql-port was open and being listened to, and got this: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN this does mean it's theoretically working, right? I also tried to grant all priviledges again on mysql, but didnt change anything either - do you have any idea what I could do? This is driving me nuts (especially as I can see the forums running fine when connected to by localhost). As I said - this happened suddenly and has been working before for nearly a year, that's what puzzles me most, I didnt change anything on that server mysql runs on!
Remote Connection
How do i connect to a remote (webserver) Mysql from the windows command line?
Remote OUTFILE
I have three servers (S01,S02,S03)... my aplication PHP run in S01 and there are two databases in S02 and S03. I make one file and I'm using LOAD DATA LOCAL INFILE INTO tbl_xxx to load file in S01 to S02. My problem is: I need export data from S03 to S01 using only mysql. I'm using SELECT OUTFILE, but this statment is only local. is it possible?
Remote SQL Connection
I am trying to access my database on the server with a MYSQL front-end client on my computer (not the server). I have the correct username, password and database name. I tried every possible hostname, even its ip addy, but each time, I am rejected by the server, which says something like - access denied. I can access the database in my php code with 'localhost', but that's of course because the code is actually running on the server. Is there anything I have to specify on the MYSQL server in order to gain access to it remotely?
Remote MySql
I have make a php application and i want to use mysql for the database in different computer, the computer ip is 10.20.37.77 and mysql port 3306, the password = "root" here is the code $MySQL_Username = "root"; $MySQL_Host = "10.20.37.77"; $MySQL_Passwd = "root" ; $MySQL_DB = "squid"; $db = mysql_connect( $MySQL_Host , $MySQL_Username , $MySQL_Passwd ) ; the error : Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'xeon' (using password: NO) in D:Program if the php application use mysql in localhost it work $MySQL_Username = "root"; $MySQL_Host = "localhost"; $MySQL_Passwd = "" ; $MySQL_DB = "squid"; $db = mysql_connect( $MySQL_Host , $MySQL_Username , $MySQL_Passwd ) ;
Remote Connection
First of all hey guys i'm new to this forum and hope to get some help on getting me fully started with mySQL. Alrite i've really briefly used mySQL with java but only with a local database. I need help on how to create remote connections via the internet to mySQL. Basically i've been trying to test out connecting via the internet from my home machine where mySQL is installed, i've tried this through windows command line and doing: mysql -h myip -u myuser -p also tried with --port=3306 but it doesn't work. Does the fact that i'm behind a router and have a different local ip matter? Or does the fact that i'm doing this from the machine that holds the mySQL database but i'm using the internet IP address to make it go through the internet. I've already opened up the port in my routers firewall. I wanted to create a java application that can access a mySQL database over the internet so I thought i'd try out remote connections on windows command line first. I'm very new to mySQL so any help in the right direction and/or what i'm doing wrong with some explanation will help me give a better understanding.
Cannot Log In To Remote Server
I am trying to set up a replication server and cannot get past an error trying to log on to the master from the slave. I have tried everything I can think of and am at a loss as to what else I can check/do. The error on the slave server is: Error: 'Host 'myslave.mydomain.com' is not allowed to connect to this MySQL server' errno: 1130 retry-time: 60 retries: 86400 The error itself is confusing. Since this is the slave log, the reference to "this MySQL server" does not make sense. I am not (should not be) trying to connect to "this MySQL server" but rather the remote master server. I am guessing that the error is just poorly worded. I have a user on the master with the host name 'myslave.mydomain.com'. What else is needed to allow that user to connect from the slave host? I tried changing the host name to '%' but that didn't help either. Can someone point me in the right direction?
Remote Admin
how can i remote admin the mysql (i am using mysql 3.23.) and how can i create users for the remote control (using phpmyadmin 2.2.6)
Remote Server
How I can connect my aplication in delphi with database mysql in remote server?
MyODBC And Remote
I'm conected to server and my app works just fine, and I was connecting to MySQL over ODBC (my app is running on winXP)! It was good while I was using only USERNAME with blank PASSWORD in MySQL! But when I put password, I can't connect, and of course my USER/PASS combination is OK! I try to search for known MySQL bug in this version but with no results!
Remote Login
When logging into mysql, mysql appends '@hostname' to whatever the username you provide is. Example: > mysql -h hostname -u dsb 'dsb' becomes 'dsb@hostname.com' Does anyone know how to turn that off so that the exact username specified is used.
Remote Connection
just that. and DONOT point me to any documentation ive been through it all mysql will NOT let me give any host persmissions it keeps giving me the syntax crap and to check the menual when i did it just like the friggen manual said GRANT ALL PRIVILEGES TO db.* -> root@'host'; and its really pissing me off. im runing mysql 4.1.8 any ideas? i also put the host in my hosts file and still nogo
Remote Connecting
The admin on my work server won't give me access to the mysql control panel. So what I'm thinking is using my yahoo mysql database instead. What would I replace for localhost? $oConn = mysql_connect("localhost", "user", "pass"); Second question, would yahoo allow remote connects? Third question, will the queries run slowly when remote connecting?
Remote Connection
I'm having a problem connecting to mysql on a remote host because it truncates my user name (dbm.stetsonband.org): ERROR 1045 (00000): Access denied for user: 'dbm.stetsonband.@d199-126-224-237.abhsia.telus.net' (Using password: YES) Is there something I need to set in my mysql prefs somewhere?
Connecting To A Remote DB
I am running some website on fedora with VMWARE and my main OS is windows server 2003. I am trying to use db on the windows server but whenever I try to connect to it from fedora I get bug messages. "Warning ! [2003] - Can't connect to MySQL server on 'ep038' (13) Server unavailable. Is your MySQL server started ?" I am sure that the server is started and running on port 3306. I am sure of the hostname. I can ping the hostname from fedora so it IS accessible. I am sure of the login and password (I set them myself). The weird thing is that when I run a tcpdump, apparently fedora doesnt even try to connect to the remote host database.
Remote Sql Server
I am using PHP on my site and I wanted to play around with myqsql. Rather than just going ahead and upgrading my account @ a monthly cost for testing, I thought that I would just add mysql on my pc and connect to it from my remotely hosted site. I opened port 3306 on my firewall. I can connect to the database but it will not allow me to select the database
Remote Access
I've set up a User account called 'test' for my MySQL database (for use from my Uni). The host value for 'test' is '%' but for some reason I can't connect when accessing the Database from a dynamic dns name. Test can connect when the JDBC is run using 'localhost' but the connection attempt simply times out when I change the URL to 'bailz.dyndns.org'. The PC is running behind a router but I can access the web server no problem from outside... it's just MySQL via JDBC that I'm having trouble with.
|