- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Warning: mysql_connect() [function.mysql-connect]:...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:31 AM
11-02-2005 05:31 AM
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
Could not connect: Can't connect to MySQL server on 'server1.domain.com' (0)
I and a co-worker have spent the last couple of days trying to find some information on the error above that we are seeing. I need any suggestions that anyone has to offer.
I started by installing HP-UX 11i, v2 FOE on a RP54xx PA-RISC system. I used May 2005 distribution release of the FOE and installed the defaults. Then I applied the following:
FEATURE11i_B.11.23.0507.025.depot
PHNE_33100.depot
PHSS_33389.depot
HPUXWSATW-B213-1123-32.depot
Removed the mysql application installed from the FOE
hpuxiexpress1_A.05.00-003_HP-UX_B.11.23_IA+PA.depot
Now, we have a small test script to working. If we just use mysql commands from a console, we can connect to both a local and remote databases. When we use PHP5 and try connecting, we can connect locally using either localhost or the fully qualified name. What we can’t do is connect to any remote databases. We get the error above.
PHP5 does not include, as I understand it, the mysql libraries as did the PHP4. I have searched high and low for anything that would lead me to the reason why we can’t connect to the remote databases. The installation procedure doesn’t mention anything that you have to do special with PHP5 that I can see. The fact that we can connect through PHP5 to the local database does tell us a lot. The mysql installation seems to be 100%.
Ideas? Is anyone else using apache, PHP5, mysql from the HP site and working correctly?
We really could use a helping hand here….
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:41 AM
11-02-2005 05:41 AM
Re: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
But I can say that HP did do some testing before releasing the product.
Take a look at the mysql log in /var and see it there is anything more.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:58 AM
11-02-2005 05:58 AM
Re: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 06:10 AM
11-02-2005 06:10 AM
Re: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
Remember, I did say that when we use the mysql commands from a console, we can connect to both local and remote databases. It is when we are trying to do it with apache/php5 that we can only get to the local database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 05:09 AM
03-28-2006 05:09 AM
Re: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
Basically I am experiencing the same thing as described above. Installing Apache 2.0.55 with PHP 5.0.4. I have no problem with connecting to the local MySQL server, but I am unable to establish a connection to either of my remote servers. I can connect via the mysql client to the remote servers, just not via PHP.
Please help. Thanks.
Scott