Fatal Error with mySQL connection

wxdqz

New Member
I'm getting the error, "Fatal error: Call to undefined function: mysql_connect() in /home/user/myphpmysqldatabasefile.php on line 2." I'm getting this error after I copied all my files from one linux server to another linux server. I'm using php 4, mysql, and Red Hat 7.1 on my server. I used mysqldump to convert my databases to single files and then I used mysql on the new server to convert the files back into the database. I can access the files from the command line but I can't seem to access them from my php scripts. Everything worked fine from my other server. I think I need to reinstall php with mysql support. But I can't seem to compile anything. And when I try to use a rpm to install php I get a message that the package is already installed. And when I try to uninstall it I get a message saying that it couldn't find the package. Any help would be great!!!!
 
Back
Top