Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Trouble Getting MySQL To Work With PHP5
NewGuyinTown
post Feb 19 2006, 05:33 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 16
Joined: 15-February 06
Member No.: 11,304



I have trouble getting the mySQL to work with PHP5.
The script stops when it reaches the mySQL part.

I also got this error message when trying to install phpadmin
QUOTE

Cannot load mysql extension. Please check your PHP configuration. - Documentation


Any advice to get mySQL to work with PHP5?
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Feb 19 2006, 05:40 AM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



You've got to paste more details of the script - at least from the part right before the mysql calls and the whole block of mysql code - else it won't be possible to figure out what's going wrong.
Go to the top of the page
 
+Quote Post
NewGuyinTown
post Feb 19 2006, 06:05 AM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 16
Joined: 15-February 06
Member No.: 11,304



sorry i'm awfully tire at the moment... I shouldn't really ask questions when my mind is tire... I was getting frustrated at these errors. Need to catch up on some sleep. sad.gif

How do I fix:
QUOTE

Access denied for user 'root'@'localhost' (using password: NO)


This post has been edited by NewGuyinTown: Feb 19 2006, 06:13 AM
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Feb 19 2006, 07:54 AM
Post #4


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



QUOTE(NewGuyinTown @ Feb 19 2006, 01:05 PM) *
sorry i'm awfully tire at the moment... I shouldn't really ask questions when my mind is tire... I was getting frustrated at these errors. Need to catch up on some sleep. sad.gif

How do I fix:

Access denied for user 'root'@'localhost' (using password: NO)


If this is your only error, then your error-message clearly says what went wrong. See that using password: NO part ? That says you tried to access your database without using the proper MySQL root password. Hence access was denied. You solution is to pass the password along with the username while connecting to the server.

If you have any further queires - feel free to post.
Go to the top of the page
 
+Quote Post
marretas
post Feb 22 2006, 05:07 PM
Post #5


Member - Active Contributor
Group Icon

Group: Members
Posts: 98
Joined: 27-January 06
Member No.: 10,907



NewGuyinTown i think your problem as to do with Php.ini file.
You must copy php.ini-dist to C:\Windows\
In php.ini file C:\Windows\ you must remove the ";" before "extension=php_mysql.dll"
Remember to set "extension_dir" in php.file to extension_dir = "<DRIVE>/php/ext", also copy libmysql.dll para C:\Windows\system32

Anyway here a link for better help PHP MYSQL INSTALL
good luck
Go to the top of the page
 
+Quote Post
mastercomputers
post Feb 23 2006, 09:39 AM
Post #6


PESTICIDAL MANIAC
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



What version of MySQL are you using?

Do you have console access to it? Try to run mysql commandline and if you get the message 'does not support authentification...' (I think, it's been too long since I encounter these problems) then you're using the old incompatible passwords for the database, or you're using a new password but calling it by the old password.

PHP 5 introduces mysqli, which is mysql improved. It's not backwards compatible with older databases, also depends on what database you're using, and whether it'd work.

If you upgraded to PHP 5 and haven't upgraded the database, you should do that too, following the upgrade directions from mysql's manual.


Cheers,


MC
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL - Trouble With Bulk Insert Statements(3)
  2. MySQL Realtime Replication(4)
  3. Recover Tables From A MySQL .frm File(8)
  4. Mirror My MySQL Database To Another Mysql Server(4)
  5. How To Connect MySQL With Flash?(8)
  6. MySQL Output Database Question(18)
  7. MySQL, Multiple Tables(24)
  8. Navcat For MySQL(9)
  9. Permission Problem With Mysql Database Creation(8)
  10. Mysql And Php(15)
  11. Login System Using A Mysql Db(5)
  12. Oracle Vs. Mysql Vs. Postgresql(9)
  13. Subqueries In Mysql(1)
  14. Apache Php With Mysql On Windows [solved](9)
  15. Not Understanding Mysql(4)
  1. Mysql Script Help(3)
  2. Mysql - So Hard(14)
  3. Mysql Problem(1)
  4. Sun Bought Mysql(6)
  5. Mysql Backup With Another Address?(4)
  6. I Have An Error With My Mysql Connection(7)
  7. Mysql And User File_priv(0)
  8. Mysql Database Management(1)
  9. Mysql Database Entry By Excel Sheets(2)
  10. Mysql On Computer(9)
  11. Any Website Provide Free Host Mysql Host?(4)
  12. Mysql Multiple Tables(1)
  13. Mysql Overhead(3)


 



- Lo-Fi Version Time is now: 11th October 2008 - 02:57 PM