[PHP] Re: SQL Password() function

2005-11-26 Thread Gustavo Narea
Hi. Yaswanth Narvaneni wrote: Hi! Is there a function (or a code snippet) in PHP for mysql password() function? I 'dont' want to use something like select * from table where table.passwd=password($passwd); Is there any other alternate way to do it? Try this: You don't need a MySQL connec

[PHP] Re: sql password

2001-12-18 Thread Mike Eheler
yeah if you just installed, root doesn't have a password.. so you need to not specify -p (this tells the server to try and authenticate with an empty password, as opposed to attempting to authenticate with no password.. there is a difference): mysqladmin -u root password mypassword Mike Jer