How to create user in mySQL ?
| From: | Manisha | Date: | Thu, 05 Dec 2002 06:36:00 +0000 |
| Subject: | How to create user in mySQL ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127104@lists.php.net to get a copy of this message | ||
I want to create mySQL user thr phpMyAdmin. I inserted one record in mysql.user table and one in mysql.db table,
testing with following program
<?
$conn = @mysql_connect ("localhost:/usr/home/nets/mysql/mysql-demo.sock", "manisha", "pass");
echo("before conn a");
if ($conn){
mysql_select_db ("demo");
echo("conn got it");
}
?>
but not getting the connection - if try with old user and password - can get connected
what's wrong ?
regards
Manisha