Re: Where can I get mysql.so?
On Sat, 2008-01-19 at 19:02 +, Apple wrote: Fatal error: Call to undefined function mysql_connect() in /home/re/script.php on line 3 I've googled and found out that I need to add extension=mysql.so in CLI's php.ini file (separate php.ini file that works for CLI only). The problem is my PHP configured with MySQL support and MySQL library doesn't load as dynamic library. I've searched for mysql.so on my server (find / -name mysql.so), but found only this: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread- multi/auto/DBD/mysql/mysql.so I guess it's mysql.so from another installation, but I've copied it to extension directory and added extension=mysql.so to the CLI's php.ini file. That definitely won't work. The file you found belongs to Perl, not PHP. Remove it from where you copied it. So, I guess I was right, it's mysql.so from another installation. I wonder, where can I get proper mysql.so? Can I download it somewhere? It's been quite a while since I built PHP manually. From memory, it included MySQL drivers ( maybe with a configure option ). I'm not sure if it's still included or not. How did you install PHP? Was it with a package manager, or was it already installed by your distro, or did you install it manually? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: [EMAIL PROTECTED] website: http://www.nusconsulting.com.au -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Where can I get mysql.so?
Hello, I have a problem running PHP scripts from PHP CLI. They work fine when I run them from my browser, but when I run same scripts from CLI, I get this error message: Fatal error: Call to undefined function mysql_connect() in /home/re/script.php on line 3 I've googled and found out that I need to add extension=mysql.so in CLI's php.ini file (separate php.ini file that works for CLI only). The problem is my PHP configured with MySQL support and MySQL library doesn't load as dynamic library. I've searched for mysql.so on my server (find / -name mysql.so), but found only this: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread- multi/auto/DBD/mysql/mysql.so I guess it's mysql.so from another installation, but I've copied it to extension directory and added extension=mysql.so to the CLI's php.ini file. Now, when I run my script with CLI, I get message: Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non- zts-20060613/mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so: undefined symbol: PL_memory_wrap in Unknown on line 0 Fatal error: Call to undefined function mysql_connect() in /home/re/videoEncode.php on line 3 So, I guess I was right, it's mysql.so from another installation. I wonder, where can I get proper mysql.so? Can I download it somewhere? PS: My distro is Fedora 6. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: Where can I get mysql.so?
Hi, Try the following link ftp://ftp.pbone.net/mirror/remi.collet.free.fr/rpms/fc6.x86_64/php-mysql-5.2.5-1.fc6.remi.x86_64.rpm if that doesn't match your need search http://rpm.pbone.net Saravanan --- On Sun, 1/20/08, Apple [EMAIL PROTECTED] wrote: From: Apple [EMAIL PROTECTED] Subject: Where can I get mysql.so? To: mysql@lists.mysql.com Date: Sunday, January 20, 2008, 1:32 AM Hello, I have a problem running PHP scripts from PHP CLI. They work fine when I run them from my browser, but when I run same scripts from CLI, I get this error message: Fatal error: Call to undefined function mysql_connect() in /home/re/script.php on line 3 I've googled and found out that I need to add extension=mysql.so in CLI's php.ini file (separate php.ini file that works for CLI only). The problem is my PHP configured with MySQL support and MySQL library doesn't load as dynamic library. I've searched for mysql.so on my server (find / -name mysql.so), but found only this: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread- multi/auto/DBD/mysql/mysql.so I guess it's mysql.so from another installation, but I've copied it to extension directory and added extension=mysql.so to the CLI's php.ini file. Now, when I run my script with CLI, I get message: Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non- zts-20060613/mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so: undefined symbol: PL_memory_wrap in Unknown on line 0 Fatal error: Call to undefined function mysql_connect() in /home/re/videoEncode.php on line 3 So, I guess I was right, it's mysql.so from another installation. I wonder, where can I get proper mysql.so? Can I download it somewhere? PS: My distro is Fedora 6. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]