Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Connect To Another Machine With SQL-Server


just installed a mysql server, database and user on one machine [1] (debian-linux)

Now I want to connect to the database from another machine [2]. Actually I am sure that I have to configure connectors or named pipes. But I can't find these topics in the manual.

When starting mySQL as user on the server everything is ok. When starting mySQL as user on the client computer [2] I get

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

actually '/var/run/mysqld/mysqld.sock' is not existing. What do I have to put into that one? Or rather into /etc/mysql/my.cnf




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Unable To Connect To Database Server. Can't Connect To MySQL Server On 'localhost' (10055)
I am running a PHP application with mySQL . Some times it gives the following error.
I do not understrand why this error occures .

today i am using the application but it is not giving the error but error occures yested day .

Unable to connect to Database Server. Can't connect to MySQL server on 'localhost' (10055).

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 From Another Machine
I have RHEL 4.0 installed on a x86 box, and am using the standard MySql server that comes with RHEL 4 (MySql version 4.1.12). I tried downloading the Administrator tool, but had problems installing it. (This issue has already been reported at http://forums.mysql.com/read.php?34,65093,65093#msg-65093).

I have an Administrator install on a Windows machine, and I want to use it to connect to the MySql server on the RHEL box, but get the error that says: Host '<my_machine>' is not allowed to connect to this MySql Server. Can I use the Windows Administrator tool to connect to a MySql server on Linux? (same network and sub-net)

During the RHEL install, the firewall option has been disabled, so that's not an issue. I think I need to add an entrry somewhere in the MySql db that allows other machines to connect, but am unsure of how to add it, and what the syntax looks like.

Multiple MySQL Server Installations On One Machine
First, does MySQL architecture support the creation of multiple MySQL server installations on one machine? (Specifically, I am hoping for two different MySQL 4.0.12 servers on the same machine for two different departments with two different DBAs.)

If so, what naming convention (and infrastructure) distinquishes between the two MySQL servers? What network connectivity file entries would exist to differentiate between the two servers such that I could connect to one or the other servers from a remote client?

Connect From Unix Mysql Server To Ms Access Server
Im wondering is it possible to connect through my mysql db (running on fedora core 4) and access the ms access tables on the ms access server?

I have a connection setup the other way around using an odbc bridge, is it possible to do this the other way around enabling me to view / edit the access tables through mysql.

Can't Connect To Server
I am trying to connect to my server but keep getting a "cannot connect to server" error. When I ping it it says, "request timed out."

I've allowed port 3306 in both windows firewall and in my linksys wireless router. I've even tried to disable the firewall.

Not Able To Connect To Server
I can only connect to server on the local machine, not from a client. I can connect with same user on the server machine.

Only thing that looks weird is ODBC is putting the machine name on the user id and I don't know why. I'm using the ODBC admin's test connection button. I get message "Access denied from user admin@<machinename>". Is it supposed to do that?

Cannot Connect To The Server
i have a windows application made from c#. as i do the testing, i haven't encounter any problem because the database is in the localhost but when i try to deploy my application to remote machine it cannot connect to the database server. the displayed error is :

"A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket usinjg a sendto call) no address was supplied)."

by the way, i am using windoxs xp sp2 and mysql server 5.0

this is the configuration i use:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="connection-string" value="User Id=RWI;Password=RWI;Host=192.168.0.155;Database=invoice;"/>
</appSettings>
</configuration>

Can Not Connect To Server
I am using Navicat to make a server, and whenever I get it set up with the information, I get an alert box informing me that it can not connect to the MySQL server. I've been trying to figure out what is wrong but I can't find out why. What are some possible solutions to fixing this problem?

Can Not Connect To The Server...
I have a mysql-account on my school's webserver. And I'm about to install a webpage that need that account.

In my first attempt to install, the install-manager got contact with 'mysql' using the login-name and password I got from the server-manager. But some other files was missing and the installation faild.

I fixed the problem, but now the install-manager reports:
MySQL Reported Error:

Access denied for user '-username-'@'-IP-adress-' (using password: YES)
What is the problem and what do I do...

Can't Connect To The My-sql Server
I am getting the below error while reinstalling mysql software.
error no.2003 can't connect to the my-sql server on localhost(10061).
how to resolve this issue?

Cant Connect To The Server
i tried to run the query browser and it keeps giving me this error

MySQL Error Number 1130
Host '192.168.0.105' is not allowed to connect to this MySQL server
if you want to check the network connection, please click the ping button.

i filled the name of my computer and the username and password (the ones i use to log into my computer) and the port is fine too...i really dont know what it can be..y tried reinstalling the whole thing..but still the same problem

Connect To Server From External
I have installed a mysql server on a ubuntu machine. On it's databases I will connect from external. But something with the connection is wrong. I did a port forwarding with the port 3306. Is there a possibility to test the port forwarding?

Can't Connect To MySql Server Outside The LAN
MySql 5.0.22 - running on windows server 2003

.Net connector 2.0

I've opened the port and specified the correct host address in my connection string.
I can connect with Query Browser, but not with the .NEt connector in my code (same code works PERFECT when connecting within the LAN)

Exception text: "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied"

Can't Connect To MySQL Server
I've installed MySQL 4.1.8-win on my win XP system as guided by the installer. Most of the setup was default. I'm running the server on the local machine. But everytime I try to connect to the server through the command prompt or the MySQL administrator program, I'm faced with the following error:

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

I can't find anything wrong going. Previously I used MySQL 31.23.53, but never faced this sort of problem.

One thing can go wrong is that the port number being wrong. By default it's probably 3306. I'm not sure what else would fit in there.

Can't Connect To MySQL Server
I am trying to connect to mysql server. I was able to connect yesterday, but I can't connect to it today.

I've connected remotely with no problems. I'm using the MySQL Administrator to connect but I have no luck.

Can't Connect To MySQL Server
I have installed MySQL on WinXP Pro

When attempting to access various commands from the command prompt (eg help, set password etc) I get the following error.

ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)

When trying to access the MySQL server via a local web page I am also unable to connect to the database.

I have successfully installed Apache 2.0.35-win32-x8 and PHP.

Can't Connect To Mysql Server
apache 2.0.54 webserver on fedora linux 4 with php 5.0.4 and mysql 5.0.19

I'm getting the error "Can't connect to MySQL server error" when I am trying to run a PHP script via the browser. If I run the same script via the command line, I have no issues. I am able to run PHP scripts that do not access the db via the browser. I have verified via phpinfo() that the mysql module is installed.

I have started mysql as root with the --no-grant-tables option.

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 My MySQL Server
I just can't connect to the MySQL server installed in my pC from remote hosts.
I can over my LAN. I have create a user with '%' for the host.
also, I have added a host with '%'
What I'm doing is to connect from a webhost that support PHP but doesn't include MySQL databases. so, from the host i'm running a PHP script for connection.
the result is this:

Warning: mysql_pconnect(): Access denied for user: 'roberto@10.8.8.4' (Using password: YES)

What can I do to allow any server ?
I have a router, but the port 3306 is forwarded to the MySQL PC, so that not a problem.

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 MySQL Server
I use function mysql_real_connect to connect to MySQL Server at C program under Linux.
When I run it in chrooted environment, function mysql_real_connect fails with error "Transport endpoint is not connected".
Without chrooted environment everything works normally. If I run MySQL client (standart application) in chrooted environment it works normally too.

Connect To Mysql Server
i am trying to connect to mysql server running on different machine,from a java program. i am successful with mysql3.0. but with mysql5.0 -alpha i am getting the error like this..java.sql.SQLException: Server configuration denies access to data source.

Connect To MySQL Server
i just installed mysql and when i tried to create a test database, this error occured.
error: can't connect to MySQL server on 'localhost' <10061>'
check that mysqld is running on localhost and that the port is 3306
you can check this by doing 'telnet localhost 3306'.
i did just that but telnet couldn't connect either. should i change the port for mysql to listen in to? and change it to what?ive search the forums and tried looking for a .err file in the data folder but there isn't any. help anyone?

Can't Connect To Mysql Server
I am setting up MySQL on a development box. I have set it up and can
connect from localhost, but I cannot connect from another computer on
the network. I have narrowed down the problem quite a bit, but can't
quite figure it out still.

I am getting MySQL Error Number 2003 "Can't connect to MySQL server on
'server'. I know that the server is there because I can ping it. I am
also running a webserver from that computer and I am able to access
that just fine. I know that it is not a rights issue because if you
try to connect with a user that doesn't have rights, MySQL will respond
"Access denied for user: 'user@host' (Using password: YES)".

I checked on the host machine and check that the following are true:
- mysqld.exe is in the process list (in the task manager)
- MySQL is running on port 3306 (the one I'm trying to access it from)

Connect To This MySQL Server
I tried to connect to the MySQL Server on 192.168.115.12 on local network, then I got the message that i am not allowed to connect to that MySQL Server, but when I try to connect to localhost, it works. What do I have to do that I can connect to 192.168.115.12(It IS my own PC with the MySQL Server installed and runing)?

Connect To A MySQL Server
I have a MySql server in the web. i also have the access data (user name , password, etc.)

I tried to cennect to this server via MySQL Control Center but this doesn't work.

I just want to run a SQL script that creates a new database structure. With a local MySql installation I just type something like:
mysql < insert_script.sql
in the command promt.
How do I do this with a MySql Server in the web?

Can't Connect To MySql Server
I'm setup XAMPP on my server so I am running mysql 5.0.24a. I have a php file with the following code:Code:

<?php
$conn = mysql_connect('http://70.32.116.246:3306','root','password') or die ("Unable to connect to MySQL server.");
?>

But I always get the error "Unable to connect to MySQL server." What am I missing that's preventing me from connecting to the server. I can log into phpMyAdmin with the same username/password and it still doesn't work. Thanks for the help from a mysql/php noob.

Connect MySQL Server
I run Mysql 4.0.18 on window xp. After I trid the command 'mysqladmin shutdown' , I cannot connect the server again. I restarted the computer, and tried the command 'mysqladmin ping'. The followings showed on the screen:

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' <10061>'
check that mysqld is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'


Then I trid the command 'telnet localhost 3306', and get the followings:

Connecting To localhost...Could not open connection to the host, on port 3306: connect failed


I checked the processes in memory. 'mysqld-nt.exe' was on the list. My firewall is Norton 2005. How can I solve the problem?

Connect To The Mysql Server
I have intalled MySQL on one of my computer and try to access it using another machine inside the same LAN. Some info about the setup:

* The MySQL server's IP is 192.168.0.3 while the client machine is 192.168.0.6
* Both machine running WinXP Pro
* On the client machine, I am using PHPED's embedded MySQL support to try to access the database on the server.But it keeping telling me that I can not connect the server, and I have tried the following which didn't work:

* Add host address 192.168.0.6 to the privilage list
* Turn the windows SP2 firewall off on both machines

Can't Connect To Local MySQL Server... :(
My site is getting very busy and I keep getting this error every few times I visit my site. I just hit refresh and the site loads, but how can I avoid this error from coming up? Do I need a separate mysql server? Or apache has too high loads? What is causing this?

PHP

Warning:  mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in

How Can I Connect To A Remote Mysql Server
How can I connect to a remote mysql server ...

Unable To Connect To Mysql Server
i have problem om my sevrer ( linux )
WHM 11.11.0 cPanel 11.16.0-S18450
REDHAT Enterprise 4 i686 on standard - WHM X v3.1.0

after update apache then all websites on server can not connect mysql
from WHM > Tweak Settings > Mysql > 5.0
and used old style (4.0) passwords with MySQL® 4.1+

also command /scripts/mysqlup
but no way still same error can not connect to Mysql

Can't Connect To Local MySQL Server
I get this error when trying to connect to a MySQL server:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

What does this mean?

By the way, anyone know of any free MySQL hosting site?
I'm trying to test connecting to a database online.
I tried Tripod and it gives me this error.

Connect A FTP Server With A MySQL Database
I want to connect a FTP server with a MySQL database but I don't know if it possible...
In fact, I have a FTP server with some documents and I want to store these documents in my database... Is it possible?

Embedded MySQL Server Cannot Connect (C-API)?
I want to set up a mysql server in an embedded process. I managed to start
the server in my program as described through

mysql_server_init()

Now I need a client connection to this server.

mysql_real_connect

tells me that it could not connect to the server through the
UNIX Domain socket.

How can I tell my client to connect to the embedded server ?

SQL Error = Could Not Connect To MySQL Server
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

an old problem many seem to have had and a few have been able to fix first of all i dot know if this is the right thread to be posting this into if not please let me know what thread i should be posting into.

now for my sys info

OS - Win 2k SP4
using IIS as a webserver
MySQL 5.0.11
PHP 4.4.1

what i do know is my webserver can be accesed from the internet Mysql definately works as i use a php script from a remote server to access my database PHP 4.4.1 definately works as i used info.php to see what vers of php im running.

Ive spent server hours searching thru forums including this 1 ive done the old_password reset password stopped and restarted both services in the right order however that was someone running Apache Web server.

As far as i can tell its a communication problem between IIS and MySQL any help would be much appreciated. Maybe i have to scrap IIS and swith to Apache wanted to know if someone else had this porblem running IIS.

Can't Connect To Mysql Server With J Connector.
I can't connect to mysql server using the mysql-connector-java-3.0.11.
I was able to run the same program when I was running Suse 9.0 but
since I install Suse 9.1, I can't connect.

The error message is:

java.sql.SQLException: Unable to connect to any hosts due to
exception: java.net.ConnectException: Connection refused

I'm using mysql-standard-4.0.14 and able to get in the mysql server by
typing: Code:

Cannot Connect Remotely To Mysql Server.
I am haing trouble connecting to my mysql server, from a computer on the same network.

I successfully connected yesterday and it was all working fine, but this morning this is no longer the case and it just gives me Access Denied message, furthermore i cant even log in remotley as root, which i was able to the day before?? I have made no changes to the configuration of the mysql server, i have bascially came in today and it just doesnt allow me to connect remotley anymore?

I have tried re-booting, granting global privileges, creating a user, specific to that computer, all to no avail, I would be extremly grateful if someone could just let me know what im doing wrong as the case may be.

mysql server version : 5.0.13-rc-nt
os : xp professional

Have also got Mysql administartor 1.1.3 installed but sill tend to solely use the cmd line.

Unable To Connect To Mysql Server
I have downloaded and installed the latest stable versin of MySql. I have followed the install steps and everything went fine. I have then installed phpmyadmin. I modified the config file to add my password for the root user.

When I type the following address http://localhost/phpmyadmin to access the index page of phpmyadmin, I get this error message:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error

MySQL said: Documentation
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

I double checked the password, it's the one I entered during the install process. The username is root. The host name is localhost.

Not Allowed To Connect To This MySQL Server
Trying to connect from 1 linux box to another. A to B.

The B.user table has a host IP entry and a host name entry
for mach A. "mysql -h machB.com -u chuck" returns:

ERROR 1130: Host 'machA.com' is not allowed to connect
to this MySQL server

My search turns up zero.

App In Server 2000 Connect To MySQL - MAC
I am absolutely new to MySQL. I came across the need to look at MySQL from an application I was developing using REALbasic.

Here is the system:

An MS 2000 Server with an application that needs to connect to a SQL database.
A MAC OSX 10.4.7 PPC G4 running MySQL mysql-max-5.0.24a-osx10.4-powerpc.pkg.

What I can do:

I can connect to the MySQL table using the data app in REALbasic on the MAC and make changes etc.

What I need to do:

I need to create a DSN to allow the App on the 2000 server to connect to the MySQL server table on the MAC to make changes etc.

How can I accomplish this?

Connect To Server And Done Backup Automatic
how can i using a machine (XP os) that connect to server (redhat) process a backup of mysql database??? the backup file must save to my machine.
isnt possible to done it?

Connect To Local MySQL Server
I am trying to connect to our
remote MySQL server (which is running just fine). I have a perl script
which
worked just fine on my other Fedora 4 box (all servers are Fedora 4
with
latests updates). The one that worked fine it down and I cannot
compare
anything against it (it was a client also).

My problem is, when I try to connect to the server I get:

DBI connect('passwd','user',...) failed: Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (2) at
/home/perl_inc/mysql.pl line 19

I read all the articles I could on the subject talking about how
mysql.sock was in
/tmp and linking it etc, but on my system I did:

find / -name 'mysql.sock'

and cannot find it anywhere on my system.

My question is, on the mysql client, is there always a mysql.sock file?

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.

Connect To Mysql Server Through Socket
I have installed suse 8.2 a short while ago and at my first attempt to connect mysql (via shell and a perl dbi script) i get following error:

can't connect to mysql server through socjet '/var/lib/mysql/mysql.sock'.

i know this looks like a common error and I am terribly sorry if this kind of subject has been posted before but I'll appreciate any urgent help.
ComputerBild 15-03 bestaetigt: Den besten Spam-Schutz gibt es bei
WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021121 .

Not Allowed To Connect To This MySQL Server
Trying to connect from 1 linux box to another. A to B.

The B.user table has a host IP entry and a host name entry
for mach A. "mysql -h machB.com -u chuck" returns:

ERROR 1130: Host 'machA.com' is not allowed to connect
to this MySQL server

My search turns up zero.

Can't Connect To Local MySQL Server
I have been trying to get mysqld service running on my machine but in vain.
I downloaded source mysql-5.0.41.tar.gz from mysql.com website and uncompressed it well in
/usr/local directory.
commands that followed were
#./configure
#make
#make install

everything completed without any warnings or any errors.

But I was still unable to start mysqld service
# service mysqld start
will return :

mysqld: unrecognized service

when i just used command
#mysqld
it showd up:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I could not find any file by that name in /tmp directory.

Connect To A MySql Server Using A Web Address
after setting up MySql server to use TCP/IP on a select port, for some reason I can only use localhost as the host at home.

I would like to be able to access my server using something like MySql Manager across TCP/IP remotely, using a web address or an IP address, but I can't, how do I name the server's host to a web address? and not localhost.


Copyright © 2005-08 www.BigResource.com, All rights reserved