Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
L0x
Starting Member
1 Post |
Posted - 2009-02-04 : 01:01:09
|
| Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp\www\install.php on line 5Cannot connect to MySql databaseinstall.php <?php//installation file, should be removed from server after install include("conf.php"); function ConnectMySQL($host, $login, $password){ $connect=mysql_connect($host,$login,$password); if ($connect===FALSE){ die('Cannot connect to MySql database');} }conf.php<?php $base1 = "localhost"; // databse host , change this$base2 = "root"; // database login , change this$base3 = "toor"; // databse password , change this$base4 = "mysql"; // database name, change this$table = "table"; // databse table, will be created automaticaly?> |
|
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2009-02-04 : 01:18:48
|
| This forums are for MS products, esp MS SQL. For php try www.sitepoint.com, www.php.net |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-02-04 : 02:52:52
|
| for mysql try www.dbforums.com |
 |
|
|
|
|
|