Jump to content

cant get php to connect with mysql


essjay_d12

Recommended Posts

Hi I am trying a simple connection string ....

<?php
$conn = mysql_connect("localhost", "admin", "adm1n");
echo $conn;
?>

then i get an error message when it is run....

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\htdocs\dbConnect.php on line 2

I am running MySql server 5.0.18
apache 2.0.55
and php 4.3.3

What exactly is it asking me to upgrade?

the admin/adm1n user and password was granted all priviledges on a database called 'project' and the onyl table called 'users' (there is no root user or password)

I am new to all this, Please help

Thanks,

Simon
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.