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. Link to comment https://forums.phpfreaks.com/topic/37283-php-noob/page/2/#findComment-178344 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; Link to comment https://forums.phpfreaks.com/topic/37283-php-noob/page/2/#findComment-178350 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. Link to comment https://forums.phpfreaks.com/topic/37283-php-noob/page/2/#findComment-178356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.