473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Manually add MySQL access to PHP via php.ini

I saw on the web saying that MYSQL is no longer bulit in PHP 5 and need some manually add in "libmySQL.dll" in system32, then remove the ";" in front of "extension=php_msql.dll ." in php.ini

but below is the only extension i could find inside the php.ini, there is only extension=mysql.so but no extension=php_msql.dll

If you wish to have an extension loaded automatically, use the following
Expand|Select|Wrap|Line Numbers
  1. ; syntax:
  2. ;
  3. ;   extension=modulename.extension
  4. ;
  5. ; For example, on Windows:
  6. ;
  7. ;extension=mysql.so 
  8. ;
  9. ; ... or under UNIX:
  10. ;
  11. ;   extension=php5_msql.so
  12.  
What should i do to make it work? when i changed the bolded statment to extension=php_msql.dll, Apache is having error.
Mar 22 '10 #1

✓ answered by Atli

Hey.

If the line isn't in your php.ini you can just add it. Make sure the "extension_dir" directive is also set correctly and that the DLL (php_mysql.dll) is actually in there.

If you are just trying to set up a local server to work on, you may want to try something like the XAMPP package. It sets up Apache, PHP, MySQL, and a bunch of other commonly used things, so you don't have to manually set it all up yourself. (Note, this should only be used for development server, not production servers! Not without some major config changes, at least.)

4 1600
Make sure the extension directory is correct.

Also msql is not mysql its mini sql ( which isn't installed by default ) you need to comment out the one with php_mysql.dll.
Mar 22 '10 #2
Atli
5,058 Expert 4TB
Hey.

If the line isn't in your php.ini you can just add it. Make sure the "extension_dir" directive is also set correctly and that the DLL (php_mysql.dll) is actually in there.

If you are just trying to set up a local server to work on, you may want to try something like the XAMPP package. It sets up Apache, PHP, MySQL, and a bunch of other commonly used things, so you don't have to manually set it all up yourself. (Note, this should only be used for development server, not production servers! Not without some major config changes, at least.)
Mar 22 '10 #3
Thanks Atli, XAMPP does help a lot.
Mar 23 '10 #4
Markus
6,050 Expert 4TB
For future referrence, the documentation covers this (http://uk3.php.net/manual/en/mysql.installation.php - Installation on Windows PHP5+)

And don't put your .dlls in the system32 directory!
Mar 23 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
0
by: bruce | last post by:
Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user:...
0
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior...
51
by: w_curtis | last post by:
I'm an Access user, and I'm trying to learn MySQL and then PHP so I can make some web databases. But it just isn't clicking. I've followed some tutorials, and picked up a book, but just getting...
17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
4
by: Vanessa | last post by:
Hi there I am an Access developer, and I have written applications for a 30 telephone call center, using the standard multiuser jet engine, it all works fine, but I want to move our systems onto...
12
by: mistral | last post by:
phpMyAdmin 2.6.2 problem: can no connects to mySQL database: each time shown error #1045 - Access denied for user 'username'@'192.168.1.2' (using password: YES) Is seems, this is most common...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.