johnmark Posted February 6, 2007 Author Share Posted February 6, 2007 Ok, i realized that this problem might have to do with my friends sql. So i downloaded it myself and now this is what i'm getting... Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in /home/jblair77/public_html/johnblairdesign/test.php on line 16 Unable to connect... Hey, at least it's something. Quote Link to comment Share on other sites More sharing options...
trq Posted February 6, 2007 Share Posted February 6, 2007 Have you created a valid user? The syntax is something like.... GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'userpass' WITH GRANT OPTION; Quote Link to comment Share on other sites More sharing options...
johnmark Posted February 6, 2007 Author Share Posted February 6, 2007 Can you explain what to do in littler pieces like do i need to place a whole new user? or can i use the main user? It's a little confusing to my little head. Quote Link to comment 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.