Jump to content

MySQL within XAMPP


knystrom18

Recommended Posts

Hey,I've just re-installed XAMPP in my "C:\" directory to try and get MySQL working, but to no avail. I've tried running it as both a service ("Svc") and not as a service... Is there a configuration file or something or step I'm missing somewhere?Thanks,- Kedit: This is particularly my problem:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: YES) in C:\xampp\htdocs\Sites\z - Project Sites\SQL Test\SQL Test 02\index.php on line 37
<!DOCTYPE html><html lang='en'>	<head>		<title>MySQL Test 02</title>		<meta name='description' content="My 2'nd attempt at SQL">		<link rel='stylesheet' href='css/general.css'>		<link rel='stylesheet' href='css/divs.css'>		<link rel='stylesheet' href='css/links.css'>		<link rel='stylesheet' href='css/content.css'>	</head>		<body id='index'>		<div id='wrapper'>			<header>				<div id='header'>					<img src='img/banner.jpg' alt='Banner Image'>				</div><!--header-->				<nav>					<div id='nav'>						<ul id='navList'>							<li><a href='#' class='navLink'>Home</a></li>							<li><a href='#' class='navLink'>About</a></li>							<li><a href='#' class='navLink'>Projects</a></li>							<li><a href='#' class='navLink'>Contact</a></li>							<li><a href='#' class='navLink'>Download</a></li>						</ul>					</div><!--nav-->				</nav>			</header>			<div id='content'>				<hgroup>					<h1>MySQL Test 02</h1>					<p id='tagline'>With a healthy sprinkling of HTML 5!</p>				</hgroup>				<div id='sqlArea'>					<?php						$con = mysql_connect('hostname','username','password');					?>				</div><!--sqlArea-->			</div><!--content-->		</div><!--wrapper-->		<div id='myFoot'>			Site By: <a href='http://www.kylenystrom.com/' id='mfLink'>Kyle Nystrom</a>		</div><!--myFoot-->	</body></html>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...