|
-
Apr 12th, 2007, 06:15 PM
#1
Thread Starter
Junior Member
Solve problem with my php and mySQL program?
Hi all i have done a program in php and mysql using software WAMP5 PHP5- Appache 2- MySQL 5
Server Configuration
Apache version :
Apache/2.2.4 (Win32)
PHP version :
5.2.1
Loaded extensions :
bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, mbstring, mysql, mysqli, PDO, pdo_sqlite, SQLite
MySQL version :
5.0.27-community-nt
Well i have got this error when trying to excuted a file i have called istall.php which i create mysql database using php script but it is giving me this error and when i open database.php and the lin 26 is this code
$conn = mysql_connect($sql_host,$sql_username,$sql_password);
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\Program Files\wamp\www\CMT3092\database.php on line 26
Cannot conect to the server... : Access denied for user 'root'@'localhost' (using password: YES)
I really be ver grateful if anyone can help me and tell me what is wring or if i can send them all the files and checked by using that software wamp beacuse i use password in mysql but in the wamp systen mysql there is not databse tho. Thanks all in advance.
-
Apr 12th, 2007, 07:20 PM
#2
Re: Solve problem with my php and mySQL program?
from a first glance: you don't have sufficient access for that database (unlikely because you're logging in as root); or you have an incorrect password for the user "root".
I have no clue what you were trying to say in your last statement, it made absolutely no sense to me :/ I've never used this "WAMP" thing and don't know much about it (other than what I googled, and that was that it is an install package of Apache/MySQL/PHP for Windows), but uhh. you should just install Apache/MySQL/PHP on their own. it's much easier to manage, and you're probably less prone to errors like this one!
-
Apr 12th, 2007, 07:27 PM
#3
Thread Starter
Junior Member
Re: Solve problem with my php and mySQL program?
Thanks alot for ur replay also i got that script databse from someone else tho not have in my machine i dont know to put in my machine or should ask that guy who send me to export the database that he creatd in his machine. when i got to MyPHPAdmin and clikc databse there is not databse call wsms there also when i click on the mysql consel there is not password when download that software didnt ask for password but now in my program i haev mysql password popco so how i can change mysql system and put that password in there thanks alot. for ur time and help let me know if u can about these i really apperciate it.
-
Apr 12th, 2007, 08:23 PM
#4
Re: Solve problem with my php and mySQL program?
Mate, just take your time writing out your posts - they're a bit hard to read. 
Use an online spellchecker if you're not sure of something, and try and avoid things like "u" and "ur" - not all of us understand them.
What exactly are you asking? How to change the password of the MySQL root account?
-
Apr 12th, 2007, 08:27 PM
#5
Thread Starter
Junior Member
Re: Solve problem with my php and mySQL program?
yes please tell me about how to change mysql root then thanks sorry about writing like that before ok.
-
Apr 12th, 2007, 08:38 PM
#6
Re: Solve problem with my php and mySQL program?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|