开发者

why would mysql_connect randomly not work?

开发者 https://www.devze.com 2023-03-29 19:22 出处:网络
I have mysql_connect running with no problem on my site... I have a script that i\'m running from a CRON job, and here it decides to not work, and output these two errors:

I have mysql_connect running with no problem on my site...

I have a script that i'm running from a CRON job, and here it decides to not work, and output these two errors:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib6开发者_如何学C4/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0

Fatal error: Call to undefined function mysql_connect() in /home/mysite/public_html/phpMySQLAutoBackup/files/schema_for_export.php on line 22

Yes, I'm using phpMySQLAutoBackup

Any ideas? This befuddles me...


The time I got one of these (Unable to load dynamic library ...) I was missing a module. In your case my guess would be that you're missing "libssh2"


Similar to PHP Errors on a cronjob, works fine at prompt

Check your $PATH, permissions, & any environment variables...

0

精彩评论

暂无评论...
验证码 换一张
取 消