Hi,
I'm trying to connect to a mysql-Server using PHP's mysql-function
mysql_connect. The host on which the mysql-server is running is not the
same as the host apache and php are running on. The two computers are
connected in an IPv6-network.
No matter if I give the hostname (defined in /etc/hosts), the
IPv6-address ("fec0::4") or the IPv6-address in square brackets
("[fec0::4]") the function mysql_connect always prints "Unknown
MYSQL-Server [servername]". Is it because of IPv6? Is PHP's mysql-API
not capable of connecting via an IPv6-network? Unfortunately I didn't
find anything about it in the documentation.
I'm using PHP version 4.3.4. In case this version cannot handle
IPv6-addresses, does anybody know whether PHP 5 beta can?
Thank you for your help!
Torsten 7 5907
Torsten Schmidt <gi********@yah oo.co.uk> wrote: I'm trying to connect to a mysql-Server using PHP's mysql-function mysql_connect. The host on which the mysql-server is running is not the same as the host apache and php are running on. The two computers are connected in an IPv6-network.
Since when does mysql support ipv6?
Is it because of IPv6? Is PHP's mysql-API not capable of connecting via an IPv6-network?
Have you tried mysql's client instead of the buildin (which is really
old code IIRC)?
--
Daniel Tryba
Daniel Tryba wrote: Torsten Schmidt <gi********@yah oo.co.uk> wrote:
I'm trying to connect to a mysql-Server using PHP's mysql-function mysql_connect . The host on which the mysql-server is running is not the same as the host apache and php are running on. The two computers are connected in an IPv6-network.
Since when does mysql support ipv6? Have you tried mysql's client instead of the buildin (which is really old code IIRC)?
Yes I did. It doesn't work with mysql's client but I thought it's
because the client is too old (I tried the mysql-client from the current
debian-stable release which is version 3.23 and really old).
But I don't know if MySQL Server does support IPv6. Does the server need
to explicitly support it, too? That's a good point... If that's the
reason for not working, is there another open source DB out there that
does support IPv6?
Torsten
Good question. I would think so, since the data structures passed to socket
functions are different from those of IPv4.
Uzytkownik "Torsten Schmidt" <gi********@yah oo.co.uk> napisal w wiadomosci
news:bv******** ****@uni-berlin.de... But I don't know if MySQL Server does support IPv6. Does the server need to explicitly support it, too? That's a good point... If that's the reason for not working, is there another open source DB out there that does support IPv6?
Torsten
There must be some way though, to route an IPv4 address to an IPv6 address.
You might want to try the TCP/IP newsgroup.
Uzytkownik "Torsten Schmidt" <gi********@yah oo.co.uk> napisal w wiadomosci
news:bv******** ****@uni-berlin.de... Yes I did. It doesn't work with mysql's client but I thought it's because the client is too old (I tried the mysql-client from the current debian-stable release which is version 3.23 and really old).
But I don't know if MySQL Server does support IPv6. Does the server need to explicitly support it, too? That's a good point... If that's the reason for not working, is there another open source DB out there that does support IPv6?
Torsten
Hello, Yes I did. It doesn't work with mysql's client but I thought it's because the client is too old (I tried the mysql-client from the current debian-stable release which is version 3.23 and really old).
But I don't know if MySQL Server does support IPv6. Does the server need to explicitly support it, too? That's a good point... If that's the reason for not working, is there another open source DB out there that does support IPv6?
If you are using Unix/Linux and the Web server is in the same machine as
the MySQL server, you should not be using TCP/IP at all. Instead you
should use only Unix domain sockets. These are twice as fast as TCP
sockets and obviously more secure as nobody can access your database
from outside your server. In that case you should also start MySQL with
the skip-networking option in your /etc/my.cnf file.
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
MetaL - XML based meta-programming language http://www.meta-language.net/
There is actually, it is possible to tunnel IPv6 traffic via IPv4. But
that wouldn't be of any use for my application.
But Daniel was right - it's not PHP, it's mysql that doesn't support
IPv6. I switched to PostgreSQL now and access that DB from PHP's
postgresql-API works via IPv6! Thank you!
Torsten
I mean the other way around, tunnel IPv4 traffic across an IPv6 network.
Uzytkownik "Torsten Schmidt" <gi********@yah oo.co.uk> napisal w wiadomosci
news:bv******** ****@uni-berlin.de... There is actually, it is possible to tunnel IPv6 traffic via IPv4. But that wouldn't be of any use for my application.
But Daniel was right - it's not PHP, it's mysql that doesn't support IPv6. I switched to PostgreSQL now and access that DB from PHP's postgresql-API works via IPv6! Thank you!
Torsten This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Girish Agarwal |
last post by:
--0-474210375-1058976151=:31789
Content-Type: text/plain; charset=us-ascii
Content-Id:
Content-Disposition: inline
Note: forwarded message attached.
__________________________________
|
by: Miguel Perez |
last post by:
Hi Guys:
Does anyone know how come I'm getting a lot of mysql processes when I start
mysql server for the first time.
When I type top it showed the following:
5:33pm up 15 min, 4 users, load average: 0.16, 0.19, 0.10
80 processes: 79 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.1% user, 0.2% system, 0.0% nice, 99.2%...
|
by: mikey |
last post by:
Hi all,
I'm having great problems trying to install the latest MySQl RPM
package onto my Red Hat Linux OS.
There is already MySQL v 3.0 pre-installed with the RH Linux
distribution disk but I can not seem to get any of the functions
working on it. So I have now dopwnloaded the latest version hoping
that this will fix the error.
I have...
|
by: Mark Adams |
last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail
server running for several months. It took me a week or so to get it up
and running in September. Now, I did a clean upgrade to Mandrake 9.2
and am reinstalling everything. This thing is kicking my ass and I
can't seem to get past it. I could really use some help if...
|
by: Mark Adams |
last post by:
I really need some help with this. MySQL will not start on boot despite
everything I've done to make sure that it is set to do so.
When I start it as root from a terminal with "/usr/bin/mysqld_safe
--skip-grant-tables &" I show several mysqld procs. and one mysqld_safe,
but I can't connect:
# ps -aux| grep mysql
Warning: bad syntax,...
| |
by: Saqib Ali |
last post by:
I installed mySQL and have it running.... but I think I made a
mistake somewhere along the line...... I believe I did follow the
instructions that were provided with the distribution at:
http://dev.mysql.com/downloads/
The database is up. It seems that a test database
instance has been created (named "test"). I can see
it. However, the...
|
by: Alex Hunsley |
last post by:
I am trying to install the DBD::mysql perl module. However, it claims I
need mysql.h:
cpan> install DBD::mysql
CPAN: Storable loaded ok
Going to read /home/alex/.cpan/Metadata
Database was generated on Mon, 29 Nov 2004 16:01:05 GMT
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9004.tar.gz
CPAN: Digest::MD5...
|
by: ./Rob & |
last post by:
Hi gang:
I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0
to 4.1.10 and now when I login as root it doesn't show all the databases I
should have access to, nor it doesn't recognize me being logged in as root
(via CURRENT_USER().)
Here it is, line-by-line. Inline comments are denoted by '//'
|
by: trihanhcie |
last post by:
I m currently working on a Unix server with a fedora 3 as an os
My current version of mysql is 3.23.58. I'd like to upgrade the version
to 5.0.18.
After downloading from MYSQL.COM the package on the site, I made :
rpm -i MySQL-server-5.0.18-0.i386.rpm
then i have errors that relate to many conflicts. I cannot figure out
why -and- cannot...
|
by: manish deshpande |
last post by:
Hi,
When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command:
rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown:
warning: MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
file /etc/my.cnf from install of...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |