Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache permissions

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Warning: Unlink failed (Permission denied) in c:\apache\apache\htdocs\vb\admin\install.php on line 289

Attempting to attach to database...

ok im trying to setup a bulletin board and i cant get it to work. its a permision error. can someone help please.

this is the message im getting


Warning: Can't connect to MySQL server on 'localhost' (10061) in c:\apache\apache\htdocs\vb\admin\db_mysql.php on line 38

Warning: Supplied argument is not a valid MySQL-Link resource in c:\apache\apache\htdocs\vb\admin\db_mysql.php on line 47

The database has failed to connect because you do not have permission to connect to the server. Please go back to the last step and ensure that you have entered all your login details correctly.
 
The problem is not with apache permisions. Before a program can access MySQL, in needs 4 things. A host name or IP, user name, user password and a database name. You can use mysqladmin, mysqlaccess and mysql to create the database, assign a username and password and assign permissions. These permissions are what allow for creating tables and data fields within the database among many other things. If you are not quite sure how to use these from the command line, there are some good GUI programs out there that can have you up and running in no time. I use webmin but that is for linux systems. I believe you can go to and they have a win32 GUI that might be able to work for you. Good luck.
 
One more thing, You will find out that localhost is used as default when no host is supplied but localhost has no permissions yet. That's where you come in. :eek:) The script you are using just needs those 4 things. After that it will create it's own tables or tell you to do something like this: mysql mydatabase < newtables.sql which wll load their tables into your new database.. It all sounds a little rough but it only hurts the first time. :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top