essjay_d12 Posted January 31, 2006 Share Posted January 31, 2006 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 2I am running MySql server 5.0.18apache 2.0.55and php 4.3.3What 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 helpThanks,Simon Quote Link to comment https://forums.phpfreaks.com/topic/3291-cant-get-php-to-connect-with-mysql/ Share on other sites More sharing options...
fenway Posted January 31, 2006 Share Posted January 31, 2006 I suggest you check out [a href=\"http://dev.mysql.com/doc/mysql/en/old-client.html\" target=\"_blank\"]this relevant refman page[/a] for more details. Quote Link to comment https://forums.phpfreaks.com/topic/3291-cant-get-php-to-connect-with-mysql/#findComment-11227 Share on other sites More sharing options...
phptryhard Posted February 3, 2006 Share Posted February 3, 2006 you don't declare a db in your connect statement[code]<?php$sv = localhost;$un = username;$pw = password;$db = database;$link = mysqli_connect("$sv", "$un", "$pw", "$db");?> Quote Link to comment https://forums.phpfreaks.com/topic/3291-cant-get-php-to-connect-with-mysql/#findComment-11280 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.