-
How to enable mysql-support for the CLI?
Hi folks,
ran into a problem today where I am executing a script that uses mysql_connect() from the cli. It told me that mysql_connect() is unavailable.
How can I enable mysql for the cli? Thanks for your help!
-
Add/uncomment the following line in PHP.ini:
Code:
extension=php_mysql.dll
-
Darn, it is there, uncommented.
When I load up a page I have db access. When i access php via the cli and then type in "php -m" mysql is not listed.
Darn.
-
¬.¬ shoooo...
Where is your php.ini file located?
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
-
-
¬.¬ shoooo...
Ok you want to adjust the php.ini file in c:\wamp\php that is where the CLI is going for it.
Very handy to keep PHP configs for apache or cli separate.
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
-
Dude, many thanks!
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
Bookmarks