Jump to content

Difficulty Connecting PHP 5.1.2 and MySQL 5.0.18


Recommended Posts

From mysqld.log:

060327 22:40:59 mysqld started
060327 22:40:59 InnoDB: Started; log sequence number 0 43655
060327 22:40:59 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.18' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution

From phpinfo ( at URL REMOVED )

mysqli
MysqlI Support enabled
Client API version 5.0.18
MYSQLI_SOCKET /var/lib/mysql/mysql.sock

mysql
MySQL Support enabled

Further details at the link above. Port is 3306.

Socket is present:
srwxrwxrwx 1 mysql mysql 0 Mar 27 22:40 mysql.sock

I can log directly into mysql using the command line:

[root@server mysql]# mysql -u wordpress -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 5.0.18

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


For the life of me I simply cannot get these two to talk to each other. I've been trying for something like 15 hours, scouring documentation and searching the web, and I have come up empty.

Can anybody suggest anything at all? PHP works, MySQL works... they just won't work together.


I've also overridden the default_socket and default_port settings in /etc/php.ini to no avail.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.